aboutsummaryrefslogtreecommitdiff
path: root/examples/icestick/rs232demo.v
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2017-07-18 18:37:47 +0200
committerClifford Wolf <clifford@clifford.at>2017-07-18 18:38:01 +0200
commit70e01c1802bef592452cada1cba0224185e8029e (patch)
treee07e7ea93c566e754d2e69768b094da126c7e1e7 /examples/icestick/rs232demo.v
parent50915bf151e57fd1881dc19293e20301b01750f8 (diff)
Add pre- and post-synthesis testbench examples
Diffstat (limited to 'examples/icestick/rs232demo.v')
-rw-r--r--examples/icestick/rs232demo.v8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/icestick/rs232demo.v b/examples/icestick/rs232demo.v
index f9e7546..40347e8 100644
--- a/examples/icestick/rs232demo.v
+++ b/examples/icestick/rs232demo.v
@@ -19,6 +19,14 @@ module top (
reg [3:0] bit_cnt = 0;
reg recv = 0;
+ initial begin
+ LED1 = 0;
+ LED2 = 0;
+ LED3 = 0;
+ LED4 = 0;
+ LED5 = 0;
+ end
+
always @(posedge clk) begin
buffer_valid <= 0;
if (!recv) begin