Forum Discussion
Altera_Forum
Honored Contributor
10 years agoNo. You still need to convert manually to fixed point. It is a toolbox in Matlab. Type "ver" in the command window to see what toolboxes you have. It should include Fixed-Point Designer.
For the inputs and outputs I was talking about YOUR design. It have several inputs (which you currently set to constants) and 1 output (which u connect to a scope). I used 12 bits because I didn't want to spend a lot of time picking the proper bit widths. With fixdt(1,12,6) i can cover -32 to 32 - (1/2)^6 with the resolution of (1/2)^6 In HDL one of your basic inputs is a CLOCK, you would externally drive this with some clock. It may will be w/e you want it to be. However, the z -domain representation of the integrator will change with the clock frequency you choose b/c an integrator is T/(1-z^-1) where T is 1/clock frequency. Right now the simulink is for a clock frequency of 10kHz, which is much slower than the max clock frequency that an FPGA can use. Modelsim shows you individual bits ( 0's and 1's ). To actually see meaningful information you need to group the bits. So if your output is 12 bits you will need to group output[11] thru output[0] into a single bus. DSP builder acts like a library in Matlab. You need to tell matlab which folder it is located in.