Add VCS and Xcelium run time. Fix RTL for VCS to work correctly
This commit is contained in:
1
test-vcs/.dir-locals.el
Normal file
1
test-vcs/.dir-locals.el
Normal file
@@ -0,0 +1 @@
|
||||
((verilog-mode . ((flycheck-verilator-include-path . ("../source")))))
|
||||
8
test-vcs/__build.sh
Executable file
8
test-vcs/__build.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
. ../scripts/sim_vars.sh
|
||||
|
||||
rm -rf csrc simv.daidir simv
|
||||
|
||||
vcs -full64 -lca -sverilog -notice -nc -timescale=1ns/1ps -f $FFILE -pvalue+top.CPU_COUNT=$CPU_COUNT -l build.log top.sv
|
||||
5
test-vcs/__run.sh
Executable file
5
test-vcs/__run.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
. ../scripts/sim_vars.sh
|
||||
|
||||
./simv +dlen=$BLOCK_SIZE
|
||||
7
test-vcs/top.sv
Normal file
7
test-vcs/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