Skip to content

Commit 71229d8

Browse files
authored
flow: Add PicoRV32 and TPU designs (#4547)
Add the LogikBench PicoRV32 and TPU RTL, provenance, licenses, and ASAP7 and Nangate45 flow configurations. Refresh the private PR with the same 22-file design diff on the current master, leaving XiangShan in its separate review. Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
1 parent 2149883 commit 71229d8

22 files changed

Lines changed: 3982 additions & 0 deletions

‎flow/Makefile‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@
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
2729

2830
# DESIGN_CONFIG=./designs/gf12/aes/config.mk
2931
# DESIGN_CONFIG=./designs/gf12/ariane/config.mk
@@ -60,8 +62,10 @@
6062
# DESIGN_CONFIG=./designs/asap7/ibex/config.mk
6163
# DESIGN_CONFIG=./designs/asap7/jpeg/config.mk
6264
# DESIGN_CONFIG=./designs/asap7/megaboom/config.mk
65+
# DESIGN_CONFIG=./designs/asap7/picorv32/config.mk
6366
# DESIGN_CONFIG=./designs/asap7/riscv32i/config.mk
6467
# DESIGN_CONFIG=./designs/asap7/swerv_wrapper/config.mk
68+
# DESIGN_CONFIG=./designs/asap7/tpu/config.mk
6569
# DESIGN_CONFIG=./designs/asap7/uart/config.mk
6670

6771
# DESIGN_CONFIG=./designs/intel16/aes/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: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
export PLATFORM = nangate45
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+
# Synthesis
8+
export ABC_CLOCK_PERIOD_IN_PS = 900
9+
export SYNTH_RETIME_MODULES = $(DESIGN_NAME)
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
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
set_units -time ns -capacitance fF -resistance kOhm -voltage V -current mA -power nW
2+
current_design picorv32
3+
4+
set clk_period 0.9
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]

0 commit comments

Comments
 (0)