Forum Discussion
9 Replies
- Altera_Forum
Honored Contributor
The PFL is NOT simulatable in RTL mode. However if you generate a gate level netlist with timing then the PFL can be simulated. Only the FPGA configuration part can be simulated NOT the Flash programming part.
- Altera_Forum
Honored Contributor
If you want to simulate the configuration part of the PFL, this is possible. Create a Vector Waveform File in the Quartus II software, specify the correct input vectors and then use the Quartus II simulator to simulate the configuration. You need to understand what are the correct input vectors that will allow configuration to happen, eg the Conf_done signal must be low, nStatus must be high etc.
- Altera_Forum
Honored Contributor
You can also write a model for the behavior of the FPGA config pins. This is the route I went to simulate code that does the FPGA config. The model can also be written to give a configuration error to simulate how the PFL reacts to a configuration failure if you have multiple programming images in FLASH. PFL can be set to program FPGA using 'image 1' on power-up. If 'image 1' is corrupt, PFL can move on to 'image 2'.
- Altera_Forum
Honored Contributor
Hi all,
Can we simulate parallel flash loader alone? Is anybody having examples of simulations? - Altera_Forum
Honored Contributor
What do you mean with alone? A ModelSim simulation with a flash functional model (I used a Spansion S29GL256N model) is feasible. As said, programming can't be simulated, cause JTAG interface and programmer action aren't easily accessible, but configuration can be fully traced in simulation, you need to model FPGA nStatus and ConfigDone responses in your testbench. And there's no checking for correct configuration data, of course.
I don't think, that the predefined standard PFL designs need to be simulated, but if you are trying to build something special, it may be useful. - Altera_Forum
Honored Contributor
Hi,
The alone I mean is I had created PFL from altera Megawizard, then I try to simulate straight after that. I generate signal from flash data and I cant get the output from my fpga_data. I am wondering is my simulation input signal got problems or anything? I attach with my design and hope that you can have a look in it for the simulation waveform. Thanks very much. - Altera_Forum
Honored Contributor
For the flash interface part, there is a flash simulation model that comes together with AN386. You can try it out as well.
- Altera_Forum
Honored Contributor
Hi,
Thanks for the info. I am refering the AN386 but I couldnt find the sample reference design, i mean .qpf in altera web site. Normally the samples example will be posted in altera web site under this link http://www.altera.com/support/refdesigns/ , right? Thanks. - Altera_Forum
Honored Contributor
Actually the memory model is located here.
http://www.altera.com/literature/lit-an.jsp Look for AN 386, you can will find the memory model there as well. Hope this helps.