Altera_Forum
Honored Contributor
17 years agoMegafunctions in ModelSim
Hello
I making sort of test here: I made adder using Quartus megafunction LPM_ADD_SUB and I want to simulate in ModelSim-Altera. The adder has only dataA/B inputs and RESULT output. The ModelSim project contains the adder verilog file from the megafunction wizard and lpm_add_sum.v. For defining the inputs using modelsim console with the following: force dataa 01111000 0 force datab 01111100 0 run 6000000 The result is Z... :eek: :confused: :( WHY?? When I add clock/clocken/reset to the adder the result is the same. I think i have all the libraries included. Or i cant simulate megafunctions with ModelSim??