Skip to content

Commit 68fbaf5

Browse files
committed
variables: add SYNTH_MEMORY_MAX_BITS
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent a70d32c commit 68fbaf5

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

docs/user/FlowVariables.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ configuration file.
181181
| <a name="SYNTH_ARGS"></a>SYNTH_ARGS| Optional synthesis variables for yosys.| -flatten| |
182182
| <a name="SYNTH_GUT"></a>SYNTH_GUT| Load design and remove all internal logic before doing synthesis. This is useful when creating a mock .lef abstract that has a smaller area than the amount of logic would allow. bazel-orfs uses this to mock SRAMs, for instance.| | |
183183
| <a name="SYNTH_HIERARCHICAL"></a>SYNTH_HIERARCHICAL| Enable to Synthesis hierarchically, otherwise considered flat synthesis.| 0| |
184+
| <a name="SYNTH_MEMORY_MAX_BITS"></a>SYNTH_MEMORY_MAX_BITS| Maximum number of bits for memory synthesis.| 4096| |
184185
| <a name="TAPCELL_TCL"></a>TAPCELL_TCL| Path to Endcap and Welltie cells file.| | |
185186
| <a name="TAP_CELL_NAME"></a>TAP_CELL_NAME| Name of the cell to use in tap cell insertion.| | |
186187
| <a name="TECH_LEF"></a>TECH_LEF| A technology LEF file of the PDK that includes all relevant information regarding metal layers, vias, and spacing requirements.| | |
@@ -209,6 +210,7 @@ configuration file.
209210
- [SDC_GUT](#SDC_GUT)
210211
- [SYNTH_GUT](#SYNTH_GUT)
211212
- [SYNTH_HIERARCHICAL](#SYNTH_HIERARCHICAL)
213+
- [SYNTH_MEMORY_MAX_BITS](#SYNTH_MEMORY_MAX_BITS)
212214
- [TIEHI_CELL_AND_PORT](#TIEHI_CELL_AND_PORT)
213215
- [TIELO_CELL_AND_PORT](#TIELO_CELL_AND_PORT)
214216
- [VERILOG_FILES](#VERILOG_FILES)

flow/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,6 @@ memory:
450450
#-------------------------------------------------------------------------------
451451

452452
export SYNTH_SCRIPT ?= $(SCRIPTS_DIR)/synth.tcl
453-
export SYNTH_MEMORY_MAX_BITS ?= 4096
454453
export SDC_FILE_CLOCK_PERIOD = $(RESULTS_DIR)/clock_period.txt
455454

456455
$(SDC_FILE_CLOCK_PERIOD): $(SDC_FILE)

flow/designs/sky130hd/microwatt/config.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ export FASTROUTE_TCL = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/fastroute.t
3636

3737
# This is high, some SRAMs should probably be converted
3838
# to real SRAMs and not instantiated as flops
39-
export SYNTH_MEMORY_MAX_BITS ?= 42000
39+
export SYNTH_MEMORY_MAX_BITS = 42000
4040

flow/scripts/variables.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,12 @@ SYNTH_HIERARCHICAL:
161161
stages:
162162
- synth
163163
default: 0
164+
SYNTH_MEMORY_MAX_BITS:
165+
description: >
166+
Maximum number of bits for memory synthesis.
167+
default: 4096
168+
stages:
169+
- synth
164170
LATCH_MAP_FILE:
165171
description: |
166172
List of latches treated as a black box by Yosys.

0 commit comments

Comments
 (0)