mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-14 14:55:26 +00:00
splitnets new options
This commit is contained in:
parent
ba09c6c173
commit
929c817384
3 changed files with 77 additions and 0 deletions
13
tests/various/test_splitnets.v
Normal file
13
tests/various/test_splitnets.v
Normal file
|
@ -0,0 +1,13 @@
|
|||
module bottom(input clk, input wire [1:0] i, output reg [1:0] q);
|
||||
reg [1:0] q1;
|
||||
always @(posedge clk) begin
|
||||
q1 <= i;
|
||||
q <= q1;
|
||||
end
|
||||
endmodule
|
||||
|
||||
module top(input clk, input wire [1:0] i, output reg [1:0] q);
|
||||
reg [1:0] q1;
|
||||
bottom u1 (.clk(clk), .i(i), .q(q1));
|
||||
not u2 (q, q1);
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue