aboutsummaryrefslogtreecommitdiffstats
path: root/machxo2/examples
diff options
context:
space:
mode:
authorWilliam D. Jones <thor0505@comcast.net>2020-11-26 19:27:09 -0500
committergatecat <gatecat@ds0.me>2021-02-12 10:36:59 +0000
commit5838662b2f8a06aef52eac8218175f59547b5f09 (patch)
tree2de409f814b822173f1dd7ed6c017a757fd05dca /machxo2/examples
parentda6204442fb2635ec82621c00cdf4f7e3dfa3499 (diff)
downloadnextpnr-5838662b2f8a06aef52eac8218175f59547b5f09.tar.gz
nextpnr-5838662b2f8a06aef52eac8218175f59547b5f09.tar.bz2
nextpnr-5838662b2f8a06aef52eac8218175f59547b5f09.zip
machxo2: Make sure REGSET FF parameter is set in FACADE_SLICE. Init blinky ctr to 0 for miter circuit.
Diffstat (limited to 'machxo2/examples')
-rw-r--r--machxo2/examples/blinky.v3
1 files changed, 2 insertions, 1 deletions
diff --git a/machxo2/examples/blinky.v b/machxo2/examples/blinky.v
index c7cde26d..2137ad58 100644
--- a/machxo2/examples/blinky.v
+++ b/machxo2/examples/blinky.v
@@ -1,6 +1,7 @@
module top(input clk, rst, output [7:0] leds);
-reg [7:0] ctr;
+// TODO: Test miter circuit without reset value.
+reg [7:0] ctr = 8'h00;
always @(posedge clk)
if (rst)
ctr <= 8'h00;