diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-10-26 17:22:29 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-10-26 17:22:29 +0200 |
commit | b934a2d20940de78c1d33ebe481e4230744392b5 (patch) | |
tree | 25ac5527a445add044f1421123760052cbe52d19 /techlibs/xilinx7/example_mojo_counter/example.v | |
parent | dd56004fc06c0ce4786457010fc9c70354ea3381 (diff) | |
download | yosys-b934a2d20940de78c1d33ebe481e4230744392b5.tar.gz yosys-b934a2d20940de78c1d33ebe481e4230744392b5.tar.bz2 yosys-b934a2d20940de78c1d33ebe481e4230744392b5.zip |
Added another xilinx example (not funcional yet)
Diffstat (limited to 'techlibs/xilinx7/example_mojo_counter/example.v')
-rw-r--r-- | techlibs/xilinx7/example_mojo_counter/example.v | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/techlibs/xilinx7/example_mojo_counter/example.v b/techlibs/xilinx7/example_mojo_counter/example.v new file mode 100644 index 000000000..1327d9b86 --- /dev/null +++ b/techlibs/xilinx7/example_mojo_counter/example.v @@ -0,0 +1,14 @@ +module top(clk, led_7, led_6, led_5, led_4, led_3, led_2, led_1, led_0); + +input clk; +output led_7, led_6, led_5, led_4; +output led_3, led_2, led_1, led_0; + +reg [31:0] counter; + +always @(posedge clk) + counter <= counter + 1; + +assign {led_7, led_6, led_5, led_4, led_3, led_2, led_1, led_0} = counter >> 24; + +endmodule |