diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-07-20 15:19:12 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-07-20 15:19:12 +0200 |
commit | 61ed6b32d1f5fbfda9c6effdaa678092f8156bfa (patch) | |
tree | 3a53692cbd93a09eabeb67eff5e9e4ace5cf1a3e /manual/FILES_StateOfTheArt/always02_pub.v | |
parent | 3650fd7fbe45a00792770d9ecb9397bc27ea0845 (diff) | |
download | yosys-61ed6b32d1f5fbfda9c6effdaa678092f8156bfa.tar.gz yosys-61ed6b32d1f5fbfda9c6effdaa678092f8156bfa.tar.bz2 yosys-61ed6b32d1f5fbfda9c6effdaa678092f8156bfa.zip |
Added Yosys Manual
Diffstat (limited to 'manual/FILES_StateOfTheArt/always02_pub.v')
-rw-r--r-- | manual/FILES_StateOfTheArt/always02_pub.v | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/manual/FILES_StateOfTheArt/always02_pub.v b/manual/FILES_StateOfTheArt/always02_pub.v new file mode 100644 index 000000000..91f1ca16d --- /dev/null +++ b/manual/FILES_StateOfTheArt/always02_pub.v @@ -0,0 +1,14 @@ +module uut_always02(clock, + reset, count); + +input clock, reset; +output [3:0] count; +reg [3:0] count; + +always @(posedge clock) begin + count <= count + 1; + if (reset) + count <= 0; +end + +endmodule |