tags:

views:

822

answers:

3

I'm using Altera Quartus 2 to do a custom 8 bit processor and it takes forever to compile on my laptop. I'm only using simulations and making my processor in schematic (block diagram) and VHDL. Right now it takes around 10 minutes to compile, which is a pain since I'm more on the debugging phase of the project where I have to fix up the internal timing and make lots of very little changes to see what happens.

I'm not actually putting it on a FPGA, so do I need the compiling phases of "fitter" and "assembler"?

Can I change the contents of a memory file of one lpm_ram_dq and test it in simulation without recompiling?

In summary anyone knows how to make it compile faster?

+1  A: 

Some things:

  • If you're not putting it on an FPGA, why compile with Quartus ? Just simulate it with Modelsim or ActiveHDL or whatever simulator you have.
  • 2 minutes is a very short compile time. Really :-)
  • Try Quartus 8, it's much faster than 7 and older
  • To check that your code synthesizes correctly and see the netlist, you indeed don't need the fitter and assembler steps
Eli Bendersky
1: Not an option, I'm doing a college assignment and the professor requires Quartus II Simulation.2: My project is now on 10 min compile time, about 6 min is in the fitter phase.3: I'm using Quartus 8.14: I didn't understand that, can you explain better? I'm a hardware designer noob...
Hoffmann
+1  A: 

In order of decreasing important.

  • More memory. 4 GB for a 32-bit OS. Some designs need more that that and require a 64-bit OS.
  • Don't overconstrain the design.
  • Change the compilation options to not try as hard. That's under assignments> settings> Fitter Settings>Fast Fit (or Auto Fit)
  • 8.1 supports multiple cores.
  • Hiearchical compiles help, especially if you have multiple instances of the same block.

2 minutes is really short, I agree with the previous poster. A single gate will that take long.

Brian Carlton
1: My laptop have 2GB memory, it should be enough for my project2: What you mean?3: That didn't work, it still takes a lot of time in the Fitter4: How do I do that? I can't make it use 100% of my CPU5: I do have lots of instances of the same block, how do I do a hiearchical compilation?
Hoffmann
Sorry, my mistake. the second observation did work. It halved the Fitter time, it went down from 8 min to 4 min. Thanks!
Hoffmann
+1  A: 

If you only need to simulate in Quartus, you do not have to run a full compilation. If you press Ctrl-K only the analysis and elaboration is performed. The quartus simulator should do this for you.

OTH as mention by several others: 10 minutes a very short compilation time. For real designs it is not unusual to leave it running for at least an hour.

trondd