Fix zscale testing
Use the following command in vsim: make CONFIG=ZscaleConfig MODEL=ZscaleTop TB=ZscaleTestHarness run-asm-tests
This commit is contained in:
parent
5eeb8969f6
commit
e0d849fec5
12
csrc/vcs_main.ZscaleTestHarness.cc
Normal file
12
csrc/vcs_main.ZscaleTestHarness.cc
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
// See LICENSE for license details.
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern int vcs_main(int argc, char** argv);
|
||||||
|
|
||||||
|
int main(int argc, char** argv)
|
||||||
|
{
|
||||||
|
return vcs_main(argc, argv);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -15,7 +15,7 @@ sim_vsrcs = \
|
|||||||
# C sources
|
# C sources
|
||||||
|
|
||||||
sim_csrcs = \
|
sim_csrcs = \
|
||||||
$(base_dir)/csrc/vcs_main.cc \
|
$(base_dir)/csrc/vcs_main.$(TB).cc \
|
||||||
$(base_dir)/csrc/mm.cc \
|
$(base_dir)/csrc/mm.cc \
|
||||||
$(base_dir)/csrc/mm_dramsim2.cc \
|
$(base_dir)/csrc/mm_dramsim2.cc \
|
||||||
|
|
||||||
|
@ -277,6 +277,7 @@ class DefaultL2FPGAConfig extends Config(new WithL2Capacity64 ++ new WithL2Cache
|
|||||||
class WithZscale extends Config(
|
class WithZscale extends Config(
|
||||||
(pname,site,here) => pname match {
|
(pname,site,here) => pname match {
|
||||||
case XLen => 32
|
case XLen => 32
|
||||||
|
case UseFPU => false
|
||||||
case BuildZscale => {
|
case BuildZscale => {
|
||||||
TestGeneration.addSuites(List(rv32ui("p"), rv32um("p")))
|
TestGeneration.addSuites(List(rv32ui("p"), rv32um("p")))
|
||||||
TestGeneration.addSuites(List(zscaleBmarks))
|
TestGeneration.addSuites(List(zscaleBmarks))
|
||||||
|
@ -14,7 +14,7 @@ sim_vsrcs = \
|
|||||||
# C sources
|
# C sources
|
||||||
|
|
||||||
sim_csrcs = \
|
sim_csrcs = \
|
||||||
$(base_dir)/csrc/vcs_main.cc \
|
$(base_dir)/csrc/vcs_main.$(TB).cc \
|
||||||
$(base_dir)/csrc/mm.cc \
|
$(base_dir)/csrc/mm.cc \
|
||||||
$(base_dir)/csrc/mm_dramsim2.cc \
|
$(base_dir)/csrc/mm_dramsim2.cc \
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user