mirror of
https://github.com/YosysHQ/yosys
synced 2025-05-13 10:44:45 +00:00
13 lines
304 B
Verilog
13 lines
304 B
Verilog
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
|