gateware

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 1ddac262ea0a789d650a292652067070417a105f
parent 4d15b93441b068dab804cf45b613d9e2a7d91aa3
Author: Brian Swetland <swetland@frotz.net>
Date:   Sat, 17 Nov 2018 10:57:30 -0800

chardata: correctly init state machine state

Otherwise arachne-pnr goes ahead and converts these to one-hot,
leaving them default-init'ed to 0 and nothing works...

Diffstat:
Mhdl/vga/chardata.v | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hdl/vga/chardata.v b/hdl/vga/chardata.v @@ -38,7 +38,7 @@ chardata chardata( reg [7:0] cdata, next_cdata; reg [3:0] bitcount, next_bitcount; -reg [1:0] state, next_state; +reg [1:0] state = 2'h0, next_state; always @(*) begin next_bitcount = bitcount; @@ -102,7 +102,7 @@ module chardata( reg [7:0] pattern_rom [0:1023]; reg [2:0] pline, next_pline; -reg [1:0] state, next_state; +reg [1:0] state = `SWAIT, next_state; reg [10:0] next_addr; reg [7:0] next_cdata;