Skip to content

Commit 0098651

Browse files
committed
flow: Add public benchmark designs
Add six public benchmark designs, three RTL sources each implemented on asap7 and nangate45: - xiangshan_coupledl2: the CoupledL2 subsystem of OpenXiangShan (MinimalConfig, one core) generated with Chisel 7.3.0 / firtool 1.135.0, with the SRAM arrays as bsg_fakeram macros. - picorv32: the LogikBench PicoRV32 benchmark. - tpu: the LogikBench TPU benchmark at its N=8 default. Each design directory carries a self-contained config.mk, constraint.sdc and rules-base.json, plus the fakeram.cfg that records how its SRAM views were generated. The SRAM macro views themselves are shared platform collateral under platforms/<pdk>/{lef,lib,verilog}/, following the existing fakeram convention. Each source directory carries the RTL, a SOURCE.md that records the upstream repositories, commits and local transformations, and the upstream license texts under LICENSES/. All design-specific settings are plain variables in the design config.mk files; no flow hook, dont-use override, ORFS flow script or platform file is used or modified. asap7 xiangshan_coupledl2 sets SKIP_DETAILED_ROUTE=1 because FlexDR reports DRT-0206 on this design, so its Final report uses global-route parasitics. nangate45 xiangshan_coupledl2 sets OPT_POST_GRT_WNS=1 because the nangate45 platform default of 0 wraps recover_power in an incremental global_route pair that does not receive -allow_congestion and fails with GRT-0116 on this congested design. The new designs are listed in the commented DESIGN_CONFIG examples of flow/Makefile. All six SDCs use set_max_fanout 16. A full-flow comparison against set_max_fanout 32 and no fanout constraint kept 16 as the best overall setup WNS/TNS. Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
1 parent aabf2a3 commit 0098651

213 files changed

Lines changed: 114973 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎flow/Makefile‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@
2121
# DESIGN_CONFIG=./designs/nangate45/ibex/config.mk
2222
# DESIGN_CONFIG=./designs/nangate45/jpeg/config.mk
2323
# DESIGN_CONFIG=./designs/nangate45/mempool_group/config.mk
24+
# DESIGN_CONFIG=./designs/nangate45/picorv32/config.mk
2425
# DESIGN_CONFIG=./designs/nangate45/swerv/config.mk
2526
# DESIGN_CONFIG=./designs/nangate45/swerv_wrapper/config.mk
2627
# DESIGN_CONFIG=./designs/nangate45/tinyRocket/config.mk
28+
# DESIGN_CONFIG=./designs/nangate45/tpu/config.mk
29+
# DESIGN_CONFIG=./designs/nangate45/xiangshan_coupledl2/config.mk
2730

2831
# DESIGN_CONFIG=./designs/gf12/aes/config.mk
2932
# DESIGN_CONFIG=./designs/gf12/ariane/config.mk
@@ -60,9 +63,12 @@
6063
# DESIGN_CONFIG=./designs/asap7/ibex/config.mk
6164
# DESIGN_CONFIG=./designs/asap7/jpeg/config.mk
6265
# DESIGN_CONFIG=./designs/asap7/megaboom/config.mk
66+
# DESIGN_CONFIG=./designs/asap7/picorv32/config.mk
6367
# DESIGN_CONFIG=./designs/asap7/riscv32i/config.mk
6468
# DESIGN_CONFIG=./designs/asap7/swerv_wrapper/config.mk
69+
# DESIGN_CONFIG=./designs/asap7/tpu/config.mk
6570
# DESIGN_CONFIG=./designs/asap7/uart/config.mk
71+
# DESIGN_CONFIG=./designs/asap7/xiangshan_coupledl2/config.mk
6672

