Forum Discussion
KRose13
New Contributor
6 years agoHello, I am writing a verilog code from my DE10-Lite Board to scroll the a word or number but keep having errors. Would you be able to help?
module DE10_LITE_Default( input clock, reset, input HEX0, HEX1, HEX2, HEX3, //the 4 inputs for each display output a, b, c, d, e, f, g, dp, //the individual LED output for the seven segment alo...
sstrell
Super Contributor
6 years agoI get different errors than you did when elaborating this code. However, you have "sseg" but never define it. It should be type reg. You also make assignments to HEX_Display in two separate processes. I think you mean for HEX_Display to be on the right side of the final assign statement:
assign {g,f,e,d,c,b,a} = HEX_Display;
And since HEX0-HEX3 are single bit inputs, making sseg a single bit value, only the 0 and 1 checks in the final case statement can match to set the value of HEX_Display. This only displays warnings, not errors, when compiled but it should be fixed.
#iwork4intel