OpenCores
URL https://opencores.org/ocsvn/s1_core/s1_core/trunk

Subversion Repositories s1_core

[/] [s1_core/] [trunk/] [tools/] [bin/] [update_macrocell] - Blame information for rev 86

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 fafa1971
#!/bin/bash
2
 
3 86 fafa1971
if [ -z "$S1_ROOT" ]; then echo "***ERROR***: S1_ROOT variable is undefined, please set it and run 'source sourceme'."; exit 1; fi
4
if ! [ -d "$S1_ROOT" ]; then echo "***ERROR***: directory '$S1_ROOT' does not exist, please check it and run 'source sourceme' again."; exit 1; fi
5
 
6 7 fafa1971
SRC_LIB=$S1_ROOT/hdl/behav/sparc_libs/u1_lib.v
7
DST_LIB=$S1_ROOT/hdl/macrocell/sparc_libs/u1_lib.v
8
rm -f $DST_LIB
9
egrep -v "assign|reg |always|i0|<=|wire|if \(|casez|=|endcase| end" $SRC_LIB > $DST_LIB
10
 
11
SRC_LIB=$S1_ROOT/hdl/behav/sparc_libs/m1_lib.v
12
DST_LIB=$S1_ROOT/hdl/macrocell/sparc_libs/m1_lib.v
13
rm -f $DST_LIB
14
egrep -v "assign|\||\^|din\[23|din\[21|always|begin| end|z =|for \(|if \(a|wire|integer|reg  \[" $SRC_LIB > $DST_LIB
15
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.