mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-22 13:53:40 +00:00
initial import
This commit is contained in:
commit
7764d0ba1d
481 changed files with 54634 additions and 0 deletions
15
tests/asicworld/code_tidbits_reg_seq_example.v
Normal file
15
tests/asicworld/code_tidbits_reg_seq_example.v
Normal file
|
@ -0,0 +1,15 @@
|
|||
module reg_seq_example( clk, reset, d, q);
|
||||
input clk, reset, d;
|
||||
output q;
|
||||
|
||||
reg q;
|
||||
wire clk, reset, d;
|
||||
|
||||
always @ (posedge clk or posedge reset)
|
||||
if (reset) begin
|
||||
q <= 1'b0;
|
||||
end else begin
|
||||
q <= d;
|
||||
end
|
||||
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue