yosys/tests/asicworld/code_tidbits_nonblocking.v

18 lines
159 B
Verilog
Raw Permalink Normal View History

2013-01-05 11:13:26 +01:00
module nonblocking (clk,a,c);
input clk;
input a;
output c;
2026-06-23 07:24:59 +02:00
2013-01-05 11:13:26 +01:00
wire clk;
wire a;
reg c;
reg b;
2026-06-23 07:24:59 +02:00
2013-01-05 11:13:26 +01:00
always @ (posedge clk )
begin
b <= a;
c <= b;
end
2026-06-23 07:24:59 +02:00
2013-01-05 11:13:26 +01:00
endmodule