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
14
tests/hana/test_simulation_always_23_test.v
Normal file
14
tests/hana/test_simulation_always_23_test.v
Normal file
|
@ -0,0 +1,14 @@
|
|||
module MyCounter (clock, preset, updown, presetdata, counter);
|
||||
input clock, preset, updown;
|
||||
input [1: 0] presetdata;
|
||||
output reg [1:0] counter;
|
||||
|
||||
always @(posedge clock)
|
||||
if(preset)
|
||||
counter <= presetdata;
|
||||
else
|
||||
if(updown)
|
||||
counter <= counter + 1;
|
||||
else
|
||||
counter <= counter - 1;
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue