Skip to content

Commit 84c0c0b

Browse files
committed
Demo crude retiming
Signed-off-by: Martin Povišer <[email protected]>
1 parent 53cc11c commit 84c0c0b

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

flow/designs/asap7/mac/config.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ export DESIGN_NAME = mac
22
export VERILOG_FILES = designs/src/mac/mac.v
33
export SDC_FILE = designs/asap7/mac/constraints.sdc
44
export PLATFORM = asap7
5-
export PLACE_DENSITY= 0.30
6-
export CORE_UTILIZATION = 0.50
5+
export PLACE_DENSITY= 0.80
6+
export CORE_UTILIZATION = 0.80
7+
export SYNTH_RETIME_MODULES = mac

flow/scripts/abc_retime.script

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
st
2+
retime -v -o
3+
map

flow/scripts/synth.tcl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,16 @@ json -o $::env(RESULTS_DIR)/mem.json
5656
exec -- $::env(PYTHON_EXE) $::env(SCRIPTS_DIR)/mem_dump.py \
5757
--max-bits $::env(SYNTH_MEMORY_MAX_BITS) $::env(RESULTS_DIR)/mem.json
5858

59+
if { [env_var_exists_and_non_empty SYNTH_RETIME_MODULES] } {
60+
select $::env(SYNTH_RETIME_MODULES)
61+
opt -fast -full
62+
memory_map
63+
opt -full
64+
techmap
65+
abc -dff -script scripts/abc_retime.script
66+
select -clear
67+
}
68+
5969
if {
6070
[env_var_exists_and_non_empty SYNTH_WRAPPED_OPERATORS] ||
6171
[env_var_exists_and_non_empty SWAP_ARITH_OPERATORS]

0 commit comments

Comments
 (0)