yosys/tests/asicworld/code_tidbits_syn_reset.v

20 lines
250 B
Verilog
Raw Permalink Normal View History

2013-01-05 11:13:26 +01:00
module syn_reset (clk,reset,a,c);
input clk;
input reset;
2026-06-23 07:24:59 +02:00
input a;
output c;
2013-01-05 11:13:26 +01:00
wire clk;
2026-06-23 07:24:59 +02:00
wire reset;
wire a;
2013-01-05 11:13:26 +01:00
reg c;
2026-06-23 07:24:59 +02:00
2013-01-05 11:13:26 +01:00
always @ (posedge clk )
if ( reset == 1'b1) begin
c <= 0;
end else begin
c <= a;
end
2026-06-23 07:24:59 +02:00
endmodule