mirror of
https://github.com/YosysHQ/yosys
synced 2025-10-19 22:00:33 +00:00
Added Yosys Manual
This commit is contained in:
parent
3650fd7fbe
commit
61ed6b32d1
48 changed files with 7949 additions and 1 deletions
23
manual/FILES_StateOfTheArt/always03.v
Normal file
23
manual/FILES_StateOfTheArt/always03.v
Normal file
|
@ -0,0 +1,23 @@
|
|||
module uut_always03(clock, in1, in2, in3, in4, in5, in6, in7,
|
||||
out1, out2, out3);
|
||||
|
||||
input clock, in1, in2, in3, in4, in5, in6, in7;
|
||||
output out1, out2, out3;
|
||||
reg out1, out2, out3;
|
||||
|
||||
always @(posedge clock) begin
|
||||
out1 = in1;
|
||||
if (in2)
|
||||
out1 = !out1;
|
||||
out2 <= out1;
|
||||
if (in3)
|
||||
out2 <= out2;
|
||||
if (in4)
|
||||
if (in5)
|
||||
out3 <= in6;
|
||||
else
|
||||
out3 <= in7;
|
||||
out1 = out1 ^ out2;
|
||||
end
|
||||
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue