URL
https://opencores.org/ocsvn/s1_core/s1_core/trunk
Subversion Repositories s1_core
[/] [s1_core/] [trunk/] [tools/] [bin/] [update_macrocell] - Rev 105
Go to most recent revision | Compare with Previous | Blame | View Log
#!/bin/bash
if [ -z "$S1_ROOT" ]; then echo "***ERROR***: S1_ROOT variable is undefined, please set it and run 'source sourceme'."; exit 1; fi
if ! [ -d "$S1_ROOT" ]; then echo "***ERROR***: directory '$S1_ROOT' does not exist, please check it and run 'source sourceme' again."; exit 1; fi
SRC_LIB=$S1_ROOT/hdl/behav/sparc_libs/u1_lib.v
DST_LIB=$S1_ROOT/hdl/macrocell/sparc_libs/u1_lib.v
rm -f $DST_LIB
egrep -v "assign|reg |always|i0|<=|wire|if \(|casez|=|endcase| end" $SRC_LIB > $DST_LIB
SRC_LIB=$S1_ROOT/hdl/behav/sparc_libs/m1_lib.v
DST_LIB=$S1_ROOT/hdl/macrocell/sparc_libs/m1_lib.v
rm -f $DST_LIB
egrep -v "assign|\||\^|din\[23|din\[21|always|begin| end|z =|for \(|if \(a|wire|integer|reg \[" $SRC_LIB > $DST_LIB
Go to most recent revision | Compare with Previous | Blame | View Log