setup.scr
1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* setup.scr v1 Frank Berndt
* setup for compile;
* read files and constraints to prepare pre-compile db;
*/
/*
* read verilog, link and check rtl;
* save into rtl db to avoid lengthy re-reads;
*/
include ./script/read_verilog.scr > ./report/rtl.read
current_design = bb
link > ./report/rtl.link
check_design > ./report/rtl.check
write -h -o db/rtl.db
write -f verilog -h -o ./gate/rtl.v
/*
* include common scripts from NEC;
*/
include ../common/MUX_SCAN.scr
include ../common/set_wire_load.scr
/*
* include our scripts;
* these override any previous settings;
*/
include ./script/global.scr
include ./script/io.scr
include ./script/ddr.scr
include ./script/fixes.scr
/*
* flatten rdp, rsp and vi;
* do not uniquify, jlib was creating 1000s of modules;
*/
current_design = rdp
ungroup -all -flatten
current_design = rsp
ungroup -all -flatten
current_design = vi
ungroup -all -flatten
current_design = bb
/*
* report constraints, clocks and port;
*/
report_constraint -verbose > ./report/constraints
report_clock > ./report/clocks
report_port > ./report/ports
report_timing_requirements -attributes -ignored > ./report/timing.req
/*
* report status before compilation;
*/
report -area > ./report/pre.area
report -cell > ./report/pre.cell
report -hier -full > ./report/pre.hier
check_design > ./report/pre.check
write -h -o ./db/pre.db
write -f verilog -h -o ./gate/pre.v
/*
* uniquify design;
* save uniquified db and netlist;
* quit tool, compile.scr starts fresh from db;
*/
uniquify_naming_style = "bb%s_%d"
uniquify > report/pre.uniquify
write -h -o ./db/uniq.db
write -f verilog -h -o ./gate/uniq.v
quit