Rewrite run.sh script
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
FFILE=../source/sources.f
|
||||
. ../scripts/sim_vars.sh
|
||||
|
||||
SOURCES=$(cat $FFILE | sed -ze 's/\n/ /g')
|
||||
|
||||
rm -rf xsim.dir
|
||||
@@ -10,4 +11,4 @@ rm -rf xvlog.* xelab.* xsim.*
|
||||
rm -rf top.wdb
|
||||
|
||||
xvlog -work work --sv top.sv $SOURCES
|
||||
xelab --O3 -L work top
|
||||
xelab --O3 --generic_top "CPU_COUNT=$CPU_COUNT" -L work top
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
dlen_arg="-testplusarg dlen=$1"
|
||||
else
|
||||
dlen_arg=""
|
||||
fi
|
||||
. ../scripts/sim_vars.sh
|
||||
|
||||
xsim top $dlen_arg --runall
|
||||
xsim top -testplusarg dlen=$BLOCK_SIZE --runall
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
`timescale 1ps/1ps
|
||||
|
||||
module top;
|
||||
module top #(parameter CPU_COUNT = 1024);
|
||||
logic clock = 1'b0;
|
||||
initial forever #(10ns/2) clock = ~clock;
|
||||
testbench testbench (clock);
|
||||
testbench #(CPU_COUNT) testbench (clock);
|
||||
endmodule
|
||||
|
||||
Reference in New Issue
Block a user