Skip to content

Commit e6c876c

Browse files
committed
Merge remote-tracking branch 'origin/master' into HEAD
2 parents e5727ff + a909b70 commit e6c876c

29 files changed

Lines changed: 190 additions & 48 deletions

‎docs/user/FlowVariables.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ configuration file.
157157
| <a name="IO_PLACER_H"></a>IO_PLACER_H| A list of metal layers on which the I/O pins are placed horizontally (top and bottom of the die).| |
158158
| <a name="IO_PLACER_V"></a>IO_PLACER_V| A list of metal layers on which the I/O pins are placed vertically (sides of the die).| |
159159
| <a name="IR_DROP_LAYER"></a>IR_DROP_LAYER| Default metal layer to report IR drop.| |
160-
| <a name="KEEP_VARS"></a>KEEP_VARS| Feature toggle to keep intermediate variables during the flow. This is useful for the single-run flow, where all stages of the flow are run in a single OpenROAD instance.| |
160+
| <a name="KEEP_VARS"></a>KEEP_VARS| Feature toggle to keep intermediate variables during the flow. This is useful for the single-run flow, where all stages of the flow are run in a single OpenROAD instance.| 0|
161161
| <a name="KLAYOUT_TECH_FILE"></a>KLAYOUT_TECH_FILE| A mapping from LEF/DEF to GDS using the KLayout tool.| |
162162
| <a name="LATCH_MAP_FILE"></a>LATCH_MAP_FILE| Optional mapping file supplied to Yosys to map latches| |
163163
| <a name="LAYER_PARASITICS_FILE"></a>LAYER_PARASITICS_FILE| Path to per layer parasitics file. Defaults to $(PLATFORM_DIR)/setRC.tcl.| |
@@ -271,6 +271,7 @@ configuration file.
271271
| <a name="VERILOG_FILES"></a>VERILOG_FILES| The path to the design Verilog/SystemVerilog files providing a description of modules.| |
272272
| <a name="VERILOG_INCLUDE_DIRS"></a>VERILOG_INCLUDE_DIRS| Specifies the include directories for the Verilog input files.| |
273273
| <a name="VERILOG_TOP_PARAMS"></a>VERILOG_TOP_PARAMS| Apply toplevel params (if exist). Passed in as a list of key value pairs in tcl syntax; separated by spaces: PARAM1 VALUE1 PARAM2 VALUE2| |
274+
| <a name="WRITE_ODB_AND_SDC_EACH_STAGE"></a>WRITE_ODB_AND_SDC_EACH_STAGE| Save out .sdc and .odb file after each stage, useful to disable when using a single OpenROAD instance to run all stages of the flow.| 1|
274275
| <a name="YOSYS_FLAGS"></a>YOSYS_FLAGS| Flags to pass to yosys.| -v 3|
275276
## synth variables
276277

