From c56c75e14b989d843edddbc14c29e0d67015e5b5 Mon Sep 17 00:00:00 2001 From: Luke Wren Date: Sun, 18 Jul 2021 16:45:48 +0100 Subject: [PATCH] More dicking with yosys cmd for tb_cxxrtl; Removing the prep pass as suggested leads to invalid VCD net names. Adding a opt_clean (+ prerequisites) fixes that. Adding splitnets -driver afterward wins back the performance lost by that last addition. Can you tell I don't know what I'm doing --- test/sim/tb_cxxrtl/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sim/tb_cxxrtl/Makefile b/test/sim/tb_cxxrtl/Makefile index 00beff0..24ca1e8 100644 --- a/test/sim/tb_cxxrtl/Makefile +++ b/test/sim/tb_cxxrtl/Makefile @@ -22,7 +22,7 @@ SYNTH_CMD += chparam -set RESET_VECTOR $(CPU_RESET_VECTOR) $(TOP); SYNTH_CMD += chparam -set REDUCED_BYPASS $(REDUCED_BYPASS) $(TOP); SYNTH_CMD += chparam -set MULDIV_UNROLL $(MULDIV_UNROLL) $(TOP); SYNTH_CMD += chparam -set MUL_FAST $(MUL_FAST) $(TOP); -SYNTH_CMD += prep -flatten -top $(TOP); async2sync; +SYNTH_CMD += hierarchy -top $(TOP); proc; opt_clean; SYNTH_CMD += splitnets -driver; SYNTH_CMD += write_cxxrtl dut.cpp