3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-24 21:27:00 +00:00

Added modelsim support to autotest

This commit is contained in:
Clifford Wolf 2013-11-24 15:10:43 +01:00
parent 72b35e0b99
commit 1e6836933d
3 changed files with 37 additions and 8 deletions

21
tests/simple/hierarchy.v Normal file
View file

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