Add -O5 option to QuestaSim. Rerun benchmarks.
This commit is contained in:
1
test-modelsim-O5/.dir-locals.el
Normal file
1
test-modelsim-O5/.dir-locals.el
Normal file
@@ -0,0 +1 @@
|
||||
((verilog-mode . ((flycheck-verilator-include-path . ("../source")))))
|
||||
2
test-modelsim-O5/.gitignore
vendored
Normal file
2
test-modelsim-O5/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
testbench
|
||||
transcript
|
||||
7
test-modelsim-O5/__build.sh
Executable file
7
test-modelsim-O5/__build.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
. ../scripts/sim_vars.sh
|
||||
|
||||
rm -rf testbench
|
||||
vlog -sv -work testbench -vopt $param -f $FFILE top.sv
|
||||
5
test-modelsim-O5/__run.sh
Executable file
5
test-modelsim-O5/__run.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
. ../scripts/sim_vars.sh
|
||||
|
||||
vsim -batch -voptargs=-O5 -do "run -all" -quiet +dlen=$BLOCK_SIZE -GCPU_COUNT=$CPU_COUNT -lib testbench top
|
||||
7
test-modelsim-O5/top.sv
Normal file
7
test-modelsim-O5/top.sv
Normal file
@@ -0,0 +1,7 @@
|
||||
`timescale 1ps/1ps
|
||||
|
||||
module top #(parameter CPU_COUNT = 1024);
|
||||
logic clock = 1'b0;
|
||||
initial forever #(10ns/2) clock = ~clock;
|
||||
testbench #(CPU_COUNT) testbench (clock);
|
||||
endmodule
|
||||
Reference in New Issue
Block a user