Forum Discussion
Altera_Forum
Honored Contributor
15 years agoA trouble With Code
Hi all, well am a new VHDL programmer, and I was trying to write a code for a generic multiplier using a 4 bit ripple adder, the results are correct, but my design should include two modes, test m...
Altera_Forum
Honored Contributor
15 years agoTo avoid double drive on "output" connect "temp1" to multiplier output at G0 line and assign temp2 instead of output in the line:
output(n+3 DOWNTO 0)<= input1(0) & output(n+2 DOWNTO 0); Then create a switch: if ... output <= temp1; else output <= temp2; end if;