mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-27 19:05:52 +00:00
initial import
This commit is contained in:
commit
7764d0ba1d
481 changed files with 54634 additions and 0 deletions
18
tests/asicworld/code_tidbits_asyn_reset.v
Normal file
18
tests/asicworld/code_tidbits_asyn_reset.v
Normal file
|
@ -0,0 +1,18 @@
|
|||
module asyn_reset(clk,reset,a,c);
|
||||
input clk;
|
||||
input reset;
|
||||
input a;
|
||||
output c;
|
||||
|
||||
wire clk;
|
||||
wire reset;
|
||||
wire a;
|
||||
reg c;
|
||||
|
||||
always @ (posedge clk or posedge reset)
|
||||
if ( reset == 1'b1) begin
|
||||
c <= 0;
|
||||
end else begin
|
||||
c <= a;
|
||||
end
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue