Forum Discussion
Altera_Forum
Honored Contributor
14 years agoSimulation Problem Multiplier 8 bits
Here is the code: Library ieee; use ieee.std_logic_1164.all; use IEEE.std_logic_arith.all; use IEEE.std_logic_unsigned.all; entity Multiplier8 is port (clk : in std_logic; ...
Altera_Forum
Honored Contributor
14 years agoI used modelsim and changed this part:
when s1=> if Q(0)='1' then ab<=('0' & A) + ('0' & B ); else ab<=('0' & a); end if; when s2=> Product1<= (ab & Q); Product2<= '0' & Product1(16 downto 1); Product<=Product2(15 downto 0); It still does not work. I take no result. It goes to the right states and when counter reaches 0 i get done=1 but no result. Any ideas?