@@ -488,6 +489,7 @@ configuration file.
488489
- [OPENROAD_HIERARCHICAL](#OPENROAD_HIERARCHICAL)
489490
- [SWAP_ARITH_OPERATORS](#SWAP_ARITH_OPERATORS)
490491
- [SYNTH_WRAPPED_OPERATORS](#SYNTH_WRAPPED_OPERATORS)
492+
- [WRITE_ODB_AND_SDC_EACH_STAGE](#WRITE_ODB_AND_SDC_EACH_STAGE)
491493

492494
## generate_abstract variables
493495

‎flow/designs/rapidus2hp/cva6/config.mk‎

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,24 @@ export ADDITIONAL_LIBS += $(PLATFORM_DIR)/ram/lib/sacrls0g0d1p64x128m2b1w0c1p0d0
9494
$(PLATFORM_DIR)/ram/lib/sacrls0g0d1p64x25m2b1w0c1p0d0i0s0cr0rr0rm4rw00ms0.lib
9595

9696

97-
DEFAULT_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint.sdc
97+
DEFAULT_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint.sdc
9898
_0P2A_6T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.2a_6T.sdc
9999
_0P2A_8T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.2a_8T.sdc
100+
_0P3_6T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.3_6T.sdc
101+
_0P3_8T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.3_8T.sdc
100102

101103
# Use $(if) to defer conditional eval until all makefiles are read
102-
export SDC_FILE = $(strip $(if $(filter 0.2a,$(RAPIDUS_PDK_VERSION)), \
103-
$(if $(filter ra02h138_DST_45CPP,$(PLACE_SITE)), \
104-
$(_0P2A_6T_SDC_FILE), \
105-
$(_0P2A_8T_SDC_FILE)), \
106-
$(DEFAULT_SDC_FILE)))
104+
export SDC_FILE = $(strip \
105+
$(if $(filter 0.2a,$(RAPIDUS_PDK_VERSION)), \
106+
$(if $(filter ra02h138_DST_45CPP,$(PLACE_SITE)), \
107+
$(_0P2A_6T_SDC_FILE), \
108+
$(_0P2A_8T_SDC_FILE) \
109+
), \
110+
$(if $(and $(filter 0.3,$(RAPIDUS_PDK_VERSION)),$(filter ra02h138_DST_45CPP,$(PLACE_SITE))), \
111+
$(_0P3_6T_SDC_FILE), \
112+
$(_0P3_8T_SDC_FILE) \
113+
) \
114+
))
107115

108116
# Must be defined before the ifeq's
109117
export SYNTH_HDL_FRONTEND = slang
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Derived from cva6_synth.tcl and Makefiles
2+
3+
source $::env(PLATFORM_DIR)/util.tcl
4+
5+
set clk_name main_clk
6+
set clk_port clk_i
7+
set clk_ports_list [list $clk_port]
8+
set clk_period 700
9+
10+
convert_time_value clk_period
11+
12+
set input_delay [convert_time_value 0.46]
13+
set output_delay [convert_time_value 0.11]
14+
15+
16+
create_clock [get_ports $clk_port] -name $clk_name -period $clk_period
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Derived from cva6_synth.tcl and Makefiles
2+
3+
source $::env(PLATFORM_DIR)/util.tcl
4+
5+
set clk_name main_clk
6+
set clk_port clk_i
7+
set clk_ports_list [list $clk_port]
8+
set clk_period 550
9+
10+
convert_time_value clk_period
11+
12+
set input_delay [convert_time_value 0.46]
13+
set output_delay [convert_time_value 0.11]
14+
15+
16+
create_clock [get_ports $clk_port] -name $clk_name -period $clk_period

‎flow/designs/rapidus2hp/ethmac/config.mk‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ export VERILOG_FILES = $(sort $(wildcard $(DESIGN_HOME)/src/$(DESIGN_NIC
1010
export SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint.sdc
1111
export ABC_AREA = 1
1212

13-
export CORE_UTILIZATION = 70
13+
export CORE_UTILIZATION = $(strip $(if $(filter 0.3,$(RAPIDUS_PDK_VERSION)), \
14+
65, \
15+
70))
16+
1417
export CORE_ASPECT_RATIO = 1
1518
export CORE_MARGIN = 0.75
1619
export PLACE_DENSITY = 0.70

‎flow/designs/rapidus2hp/ibex/config.mk‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,27 @@ else
2424
DEFAULT_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint.sdc
2525
_0P2A_6T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.2a_6T.sdc
2626
_0P2A_8T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.2a_8T.sdc
27+
_0P3_8T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint_0.3_8T.sdc
28+
2729
# Use $(if) to defer conditional eval until all makefiles are read
28-
export SDC_FILE = $(strip $(if $(filter 0.2a,$(RAPIDUS_PDK_VERSION)), \
30+
export SDC_FILE = $(strip \
31+
$(if $(filter 0.2a,$(RAPIDUS_PDK_VERSION)), \
2932
$(if $(filter ra02h138_DST_45CPP,$(PLACE_SITE)), \
3033
$(_0P2A_6T_SDC_FILE), \
3134
$(_0P2A_8T_SDC_FILE)), \
32-
$(DEFAULT_SDC_FILE)))
35+
$(if $(and $(filter 0.3,$(RAPIDUS_PDK_VERSION)),$(filter ra02h184_HST_45CPP,$(PLACE_SITE))), \
36+
$(_0P3_8T_SDC_FILE), \
37+
$(DEFAULT_SDC_FILE) \
38+
) \
39+
))
3340
endif
3441

35-
export CORE_UTILIZATION = 70
42+
export CORE_UTILIZATION = $(strip $(if $(filter 0.3,$(RAPIDUS_PDK_VERSION)), \
43+
$(if $(filter ra02h138_DST_45CPP,$(PLACE_SITE)), \
44+
60, \
45+
65), \
46+
70))
47+
3648
export CORE_ASPECT_RATIO = 1
3749
export CORE_MARGIN = 0.75
3850
export PLACE_DENSITY_LB_ADDON = 0.20
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
source $::env(PLATFORM_DIR)/util.tcl
2+
3+
set clk_name core_clock
4+
set clk_port_name clk_i
5+
set clk_period 500
6+
set clk_io_pct 0.2
7+
8+
set clk_port [get_ports $clk_port_name]
9+
10+
convert_time_value clk_period
11+
12+
create_clock -name $clk_name -period $clk_period $clk_port
13+
14+
set non_clock_inputs [lsearch -inline -all -not -exact [all_inputs] $clk_port]
15+
16+
set_input_delay [expr { $clk_period * $clk_io_pct }] -clock $clk_name \
17+
$non_clock_inputs
18+
set_output_delay [expr { $clk_period * $clk_io_pct }] -clock $clk_name \
19+
[all_outputs]
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
source $::env(PLATFORM_DIR)/util.tcl
2+
3+
set clk_name core_clock
4+
set clk_port_name clk_i
5+
set clk_period 500
6+
set clk_io_pct 0.2
7+
8+
set clk_port [get_ports $clk_port_name]
9+
10+
convert_time_value clk_period
11+
12+
create_clock -name $clk_name -period $clk_period $clk_port
13+
14+
set non_clock_inputs [lsearch -inline -all -not -exact [all_inputs] $clk_port]
15+
16+
set_input_delay [expr { $clk_period * $clk_io_pct }] -clock $clk_name \
17+
$non_clock_inputs
18+
set_output_delay [expr { $clk_period * $clk_io_pct }] -clock $clk_name \
19+
[all_outputs]

‎flow/designs/rapidus2hp/jpeg/config.mk‎

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,19 @@ endif
1010
export VERILOG_FILES = $(sort $(wildcard $(DESIGN_HOME)/src/$(DESIGN_NICKNAME)/*.v))
1111
export VERILOG_INCLUDE_DIRS = $(DESIGN_HOME)/src/$(DESIGN_NICKNAME)/include
1212

13-
DEFAULT_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/jpeg_encoder15_7nm.sdc
13+
DEFAULT_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/jpeg_encoder15_7nm.sdc
1414
_0P2A_8T_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/jpeg_encoder15_0.2a_8T.sdc
15-
# Use $(if) to defer conditional eval until all makefiles are read
16-
export SDC_FILE = $(strip $(if $(filter 0.2a,$(RAPIDUS_PDK_VERSION)), \
17-
$(if $(filter ra02h184_HST_45CPP,$(PLACE_SITE)), \
18-
$(_0P2A_8T_SDC_FILE), \
19-
$(DEFAULT_SDC_FILE)), \
20-
$(DEFAULT_SDC_FILE)))
15+
_0P3_SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/jpeg_encoder15_0.3.sdc
2116

17+
# Use $(if) to defer conditional eval until all makefiles are read
18+
export SDC_FILE = $(strip \
19+
$(if $(and $(filter 0.2a,$(RAPIDUS_PDK_VERSION)),$(filter ra02h184_HST_45CPP,$(PLACE_SITE))), \
20+
$(_0P2A_8T_SDC_FILE), \
21+
$(if $(filter 0.3,$(RAPIDUS_PDK_VERSION)), \
22+
$(_0P3_SDC_FILE), \
23+
$(DEFAULT_SDC_FILE) \
24+
) \
25+
))
2226

2327
export ABC_AREA = 1
2428

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
source $::env(PLATFORM_DIR)/util.tcl
2+
3+
current_design jpeg_encoder
4+
5+
set clk_name clk
6+
set clk_port_name clk
7+
set clk_period 230
8+
set clk_io_pct 0.2
9+
10+
convert_time_value clk_period
11+
12+
set clk_port [get_ports $clk_port_name]
13+
14+
create_clock -name $clk_name -period $clk_period $clk_port
15+
16+
set non_clock_inputs [lsearch -inline -all -not -exact [all_inputs] $clk_port]
17+
18+
set_input_delay [expr { $clk_period * $clk_io_pct }] -clock $clk_name \
19+
$non_clock_inputs
20+
set_output_delay [expr { $clk_period * $clk_io_pct }] -clock $clk_name \
21+
[all_outputs]

0 commit comments

Comments
 (0)