@@ -117,27 +117,39 @@ vcs/compile_rtl.sh: Bender.lock Bender.yml
117117 $(BENDER ) script vcs -t rtl -t vcs -t simulation -t verilator -DSYNTHESIS -DSIMULATION --vlog-arg=" $( VCS_SCRIPT_ARGS) " --vlogan-bin=" $( VLOGAN) " > $@
118118 chmod +x $@
119119
120- vcs/compile_netlist .sh : Bender.lock Bender.yml
120+ vcs/compile_netlist_yosys .sh : Bender.lock Bender.yml
121121 $(BENDER ) script vcs -t ihp13 -t vcs -t simulation -t verilator -t netlist_yosys -DSYNTHESIS -DSIMULATION --vlog-arg=" $( VCS_SCRIPT_ARGS) " --vlogan-bin=" $( VLOGAN) " > $@
122122 cat vcs/compile_tech.sh >> $@
123123 chmod +x $@
124124
125+ vcs/compile_netlist_openroad.sh : Bender.lock Bender.yml
126+ $(BENDER ) script vcs -t ihp13 -t vcs -t simulation -t verilator -t netlist_openroad -DSYNTHESIS -DSIMULATION --vlog-arg=" $( VCS_SCRIPT_ARGS) " --vlogan-bin=" $( VLOGAN) " > $@
127+ cat vcs/compile_tech.sh >> $@
128+ chmod +x $@
129+
125130vcs/tb_croc_soc.sim : vcs/compile_rtl.sh
126131 cd vcs; ./compile_rtl.sh
127132 cd vcs; $(VCS ) $(VCS_COMPILE_ARGS ) -o tb_croc_soc.sim tb_croc_soc
128133
129- vcs/tb_croc_soc_yosys.sim : vcs/compile_netlist .sh yosys/out/croc_chip_yosys_debug.v
130- cd vcs; ./compile_netlist .sh
134+ vcs/tb_croc_soc_yosys.sim : vcs/compile_netlist_yosys .sh yosys/out/croc_chip_yosys_debug.v
135+ cd vcs; ./compile_netlist_yosys .sh
131136 cd vcs; $(VCS ) $(VCS_COMPILE_ARGS ) -o tb_croc_soc_yosys.sim tb_croc_soc
132137
138+ vcs/tb_croc_soc_openroad.sim : vcs/compile_netlist_openroad.sh openroad/out/croc.v
139+ cd vcs; ./compile_netlist_openroad.sh
140+ cd vcs; $(VCS ) $(VCS_COMPILE_ARGS ) -o tb_croc_soc_openroad.sim tb_croc_soc
141+
133142# # Simulate RTL using VCS
134143vcs : vcs/tb_croc_soc.sim $(SW_HEX )
135144 cd vcs; ./tb_croc_soc.sim +fsdb+all=on +binary=" $( realpath $( SW_HEX) ) " -l transcript.log
136145
137146vcs-yosys : vcs/tb_croc_soc_yosys.sim $(SW_HEX )
138147 cd vcs; ./tb_croc_soc_yosys.sim +fsdb+all=on +binary=" $( realpath $( SW_HEX) ) " -l transcript.log
139148
140- .PHONY : verilator vsim vsim-yosys vcs
149+ vcs-openroad : vcs/tb_croc_soc_openroad.sim $(SW_HEX )
150+ cd vcs; ./tb_croc_soc_openroad.sim +fsdb+all=on +binary=" $( realpath $( SW_HEX) ) " -l transcript.log
151+
152+ .PHONY : verilator vsim vsim-yosys vcs vcs-yosys vcs-openroad
141153
142154
143155# ###################
0 commit comments