3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-14 14:55:26 +00:00

splitnets new options

This commit is contained in:
Alain Dargelas 2025-02-19 09:43:53 -08:00
parent ba09c6c173
commit 929c817384
3 changed files with 77 additions and 0 deletions

View 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