Forum Discussion
Altera_Forum
Honored Contributor
15 years agoI already invert the negative using this coding, but the answer still same
always @ (*)begin
if (resulta[9]==0)
inv=resulta;
else if (resulta[9]==1)
inv = ((~resulta)+5'b00001);
I already invert the negative using this coding, but the answer still same
always @ (*)begin
if (resulta[9]==0)
inv=resulta;
else if (resulta[9]==1)
inv = ((~resulta)+5'b00001);