yosys/tests/asicworld/code_tidbits_syn_reset.v

20 lines
262 B
Verilog
Raw Permalink Normal View History

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