Forum Discussion
Altera_Forum
Honored Contributor
15 years agoStep 1: Go to your tutor and tell him that AHDL is an old and unsupported language. From Quarus 10 you wont be able to simulate it at all.
Step 2: Do it in a more modern HDL like VHDL or Verilog that are IEEE standard, not proprietry, languages. Otherwise:
MultiplierA : lpm_mult WITH ( LPM_WIDTHA = 2 ,
LPM_WIDTHB = 2 ,
LPM_WIDTHP = 4 ,
LPM_WIDTHS = 1 ,
LPM_REPRESENTATION = "UNSIGNED" ,
LPM_PIPELINE = 1 ,
INPUT_A_IS_CONSTANT = "NO" ,
INPUT_B_IS_CONSTANT = "NO" ,
USE_EAB = "OFF" ,
DEDICATED_MULTIPLIER_CIRCUITRY = "YES"
) ;
MultiplierA.clock = clk;
MultiplierA.clken = VCC;
MultiplierA.dataa = input1;
MultiplierA.datab = input2;
output = MultiplierA.result;