mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-12 14:11:00 +00:00
Fix valgrind tests when using verific
This commit is contained in:
parent
72e5498bdf
commit
bbf65702a1
5 changed files with 16 additions and 8 deletions
16
tests/simple/implicit_ports.sv
Normal file
16
tests/simple/implicit_ports.sv
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Test implicit port connections
|
||||
module alu (input [2:0] a, input [2:0] b, input cin, output cout, output [2:0] result);
|
||||
assign cout = cin;
|
||||
assign result = a + b;
|
||||
endmodule
|
||||
|
||||
module named_ports(input [2:0] a, b, output [2:0] alu_result, output cout);
|
||||
wire cin = 1;
|
||||
alu alu (
|
||||
.a(a),
|
||||
.b, // Implicit connection is equivalent to .b(b)
|
||||
.cin(), // Explicitely unconnected
|
||||
.cout(cout),
|
||||
.result(alu_result)
|
||||
);
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue