Forum Discussion
Altera_Forum
Honored Contributor
9 years agoQuartus workflow
Hi,
My project keeps growing and I am having some difficulties to keep all source files in one place. Other thing what bothers me is constantly switching between modelsim and Quartus. For now I create separate projects for modelsim(functional simulation, testbench) and Quartus (synthesis, testing on hardware, signaltap). Can someone share what workflow you use? What structure do you have for project files? What is the best workflow for creating testbech files and simulating complex designs? Thanks18 Replies
- Altera_Forum
Honored Contributor
I don't simulate a full FPGA design but only separate modules with well defined interfaces. So I have separate projects for simulation and synthesis/test/debug. I never call modelsim from Quartus.
As for my project structure, we heavily use version control at my job (Subversion... I'd like to move to Mercurial but it has been hard enough to make everyone move from "cp -r" to subversion already ;) ). So I have even separate folders for source code between simulation and synthesis. My Quartus project uses subversion externals to point to each module I use and I use Subversion to synchronize between my simulation and synthesis folders. It needs some getting used to but I have a lot better control now over module versions and update. It makes it also easier to work on a new version of a module in Modelsim without disturbing an ongoing Quartus project. - Altera_Forum
Honored Contributor
I am a bit dissapointed that i have to create two separate projects one for Quartus and one for Modelsim and add same files to each projects. I create and edit files using quartus because for me Modelsim text editor is ugly and there are no features to help type code faster. Quartus atleast has autocomplete, but still im missing some features in quartus text editor to navigate through code also.
- Altera_Forum
Honored Contributor
--- Quote Start --- I am a bit dissapointed that i have to create two separate projects one for Quartus and one for Modelsim and add same files to each projects. I create and edit files using quartus because for me Modelsim text editor is ugly and there are no features to help type code faster. Quartus atleast has autocomplete, but still im missing some features in quartus text editor to navigate through code also. --- Quote End --- You dont We dont do it. We just have a working folder with all the source in different folders for each module. Each module has "syn", "src" and "sim" folders, with scripts for synthesis and simultion in the syn and sim folder. That way youcan synth or sim each module on it's own, with a top level folder to bring it all together. Everything is script driven so we dont need to manage projects. The scripts will build you a project so you can investigate it when finished - Altera_Forum
Honored Contributor
Also - modelsim and quartus are terrible text editors. Use something usefull like notepad++ instead!
- Altera_Forum
Honored Contributor
--- Quote Start --- Also - modelsim and quartus are terrible text editors. Use something usefull like notepad++ instead! --- Quote End --- Do you use some plugin for Notepad++? - Altera_Forum
Honored Contributor
--- Quote Start --- Do you use some plugin for Notepad++? --- Quote End --- I use fingertext which allows you define templates, but thats it. Otherwise just raw notepad++. It does have autocomplete by default but I dont use it. - Altera_Forum
Honored Contributor
--- Quote Start --- You dont We dont do it. We just have a working folder with all the source in different folders for each module. Each module has "syn", "src" and "sim" folders, with scripts for synthesis and simultion in the syn and sim folder. That way youcan synth or sim each module on it's own, with a top level folder to bring it all together. Everything is script driven so we dont need to manage projects. The scripts will build you a project so you can investigate it when finished --- Quote End --- That's funny - I do the exact same thing including the same folder names. A trickier thing to handle is sharing source code between multiple projects. Most of my customers prefer to keep all projects completely separate, even if that requires a lot of file duplication. Wasteful I suppose but in some ways it does keep things simpler. - Altera_Forum
Honored Contributor
--- Quote Start --- I use fingertext which allows you define templates, but thats it. Otherwise just raw notepad++. It does have autocomplete by default but I dont use it. --- Quote End --- So what is the big difference between raw Notepad++ and quartus tex editor? I dont see how raw notepad could help to type and navigate trough code faster. What about syntax check and source compilation? What i want from text editor:- Autocomplete
- Some outline view - for example if i have some process in my code
I would like to jump to this process insted of scroling through hundreds of lines. Same to component instantiations, declared signals ect. I know that Sigasi has such feature but it is not free as i know.compute_xor: process (b,c) begin a<=b xor c; end process;
- Syntax check
- Altera_Forum
Honored Contributor
--- Quote Start --- So what is the big difference between raw Notepad++ and quartus tex editor? --- Quote End --- Other than column edit mode, and the massive bulk of quartus, not alot. But everyone has their personal preference. Personally, I'm happy to use the free software as I know I'll be able to use it in any company. - Altera_Forum
Honored Contributor
--- Quote Start --- Other than column edit mode, and the massive bulk of quartus, not alot. But everyone has their personal preference. Personally, I'm happy to use the free software as I know I'll be able to use it in any company. --- Quote End --- I agree with your statement about free software. Ok so I will write my code with Notepad++, what next? How do you check your syntax and other compilation errors? Thank you for your time