mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-28 19:35:53 +00:00
Converting PRESENTATION_ExSyn
This commit is contained in:
parent
4b40372446
commit
330a2272da
31 changed files with 442 additions and 517 deletions
19
docs/resources/PRESENTATION_ExSyn/opt_04.v
Normal file
19
docs/resources/PRESENTATION_ExSyn/opt_04.v
Normal file
|
@ -0,0 +1,19 @@
|
|||
module test(input CLK, ARST,
|
||||
output [7:0] Q1, Q2, Q3);
|
||||
|
||||
wire NO_CLK = 0;
|
||||
|
||||
always @(posedge CLK, posedge ARST)
|
||||
if (ARST)
|
||||
Q1 <= 42;
|
||||
|
||||
always @(posedge NO_CLK, posedge ARST)
|
||||
if (ARST)
|
||||
Q2 <= 42;
|
||||
else
|
||||
Q2 <= 23;
|
||||
|
||||
always @(posedge CLK)
|
||||
Q3 <= 42;
|
||||
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue