mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-24 20:16:01 +00:00
presentation progress
This commit is contained in:
parent
aceab5fc08
commit
cbe77bf844
10 changed files with 174 additions and 2 deletions
12
manual/PRESENTATION_Intro/counter.v
Normal file
12
manual/PRESENTATION_Intro/counter.v
Normal file
|
@ -0,0 +1,12 @@
|
|||
module counter (clk, rst, en, count);
|
||||
|
||||
input clk, rst, en;
|
||||
output reg [1:0] count;
|
||||
|
||||
always @(posedge clk)
|
||||
if (rst)
|
||||
count <= 2'd0;
|
||||
else if (en)
|
||||
count <= count + 2'd1;
|
||||
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue