mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-24 22:27:10 -04:00
modelsim: fix simulation flow
This commit is contained in:
parent
a3051e8636
commit
c30e26183e
2 changed files with 12 additions and 6 deletions
14
Makefile
14
Makefile
|
@ -101,13 +101,18 @@ util := $(addprefix $(root-dir), $(util))
|
|||
# Test packages
|
||||
test_pkg := $(wildcard tb/test/*/*sequence_pkg.sv*) \
|
||||
$(wildcard tb/test/*/*_pkg.sv*)
|
||||
|
||||
# DPI
|
||||
dpi_list := $(patsubst tb/dpi/%.cc, ${dpi-library}/%.o, $(wildcard tb/dpi/*.cc))
|
||||
dpi := $(patsubst tb/dpi/%.cc, ${dpi-library}/%.o, $(wildcard tb/dpi/*.cc))
|
||||
|
||||
# filter spike stuff if tandem is not activated
|
||||
ifndef spike-tandem
|
||||
dpi = $(filter-out ${dpi-library}/spike.o ${dpi-library}/sim_spike.o, $(dpi_list))
|
||||
else
|
||||
dpi = $(dpi_list)
|
||||
dpi := $(filter-out ${dpi-library}/spike.o ${dpi-library}/sim_spike.o, $(dpi))
|
||||
endif
|
||||
|
||||
# filter dromajo stuff if dromajo is not activated
|
||||
ifndef DROMAJO
|
||||
dpi := $(filter-out ${dpi-library}/dromajo_cosim_dpi.o, $(dpi))
|
||||
endif
|
||||
|
||||
dpi_hdr := $(wildcard tb/dpi/*.h)
|
||||
|
@ -188,6 +193,7 @@ src := $(filter-out src/ariane_regfile.sv, $(wildcard src/*.sv)) \
|
|||
src/common_cells/src/stream_delay.sv \
|
||||
src/common_cells/src/lfsr_8bit.sv \
|
||||
src/common_cells/src/lfsr_16bit.sv \
|
||||
src/common_cells/src/delta_counter.sv \
|
||||
src/common_cells/src/counter.sv \
|
||||
src/common_cells/src/shift_reg.sv \
|
||||
src/tech_cells_generic/src/pulp_clock_gating.sv \
|
||||
|
|
|
@ -19,7 +19,7 @@ import uvm_pkg::*;
|
|||
|
||||
`include "uvm_macros.svh"
|
||||
|
||||
`define MAIN_MEM(P) dut.i_sram.genblk1[0].i_ram.Mem_DP[(``P``)]
|
||||
`define MAIN_MEM(P) dut.i_sram.genblk1[0].genblk1.i_ram.Mem_DP[(``P``)]
|
||||
|
||||
import "DPI-C" function read_elf(input string filename);
|
||||
import "DPI-C" function byte get_section(output longint address, output longint len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue