Forum Discussion
KRose13
New Contributor
6 years agoHello, I am trying to complete this task but having issues with compiling. Fingers crossed the code it works on my DE10-Lite board.
module DE10_LITE_Default(a,b); // circuitA input [2:0]a; output [2:0]b; assign b[2:0] = (a[2:0] == 3'b010) ?3'b000 : // 2 ? 0 (a[2:0] == 3'b011) ?3'b001 : // 3 ? 1 (a[2:0] == 3'b100)...
sstrell
Super Contributor
6 years agoAs the error states, S1carry must be a variable data type because it's on the left-hand side of assignments inside the always block. Thus, it should be reg instead of wire.
#iwork4intel