Altera_Forum
Honored Contributor
14 years agoALTFP_MULT and ALTFP_ADD_SUB issues
Hi there,
When I simulate the ALTFP_MULT and ALTFP_ADD_SUB megafunctions in modelsim (directly from my testbench, not through my main design) I get zero results from both. Has anyone else encountered this, or perhaps have any ideas why this might be happening? I'm using this code to simulate them: --- Quote Start --- FIRadd addtest( add_rst, add_en, CLOCK_50, dataa, datab, add_result ); initial begin add_rst = 1'b1; add_en = 1'b0; dataa = 32'h00000000; datab = 32'h00000000; # 50ns; add_rst = 1'b0; add_en = 1'b1; dataa = 32'h0000000F; datab = 32'h0000F001; end --- Quote End ---