Rewrite run.sh script

This commit is contained in:
Nikolay Puzanov
2023-06-17 10:56:00 +03:00
parent 0cb0d82998
commit 142fb46b2f
20 changed files with 247 additions and 109 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -e
FFILE=../source/sources.f
. ../scripts/sim_vars.sh
rm -rf testbench
vlog -sv -work testbench -vopt -f $FFILE top.sv
vlog -sv -work testbench -vopt $param -f $FFILE top.sv

View File

@@ -1,9 +1,5 @@
#!/usr/bin/env bash
if [ -n "$1" ]; then
dlen_arg="+dlen=$1"
else
dlen_arg=""
fi
. ../scripts/sim_vars.sh
vsim -batch -voptargs=+acc=npr -do "run -all" -quiet $dlen_arg -lib testbench top
vsim -batch -voptargs=+acc=npr -do "run -all" -quiet +dlen=$BLOCK_SIZE -GCPU_COUNT=$CPU_COUNT -lib testbench top

View File

@@ -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