FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
6355 Discussions

Does changing the Simulink simulation options change the HDL code generation

Altera_Forum
Honored Contributor II
1,060 Views

Hello all, 

 

I am a DSP Builder starter and having read the DSP Builder Advanced Blockset manual I still have some questions. 

 

So is it so that the VHDL code generation is affected by changing the Variable to Fixed-step solver or by changing the Pulse period or width of the data valid pulse generator, etc? 

 

Or is the VHDL generation only dependent on the control and signal blocks? 

 

Thanks in advance.
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
340 Views

Its only depent on the blocks, but you can only generate VHDL code from fixed step solver.

0 Kudos
Altera_Forum
Honored Contributor II
340 Views

 

--- Quote Start ---  

Its only depent on the blocks, but you can only generate VHDL code from fixed step solver. 

--- Quote End ---  

 

 

I do not get this... 

 

How can it be only dependent on blocks but if i change the solver to variable step, no code is generated? So it is actually dependent. 

 

I opened an DSPBA example (motor control - ALU Folded) and the simulation settings is variable step. Also in the manual it is stated that for ALU folding I need a variable step (for simulation).
0 Kudos
Altera_Forum
Honored Contributor II
340 Views

Actually, I have not used DSP builder, only Simulink HDL coder. But for that discrete stepping was required.

0 Kudos
Altera_Forum
Honored Contributor II
340 Views

The solver has no effect on the HDL that DSP Builder generates. However the solver can affect the simulation results, which means when you try to verify your results in Modelsim, you can find spurious simulation mismatches. There are cases where DSP Builder will warn you about this, but probably others where it may not. 

 

In general, it's best to use the discrete fixed-step solver.
0 Kudos
Altera_Forum
Honored Contributor II
340 Views

 

--- Quote Start ---  

The solver has no effect on the HDL that DSP Builder generates. However the solver can affect the simulation results, which means when you try to verify your results in Modelsim, you can find spurious simulation mismatches. There are cases where DSP Builder will warn you about this, but probably others where it may not. 

 

In general, it's best to use the discrete fixed-step solver. 

--- Quote End ---  

 

 

Its been a while since I used the tools, and this makes more sense than my explination.  

Thanks
0 Kudos
Reply