Skip to content

Commit 10cf974

Browse files
authored
Merge pull request #3141 from jeffng-or/synth-preamble-verific
Added yosys/verific support to synth_preamble
2 parents 6af18dc + 48ced86 commit 10cf974

File tree

3 files changed

+82
-4
lines changed

3 files changed

+82
-4
lines changed

flow/designs/asap7/cva6/rules-base.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"synth__design__instance__area__stdcell": {
3-
"value": 13337.62,
3+
"value": 16477.72,
44
"compare": "<="
55
},
66
"constraints__clocks__count": {
77
"value": 1,
88
"compare": "=="
99
},
1010
"placeopt__design__instance__area": {
11-
"value": 15798,
11+
"value": 19790,
1212
"compare": "<="
1313
},
1414
"placeopt__design__instance__count__stdcell": {
@@ -32,7 +32,7 @@
3232
"compare": "<="
3333
},
3434
"detailedroute__route__wirelength": {
35-
"value": 1241141,
35+
"value": 1466793,
3636
"compare": "<="
3737
},
3838
"detailedroute__route__drc_errors": {
@@ -52,7 +52,7 @@
5252
"compare": ">="
5353
},
5454
"finish__design__instance__area": {
55-
"value": 16112,
55+
"value": 20112,
5656
"compare": "<="
5757
},
5858
"finish__timing__drv__setup_violation_count": {
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"synth__design__instance__area__stdcell": {
3+
"value": 271098.37,
4+
"compare": "<="
5+
},
6+
"constraints__clocks__count": {
7+
"value": 2,
8+
"compare": "=="
9+
},
10+
"placeopt__design__instance__area": {
11+
"value": 322046,
12+
"compare": "<="
13+
},
14+
"placeopt__design__instance__count__stdcell": {
15+
"value": 163160,
16+
"compare": "<="
17+
},
18+
"detailedplace__design__violations": {
19+
"value": 0,
20+
"compare": "=="
21+
},
22+
"cts__design__instance__count__setup_buffer": {
23+
"value": 11373,
24+
"compare": "<="
25+
},
26+
"cts__design__instance__count__hold_buffer": {
27+
"value": 11373,
28+
"compare": "<="
29+
},
30+
"globalroute__antenna_diodes_count": {
31+
"value": 0,
32+
"compare": "<="
33+
},
34+
"detailedroute__route__wirelength": {
35+
"value": 4942626,
36+
"compare": "<="
37+
},
38+
"detailedroute__route__drc_errors": {
39+
"value": 0,
40+
"compare": "<="
41+
},
42+
"detailedroute__antenna__violating__nets": {
43+
"value": 0,
44+
"compare": "<="
45+
},
46+
"detailedroute__antenna_diodes_count": {
47+
"value": 5,
48+
"compare": "<="
49+
},
50+
"finish__timing__setup__ws": {
51+
"value": -2.35,
52+
"compare": ">="
53+
},
54+
"finish__design__instance__area": {
55+
"value": 331160,
56+
"compare": "<="
57+
},
58+
"finish__timing__drv__setup_violation_count": {
59+
"value": 7094,
60+
"compare": "<="
61+
},
62+
"finish__timing__drv__hold_violation_count": {
63+
"value": 100,
64+
"compare": "<="
65+
},
66+
"finish__timing__wns_percent_delay": {
67+
"value": -109.25,
68+
"compare": ">="
69+
}
70+
}

flow/scripts/synth_preamble.tcl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ proc read_design_sources {} {
5151
{*}$vIdirsArgs {*}$::env(VERILOG_FILES) {*}$::env(VERILOG_DEFINES)
5252
# Workaround for yosys-slang#119
5353
setattr -unset init
54+
} elseif {[env_var_equals SYNTH_HDL_FRONTEND verific]} {
55+
if {[env_var_exists_and_non_empty VERILOG_INCLUDE_DIRS]} {
56+
verific -vlog-incdir {*}$::env(VERILOG_INCLUDE_DIRS)
57+
}
58+
if {[env_var_exists_and_non_empty VERILOG_DEFINES]} {
59+
verific -vlog-define {*}$::env(VERILOG_DEFINES)
60+
}
61+
verific -sv2012 {*}$::env(VERILOG_FILES)
5462
} elseif {![env_var_exists_and_non_empty SYNTH_HDL_FRONTEND]} {
5563
verilog_defaults -push
5664
verilog_defaults -add {*}$::env(VERILOG_DEFINES)

0 commit comments

Comments
 (0)