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