diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-11-24 15:10:43 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-11-24 15:10:43 +0100 |
commit | 1e6836933d8b74d391f816ccdcf71c972f8b1db1 (patch) | |
tree | 60bf4a29c1def59c85854229439a535c58db5c98 /tests/simple | |
parent | 72b35e0b99381df7bda7fdd2811e67ae5cfad80a (diff) | |
download | yosys-1e6836933d8b74d391f816ccdcf71c972f8b1db1.tar.gz yosys-1e6836933d8b74d391f816ccdcf71c972f8b1db1.tar.bz2 yosys-1e6836933d8b74d391f816ccdcf71c972f8b1db1.zip |
Added modelsim support to autotest
Diffstat (limited to 'tests/simple')
-rw-r--r-- | tests/simple/hierarchy.v | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/simple/hierarchy.v b/tests/simple/hierarchy.v new file mode 100644 index 000000000..97612c74a --- /dev/null +++ b/tests/simple/hierarchy.v @@ -0,0 +1,21 @@ + +(* top *) +module top(a, b, y1, y2, y3, y4); +input [3:0] a; +input signed [3:0] b; +output [7:0] y1, y2, y3, y4; +submod #(-3'sd1, -3'sd1) foo (a, b, y1, y2, y3, y4); +endmodule + +(* gentb_skip *) +module submod(a, b, y1, y2, y3, y4); +parameter c = 0; +parameter [7:0] d = 0; +input [7:0] a, b; +output [7:0] y1, y2, y3, y4; +assign y1 = a; +assign y2 = b; +assign y3 = c; +assign y4 = d; +endmodule + |