mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-31 15:24:57 +00:00
Cleanup tux3-implicit_named_connection
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
b637b3109d
commit
a0b57f2a6f
3 changed files with 2 additions and 13 deletions
|
@ -1,19 +0,0 @@
|
|||
// 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(output [2:0] alu_result, output cout);
|
||||
wire [2:0] a = 3'b010, b = 3'b100;
|
||||
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