6773
# DESIGN_CONFIG=./designs/intel16/aes/config.mk
6874
# DESIGN_CONFIG=./designs/intel16/gcd/config.mk
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
export PLATFORM = asap7
2+
export DESIGN_NAME = picorv32
3+
4+
export VERILOG_FILES = $(sort $(wildcard $(DESIGN_HOME)/src/picorv32/*.sv))
5+
export SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint.sdc
6+
7+
export ASAP7_USE_VT = RVT LVT SLVT
8+
9+
# Synthesis
10+
export SYNTH_OPERATIONS_ARGS = -booth
11+
export REMOVE_ABC_BUFFERS = 1
12+
export SYNTH_RETIME_MODULES = $(DESIGN_NAME)
13+
export SYNTH_HDL_FRONTEND = slang
14+
export LEC_CHECK = 0
15+
16+
# Floorplan
17+
export CORE_UTILIZATION = 60
18+
export CORE_ASPECT_RATIO = 1
19+
export CORE_MARGIN = 2
20+
21+
export TNS_END_PERCENT = 100
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
set_units -time ps -capacitance fF -resistance kOhm -voltage V -current mA -power pW
2+
current_design picorv32
3+
4+
set clk_period 300
5+
set io_delay [expr 0.20 * $clk_period]
6+
create_clock -name core_clock -period $clk_period [get_ports clk]
7+
create_clock -name vclk_core -period $clk_period
8+
set_max_fanout 16 [current_design]
9+
set_input_delay $io_delay -clock vclk_core [all_inputs -no_clocks]
10+
set_output_delay $io_delay -clock vclk_core [all_outputs]
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
{
2+
"synth__canonical_netlist__hash": {
3+
"value": "e4ff1176ec5b0f3d0fe6b92a6a8dfd6c2f841d84",
4+
"compare": "==",
5+
"level": "warning"
6+
},
7+
"synth__netlist__hash": {
8+
"value": "f224cc0c978bde0570734d1aff0a28360b477a40",
9+
"compare": "==",
10+
"level": "warning"
11+
},
12+
"synth__design__instance__area__stdcell": {
13+
"value": 2620.0,
14+
"compare": "<="
15+
},
16+
"constraints__clocks__count": {
17+
"value": 2,
18+
"compare": "=="
19+
},
20+
"placeopt__design__instance__area": {
21+
"value": 2762,
22+
"compare": "<="
23+
},
24+
"placeopt__design__instance__count__stdcell": {
25+
"value": 24496,
26+
"compare": "<="
27+
},
28+
"detailedplace__design__violations": {
29+
"value": 0,
30+
"compare": "=="
31+
},
32+
"cts__design__instance__count__setup_buffer": {
33+
"value": 2130,
34+
"compare": "<="
35+
},
36+
"cts__design__instance__count__hold_buffer": {
37+
"value": 2130,
38+
"compare": "<="
39+
},
40+
"cts__timing__setup__ws": {
41+
"value": -429.0,
42+
"compare": ">="
43+
},
44+
"cts__timing__setup__tns": {
45+
"value": -18000.0,
46+
"compare": ">="
47+
},
48+
"cts__timing__hold__ws": {
49+
"value": -20.0,
50+
"compare": ">="
51+
},
52+
"cts__timing__hold__tns": {
53+
"value": -80.0,
54+
"compare": ">="
55+
},
56+
"globalroute__antenna_diodes_count": {
57+
"value": 100,
58+
"compare": "<="
59+
},
60+
"globalroute__timing__setup__ws": {
61+
"value": -461.0,
62+
"compare": ">="
63+
},
64+
"globalroute__timing__setup__tns": {
65+
"value": -22000.0,
66+
"compare": ">="
67+
},
68+
"globalroute__timing__hold__ws": {
69+
"value": -20.0,
70+
"compare": ">="
71+
},
72+
"globalroute__timing__hold__tns": {
73+
"value": -80.0,
74+
"compare": ">="
75+
},
76+
"detailedroute__route__wirelength": {
77+
"value": 87408,
78+
"compare": "<="
79+
},
80+
"detailedroute__route__drc_errors": {
81+
"value": 0,
82+
"compare": "<="
83+
},
84+
"detailedroute__antenna__violating__nets": {
85+
"value": 0,
86+
"compare": "<="
87+
},
88+
"detailedroute__antenna_diodes_count": {
89+
"value": 100,
90+
"compare": "<="
91+
},
92+
"finish__timing__setup__ws": {
93+
"value": -417.0,
94+
"compare": ">="
95+
},
96+
"finish__timing__setup__tns": {
97+
"value": -18600.0,
98+
"compare": ">="
99+
},
100+
"finish__timing__hold__ws": {
101+
"value": -20.0,
102+
"compare": ">="
103+
},
104+
"finish__timing__hold__tns": {
105+
"value": -80.0,
106+
"compare": ">="
107+
},
108+
"finish__design__instance__area": {
109+
"value": 2885,
110+
"compare": "<="
111+
}
112+
}

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
export PLATFORM = asap7
2+
export DESIGN_NAME = tpu
3+
4+
export VERILOG_FILES = $(sort $(wildcard $(DESIGN_HOME)/src/tpu/*.sv))
5+
export SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint.sdc
6+
7+
export ASAP7_USE_VT = RVT LVT SLVT
8+
9+
# Synthesis
10+
export SYNTH_HDL_FRONTEND = slang
11+
export LEC_CHECK = 0
12+
13+
# Floorplan
14+
export CORE_UTILIZATION = 60
15+
export CORE_ASPECT_RATIO = 1
16+
export CORE_MARGIN = 2
17+
18+
export TNS_END_PERCENT = 100
19+
20+
# Routing
21+
export MAX_ROUTING_LAYER = M9
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
set_units -time ps -capacitance fF -resistance kOhm -voltage V -current mA -power pW
2+
current_design tpu
3+
4+
set clk_period 200
5+
set io_delay [expr 0.20 * $clk_period]
6+
create_clock -name core_clock -period $clk_period [get_ports clk]
7+
create_clock -name vclk_core -period $clk_period
8+
set_max_fanout 16 [current_design]
9+
set_input_delay $io_delay -clock vclk_core [all_inputs -no_clocks]
10+
set_output_delay $io_delay -clock vclk_core [all_outputs]
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
{
2+
"synth__canonical_netlist__hash": {
3+
"value": "d93c1a668eaa8748f4ddbc8ed4ce3334d5b0ec1b",
4+
"compare": "==",
5+
"level": "warning"
6+
},
7+
"synth__netlist__hash": {
8+
"value": "b76c679a52aa60fd98a6195d467f06e647c75ad6",
9+
"compare": "==",
10+
"level": "warning"
11+
},
12+
"synth__design__instance__area__stdcell": {
13+
"value": 6020.0,
14+
"compare": "<="
15+
},
16+
"constraints__clocks__count": {
17+
"value": 2,
18+
"compare": "=="
19+
},
20+
"placeopt__design__instance__area": {
21+
"value": 5926,
22+
"compare": "<="
23+
},
24+
"placeopt__design__instance__count__stdcell": {
25+
"value": 52923,
26+
"compare": "<="
27+
},
28+
"detailedplace__design__violations": {
29+
"value": 0,
30+
"compare": "=="
31+
},
32+
"cts__design__instance__count__setup_buffer": {
33+
"value": 4602,
34+
"compare": "<="
35+
},
36+
"cts__design__instance__count__hold_buffer": {
37+
"value": 4602,
38+
"compare": "<="
39+
},
40+
"cts__timing__setup__ws": {
41+
"value": -50.0,
42+
"compare": ">="
43+
},
44+
"cts__timing__setup__tns": {
45+
"value": -200.0,
46+
"compare": ">="
47+
},
48+
"cts__timing__hold__ws": {
49+
"value": -50.0,
50+
"compare": ">="
51+
},
52+
"cts__timing__hold__tns": {
53+
"value": -200.0,
54+
"compare": ">="
55+
},
56+
"globalroute__antenna_diodes_count": {
57+
"value": 100,
58+
"compare": "<="
59+
},
60+
"globalroute__timing__setup__ws": {
61+
"value": -50.0,
62+
"compare": ">="
63+
},
64+
"globalroute__timing__setup__tns": {
65+
"value": -200.0,
66+
"compare": ">="
67+
},
68+
"globalroute__timing__hold__ws": {
69+
"value": -50.0,
70+
"compare": ">="
71+
},
72+
"globalroute__timing__hold__tns": {
73+
"value": -200.0,
74+
"compare": ">="
75+
},
76+
"detailedroute__route__wirelength": {
77+
"value": 119542,
78+
"compare": "<="
79+
},
80+
"detailedroute__route__drc_errors": {
81+
"value": 0,
82+
"compare": "<="
83+
},
84+
"detailedroute__antenna__violating__nets": {
85+
"value": 0,
86+
"compare": "<="
87+
},
88+
"detailedroute__antenna_diodes_count": {
89+
"value": 100,
90+
"compare": "<="
91+
},
92+
"finish__timing__setup__ws": {
93+
"value": -50.0,
94+
"compare": ">="
95+
},
96+
"finish__timing__setup__tns": {
97+
"value": -200.0,
98+
"compare": ">="
99+
},
100+
"finish__timing__hold__ws": {
101+
"value": -50.0,
102+
"compare": ">="
103+
},
104+
"finish__timing__hold__tns": {
105+
"value": -200.0,
106+
"compare": ">="
107+
},
108+
"finish__design__instance__area": {
109+
"value": 6092,
110+
"compare": "<="
111+
}
112+
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
export PLATFORM = asap7
2+
export DESIGN_NAME = CoupledL2
3+
export DESIGN_NICKNAME = xiangshan_coupledl2
4+
5+
export VERILOG_FILES = $(sort \
6+
$(wildcard $(DESIGN_HOME)/src/xiangshan_coupledl2/*.sv) \
7+
$(wildcard $(DESIGN_HOME)/src/xiangshan_coupledl2/deps/*.sv)) \
8+
$(PLATFORM_DIR)/verilog/array_2048x137_bk_bb.sv \
9+
$(PLATFORM_DIR)/verilog/array_256x104_bb.sv \
10+
$(PLATFORM_DIR)/verilog/array_256x13_bb.sv \
11+
$(PLATFORM_DIR)/verilog/array_256x164_bb.sv \
12+
$(PLATFORM_DIR)/verilog/array_256x16_bb.sv \
13+
$(PLATFORM_DIR)/verilog/array_256x8_0_bb.sv
14+
export VERILOG_DEFINES += -D SYNTHESIS
15+
export SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint.sdc
16+
17+
# Fakeram macros for the SRAM arrays; fakeram.cfg in this directory records how
18+
# the platform views were generated.
19+
export ADDITIONAL_LEFS = $(PLATFORM_DIR)/lef/array_2048x137_bk.lef \
20+
$(PLATFORM_DIR)/lef/array_256x104.lef \
21+
$(PLATFORM_DIR)/lef/array_256x13.lef \
22+
$(PLATFORM_DIR)/lef/array_256x164.lef \
23+
$(PLATFORM_DIR)/lef/array_256x16.lef \
24+
$(PLATFORM_DIR)/lef/array_256x8_0.lef
25+
export ADDITIONAL_LIBS = $(PLATFORM_DIR)/lib/NLDM/array_2048x137_bk.lib \
26+
$(PLATFORM_DIR)/lib/NLDM/array_256x104.lib \
27+
$(PLATFORM_DIR)/lib/NLDM/array_256x13.lib \
28+
$(PLATFORM_DIR)/lib/NLDM/array_256x164.lib \
29+
$(PLATFORM_DIR)/lib/NLDM/array_256x16.lib \
30+
$(PLATFORM_DIR)/lib/NLDM/array_256x8_0.lib
31+
export GDS_ALLOW_EMPTY = (fakeram.*|DFFHQN[VH][24].*|array_.*)
32+
33+
export ASAP7_USE_VT = RVT LVT SLVT
34+
35+
# Synthesis
36+
export SYNTH_HIERARCHICAL = 1
37+
export SYNTH_MINIMUM_KEEP_SIZE ?= 10000
38+
export SYNTH_HDL_FRONTEND = slang
39+
export LEC_CHECK = 0
40+
41+
# Floorplan
42+
export CORE_UTILIZATION = 50
43+
export CORE_ASPECT_RATIO = 1
44+
export CORE_MARGIN = 2
45+
export MACRO_PLACE_HALO = 5 5
46+
47+
# Placement and timing repair
48+
export GPL_TIMING_DRIVEN = 0
49+
export GPL_ROUTABILITY_DRIVEN = 0
50+
export TNS_END_PERCENT = 5
51+
export SKIP_CTS_REPAIR_TIMING = 1
52+
export SKIP_INCREMENTAL_REPAIR = 1
53+
export ENABLE_RESISTANCE_AWARE = 0
54+
55+
# Routing
56+
export GLOBAL_ROUTE_ARGS = -congestion_iterations 5 -congestion_report_iter_step 5 -verbose -allow_congestion
57+
# FlexDR on current master reports DRT-0206 terminal-connectivity errors for
58+
# this design, so detailed routing is skipped and the Final report uses
59+
# global-route estimated parasitics.
60+
export SKIP_DETAILED_ROUTE = 1
61+
export DETAILED_ROUTE_END_ITERATION = 32
62+
export SKIP_ANTENNA_REPAIR = 1
63+
export SKIP_ANTENNA_REPAIR_POST_DRT = 1
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
set_units -time ps -capacitance fF -resistance kOhm -voltage V -current mA -power pW
2+
current_design CoupledL2
3+
4+
# The 1400 ps target keeps the public CI runtime bounded while leaving setup
5+
# violations for optimization experiments; it is not a measured Fmax of this
6+
# 128 KiB MinimalConfig L2.
7+
set clk_period 1400
8+
set io_delay [expr 0.20 * $clk_period]
9+
create_clock -name core_clock -period $clk_period [get_ports clock]
10+
create_clock -name vclk_core -period $clk_period
11+
set_max_fanout 16 [current_design]
12+
# Exclude the asynchronous reset from data-path timing optimization.
13+
set_false_path -from [get_ports reset]
14+
set_input_delay $io_delay -clock vclk_core [all_inputs -no_clocks]
15+
set_output_delay $io_delay -clock vclk_core [all_outputs]

0 commit comments

Comments
 (0)