Forum Discussion
Altera_Forum
Honored Contributor
10 years agoOK you seem to not understand the fundamentals of FPGAs.
HDL is a hardware - description language. It isn't software. Hardware needs a defined input and an output. Right now it simulink your "inputs" are some constants, but when you convert to HDL using HDLCoder you basically have a system without any "input ports" and "output ports". This means that when the synthesizer looks at your design it sees it doing nothing. Since the digital design works (sinmulink44_dig2009a.mdl) you need to replace your constant inputs with input ports (look in the simulink library) and replace the output scope you have with an output port. Set their data types to fixdt(1,12,6). Then regenerate the HDL. It should recognize several 12 - bit inputs (input1, input2, input3....) and one 12 - bit output. Then you can send this to Modelsim and look at each 12 -bit bus. If you need more explanation about fixed point representation just search "matlab fixed point toolbox" on google. There are plenty examples and explanations. Altera's DSP blockset also needs fixed point toolbox.