Skip to content

Commit 8a6ba42

Browse files
committed
use OpenROAD SYN for asap7/swerv_wrapper and drop scramble-name workaround
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
1 parent 7f38703 commit 8a6ba42

6 files changed

Lines changed: 9 additions & 30 deletions

File tree

‎docs/user/FlowVariables.md‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@ configuration file.
310310
| <a name="SYNTH_OPT_HIER"></a>SYNTH_OPT_HIER| Optimize constants across hierarchical boundaries.| |
311311
| <a name="SYNTH_REPEATABLE_BUILD"></a>SYNTH_REPEATABLE_BUILD| License to prune anything that makes builds less repeatable, typically used with Bazel to ensure that builds are bit-for-bit identical so that caching works optimally. Removes debug information that encodes paths, timestamps, etc.| 0|
312312
| <a name="SYNTH_RETIME_MODULES"></a>SYNTH_RETIME_MODULES| *This is an experimental option and may cause adverse effects.* *No effort has been made to check if the retimed RTL is logically equivalent to the non-retimed RTL.* List of modules to apply automatic retiming to. These modules must not get dissolved and as such they should either be the top module or be included in SYNTH_KEEP_MODULES. The main use case is to quickly identify if performance can be improved by manually retiming the input RTL. Retiming will treat module ports like register endpoints/startpoints. The objective function of retiming isn't informed by SDC, even the clock period is ignored. As such, retiming will optimize for best delay at potentially high register number cost. Automatic retiming can produce suboptimal results as its timing model is crude and it doesn't find the optimal distribution of registers on long pipelines. See OR discussion # 8080.| |
313-
| <a name="SYNTH_SCRAMBLE_SEED"></a>SYNTH_SCRAMBLE_SEED| Non-zero seed for `rename -scramble-name` run before ABC, to resample ABC's order-sensitive technology mapping. Leave unset to disable.| |
314313
| <a name="SYNTH_SKIP_KEEP"></a>SYNTH_SKIP_KEEP| Only meaningful together with SYNTH_CHECKPOINT. When set, signals that the supplied checkpoint is still canonical RTLIL (coarse synth and `keep_hierarchy` have not been run yet), so synth.tcl runs the full coarse+fine synthesis flattened. When unset and SYNTH_CHECKPOINT is used, synth.tcl assumes the checkpoint already has coarse synth + `keep_hierarchy` done and resumes from `coarse:fine`.| 0|
315314
| <a name="SYNTH_SLANG_ARGS"></a>SYNTH_SLANG_ARGS| Additional arguments passed to the slang frontend during synthesis.| |
316315
| <a name="SYNTH_USE_SYN"></a>SYNTH_USE_SYN| If set to 1, run synthesis using the "syn" tool built into OpenROAD (the synth_syn.tcl flow) instead of the default Yosys-based flow. Defaults to 0 (Yosys flow).| 0|
@@ -372,7 +371,6 @@ configuration file.
372371
- [SYNTH_OPT_HIER](#SYNTH_OPT_HIER)
373372
- [SYNTH_REPEATABLE_BUILD](#SYNTH_REPEATABLE_BUILD)
374373
- [SYNTH_RETIME_MODULES](#SYNTH_RETIME_MODULES)
375-
- [SYNTH_SCRAMBLE_SEED](#SYNTH_SCRAMBLE_SEED)
376374
- [SYNTH_SKIP_KEEP](#SYNTH_SKIP_KEEP)
377375
- [SYNTH_SLANG_ARGS](#SYNTH_SLANG_ARGS)
378376
- [SYNTH_USE_SYN](#SYNTH_USE_SYN)

‎flow/designs/asap7/swerv_wrapper/config.mk‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ export SYNTH_KEEP_MODULES ?= \
4545
export LIB_MODEL = CCS
4646

4747
export VERILOG_FILES = $(DESIGN_HOME)/src/swerv/swerv_wrapper.sv2v.v \
48-
$(DESIGN_HOME)/$(PLATFORM)/swerv_wrapper/macros.v
48+
$(DESIGN_HOME)/$(PLATFORM)/swerv_wrapper/macros.v \
49+
$(CLKGATE_MAP_FILE)
4950
export SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/swerv_wrapper/constraint.sdc
5051

5152
export ADDITIONAL_LEFS = $(sort $(wildcard $(DESIGN_HOME)/$(PLATFORM)/swerv_wrapper/lef/*.lef))
@@ -58,10 +59,9 @@ export PLACE_DENSITY_LB_ADDON = 0.20
5859

5960
export ROUTING_LAYER_ADJUSTMENT = 0.2
6061

61-
export SWAP_ARITH_OPERATORS = 1
62+
# Use OpenROAD-native synthesis (SYN) instead of Yosys. SWAP_ARITH_OPERATORS
63+
# removed: its wrapped-operator flow is Yosys-only and unsupported by SYN.
64+
export SYNTH_USE_SYN = 1
6265
export OPENROAD_HIERARCHICAL = 1
6366

64-
# WORKAROUND: Resample ABC's order-sensitive mapping.
65-
export SYNTH_SCRAMBLE_SEED ?= 1
66-
6767
export GPL_RANDOM_SEED = 2

‎flow/designs/src/swerv/swerv_wrapper.sv2v.v‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65984,7 +65984,7 @@ module dec_tlu_ctl
6598465984
dec_tlu_pic_clk_override,dec_tlu_dccm_clk_override,dec_tlu_icm_clk_override,N0,N1,
6598565985
N2,N3,N4,N5,N6,N7,N8,N9,N10,N11,N12,N13,N14,N15,N16,N17,N18,N19,N20,N21,N22,N23,
6598665986
N24,N25,N26,N27,N28,N29,N30,N31,N32,N33,N34,N35,N36,N37,N38,N39,N40,N41,N42,N43,
65987-
N44,N45,N46,N47,N48,N49,N50,N51,N52,N53,N54,N55,N56,dec_tlu_debug_mode,
65987+
N44,N45,N46,N47,N48,N49,N50,N51,N52,N53,N54,N55,N56,
6598865988
dec_fence_pending,nmi_int_sync,i_cpu_halt_req_sync,i_cpu_run_req_sync,
6598965989
mpc_debug_halt_req_sync,mpc_debug_run_req_sync,n_2_net_,csr_wr_clk,dec_csr_wen_wb_mod,n_3_net_,
6599065990
lsu_e3_e4_clk,n_4_net_,lsu_e4_e5_clk,lsu_exc_valid_wb,e4_valid,e5_valid,e4e5_valid,
@@ -111533,8 +111533,8 @@ module exu
111533111533
exu_mp_pkt_37,exu_mp_pkt_36,exu_mp_pkt_35,exu_mp_pkt_34,exu_mp_pkt_33,
111534111534
exu_mp_pkt_32,exu_mp_pkt_31,exu_mp_pkt_30,exu_mp_pkt_29,exu_mp_pkt_28,exu_mp_pkt_27,
111535111535
exu_mp_pkt_26,exu_mp_pkt_25,exu_mp_pkt_24,exu_mp_pkt_23,exu_mp_pkt_22,exu_mp_pkt_21,
111536-
exu_mp_pkt_20,exu_mp_pkt_19,exu_mp_pkt_18,exu_rets_e4_pkt_pc1_pc4_,
111537-
exu_pmu_i1_br_misp,N38,N39,N40,N41,N42,N43,N44,N45,N46,N47,N48,N49,N50,N51,N52,N53,N54,N55,N56,
111536+
exu_mp_pkt_20,exu_mp_pkt_19,exu_mp_pkt_18,
111537+
N38,N39,N40,N41,N42,N43,N44,N45,N46,N47,N48,N49,N50,N51,N52,N53,N54,N55,N56,
111538111538
N57,N58,N59,N60,N61,N62,N63,N64,N65,N66,N67,N68,N69,N70,N71,N72,N73,N74,N75,N76,
111539111539
N77,div_valid_e1,div_finish_early,i0_predict_p_e4_ataken_,
111540111540
i0_predict_p_e4_boffset_,i0_predict_p_e4_toffset__11_,i0_predict_p_e4_toffset__10_,
@@ -131572,7 +131572,7 @@ module lsu_bus_buffer
131572131572
N93,N94,N95,N96,N97,N98,N99,N100,N101,N102,N103,N104,N105,N106,N107,N108,N109,
131573131573
N110,N111,N112,N113,N114,N115,N116,N117,N118,N119,N120,N121,N122,N123,N124,N125,
131574131574
N126,N127,N128,N129,N130,N131,N132,N133,N134,N135,N136,N137,N138,N139,N140,N141,
131575-
N142,N143,N144,N145,N146,N147,N148,N149,N150,N151,N152,lsu_nonblock_load_data_error,
131575+
N142,N143,N144,N145,N146,N147,N148,N149,N150,N151,N152,
131576131576
N153,N154,N155,N156,N157,N158,N159,N160,N161,N162,N163,N164,N165,N166,N167,N168,
131577131577
buf_age_younger_7__6_,buf_age_younger_7__5_,buf_age_younger_7__4_,
131578131578
buf_age_younger_7__3_,buf_age_younger_7__2_,buf_age_younger_7__1_,buf_age_younger_7__0_,

‎flow/scripts/synth.tcl‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,6 @@ opt
251251
# Replace undef values with defined constants
252252
setundef -zero
253253

254-
# Optional (design opt-in via SYNTH_SCRAMBLE_SEED): scramble net/cell names to
255-
# resample ABC's order-sensitive mapping. No-op unless the seed is set.
256-
# `yosys` prefix: `rename` alone would hit the Tcl built-in of the same name.
257-
if { [env_var_exists_and_non_empty SYNTH_SCRAMBLE_SEED] } {
258-
yosys rename -scramble-name -seed $::env(SYNTH_SCRAMBLE_SEED)
259-
}
260-
261254
if {
262255
![env_var_exists_and_non_empty SYNTH_WRAPPED_OPERATORS] &&
263256
![env_var_exists_and_non_empty SWAP_ARITH_OPERATORS]

‎flow/scripts/variables.json‎

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎flow/scripts/variables.yaml‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,6 @@ SYNTH_SLANG_ARGS:
258258
stages:
259259
- synth
260260
default: ""
261-
SYNTH_SCRAMBLE_SEED:
262-
description: >
263-
Non-zero seed for `rename -scramble-name` run before ABC, to resample
264-
ABC's order-sensitive technology mapping. Leave unset to disable.
265-
stages:
266-
- synth
267261
SYNTH_BLACKBOXES:
268262
description: >
269263
List of cells treated as a black box by Yosys. With Bazel, this can be used

0 commit comments

Comments
 (0)