Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17255 Discussions

VHDL syntax error ---- parser stack overf

Altera_Forum
Honored Contributor II
4,184 Views

Hallo 

 

I am trying to use the FIR Interpolation Block from Simulink with 4096 coefficients and 256 upsampling. I using the hdl coder to generate the VHDL code and then Altera Quatrus 2 to synthesize the code. My HDL code generates perfectly. But when i try to synthesize it i run in to the following error 

 

VHDL syntax error at FIR_Interpolation.vhd(11060) near text "2495"parser stack overflow FIR_Interpolation.vhd Line: 11060 

 

I am attaching the VHDL file that i am generating.  

 

Is it like i have too many filter coefficients? I am able to synthesize the filter with 512 coefficients set and 32 bit upsample. Then i tried the same filter with this setting and i get this error. Can anyone help me with the error?
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
2,994 Views

That is a large file - and looks like a compiler crash 

What version of Quartus is it? have you tried using a newer version? 

Otherwise, you'll need to raise a support request with altera via MySupport on their website. 

 

Have you tried simulating the design?
0 Kudos
Altera_Forum
Honored Contributor II
2,994 Views

Hallo 

 

thanks for the quick reply 

This is MATLAB 2014b, Altera Quatras 2 (version 13.0 web edition). I tried using version 16.1 but it was not supported for my MATLAB version. If you think upgrading the version would help i can try upgrading my MATLAB and Altera version. 

 

Yes the design simulates in simulink perfectly. What did you exactly mean by simulating the design?
0 Kudos
Altera_Forum
Honored Contributor II
2,994 Views

The version of quartus should not matter - all you are passing to Quartus is HDL code. So you should be able to try the new version without having to set anything in simulink.  

Simulation is done in an HDL simulator like Modelsim (you get a free version from altera too). This simulates the HDL (and will be another compiler check) 

 

But the original error looks like a quartus crash. hence the suggestion to try a newer version of Quartus.
0 Kudos
Altera_Forum
Honored Contributor II
2,994 Views

Such a large FIR Filter though is likely to run very very very slow on an FPGA - it's trying to mux between 4096 32 bit values - I suspect the FMax is not going to be more than a few MHz.

0 Kudos
Altera_Forum
Honored Contributor II
2,994 Views

I don't think that the free modelsim will work with such a large file. 

 

Just curious, what needs a filter with such a huge number of coefficients?
0 Kudos
Reply