Skip to content

Commit

Permalink
Improved compile xvlog compile time and tested with 2022.1
Browse files Browse the repository at this point in the history
  • Loading branch information
philippdiethelm committed Oct 12, 2022
1 parent 9fad5a5 commit 892f622
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 4 additions & 1 deletion sim/genip_xilinx_mac.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@

set prj_name XilMacPrj

create_project -part xc7vx690tffg1761-3 $prj_name -force
#set part xc7vx690tffg1761-3
set part xc7k70tfbg484-3

create_project -part $part $prj_name -force
create_ip -vlnv xilinx.com:ip:ten_gig_eth_mac:* -module_name xilinx_mac
set_property CONFIG.Management_Interface false [get_ips xilinx_mac]
#report_property [get_ips xilinx_mac]
Expand Down
8 changes: 2 additions & 6 deletions sim/utils/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,9 @@ siminst:
$(foreach ifgi, $(IFGI_VALUES), $(foreach corr_levli, $(CORR_LEVLI_VALUES), $(MAKE) runsim SIMHDL=$(SIMHDL) SRCHDL=$(SRCHDL) PCAP=$(PCAP) TEST=$(TEST) IFG=$(ifgi) CORR_LEVL=$(corr_levli) UNDERRUN=0 LOG=$(LOG) && )) true
$(foreach ifgi, $(IFGI_VALUES), $(foreach underruni, $(UNDERRUNI_VALUES), $(MAKE) runsim SIMHDL=$(SIMHDL) SRCHDL=$(SRCHDL) PCAP=$(PCAP) TEST=$(TEST) IFG=$(ifgi) CORR_LEVL=0 UNDERRUN=$(underruni) LOG=$(LOG) && )) true

vpath %.sdb xsim.dir/work

%.sdb: %.v
xvlog -sv $(xvflags) $<

runsim: gen_stim $(HDL:.v=.sdb)
runsim: gen_stim $(HDL)
echo "\n\n////\nSim: IFG=$(IFG) CORR_LEVL=$(CORR_LEVL) UNDERRUN=$(UNDERRUN)\n////" >> $(LOG)
xvlog -sv $(xvflags) $(HDL)
xelab work.$(top_sim_hdl) -s sim_snapshot
xsim -R sim_snapshot > simlog
grep -i "SIM OK" simlog || (echo "Simulation failed, see reports"; false)
Expand Down

0 comments on commit 892f622

Please sign in to comment.