Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions flow/designs/asap7/riscv32i-mock-sram/constraint.sdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
current_design riscv_top

set clk_name clk
set clk_port_name clk
set clk_period 950
set clk_io_pct 0.125

set clk_port [get_ports $clk_port_name]

create_clock -name $clk_name -period $clk_period $clk_port
set clk_io_name vclk_$clk_name
create_clock -name $clk_io_name -period $clk_period
set_clock_latency 142.965 [get_clocks $clk_name]
set_clock_latency 142.965 [get_clocks $clk_io_name]

set non_clock_inputs [all_inputs -no_clocks]
set_input_delay [expr $clk_period * $clk_io_pct] -clock $clk_io_name $non_clock_inputs
set_output_delay [expr $clk_period * $clk_io_pct] -clock $clk_io_name [all_outputs]
Comment thread
oharboe marked this conversation as resolved.
Resolved
15 changes: 10 additions & 5 deletions flow/designs/asap7/riscv32i/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@ export DESIGN_NICKNAME ?= riscv32i
export DESIGN_NAME = riscv_top
export PLATFORM = asap7

export SYNTH_HIERARCHICAL ?= 1

export SYNTH_MINIMUM_KEEP_SIZE ?= 10000

export VERILOG_FILES = $(sort $(wildcard $(DESIGN_HOME)/src/riscv32i/*.v))
export SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/riscv32i/constraint.sdc
export SDC_FILE ?= $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint.sdc

ifeq ($(BLOCKS),)
export ADDITIONAL_LEFS = $(PLATFORM_DIR)/lef/fakeram7_256x32.lef
export ADDITIONAL_LIBS = $(PLATFORM_DIR)/lib/NLDM/fakeram7_256x32.lib
else
# A hardened block (riscv32i-mock-sram) needs hierarchical synthesis.
# Otherwise flat: SYNTH_MINIMUM_KEEP_SIZE kept dmem for its four SRAMs'
# area, and its boundary cut the worst path, from the address adder to
# the SRAMs' enable decode.
export SYNTH_HIERARCHICAL ?= 1
export SYNTH_MINIMUM_KEEP_SIZE ?= 10000
endif

export CORE_UTILIZATION = 62
Expand All @@ -27,6 +30,8 @@ export TNS_END_PERCENT = 100
export CTS_CLUSTER_SIZE = 10
export CTS_CLUSTER_DIAMETER = 50

# Adder architectures swapped during repair: at 780 ps the reg2reg
# period is 11 % shorter than with swapping off (835.6 against 943.4 ps).
export SWAP_ARITH_OPERATORS = 1
export OPENROAD_HIERARCHICAL = 1

4 changes: 2 additions & 2 deletions flow/designs/asap7/riscv32i/constraint.sdc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ current_design riscv_top

set clk_name clk
set clk_port_name clk
set clk_period 950
set clk_io_pct 0.125
set clk_period 780
set clk_io_pct 0.02

set clk_port [get_ports $clk_port_name]

Expand Down