Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
17 years ago

Quartus II newbie questions

Hello,

I recently installed the latest Quartus II 8.0 SP1 and I am trying to get familiar with the tool.

I have few questions I couldn't find an answer in the tutorials or by searching.

1. How I can generate a VHDL instantiation template? The File->Create/Update->Create VHDL Component... does only the component declaration.

2. I created a minimal test design with two VHDL files , one of them being the top module. What I noticed is that "Analyze Current File" always analyzes both of them,no mather which one I am currently working on. Why? I did not instantiated (yet) the second module in the top entity.

3. How I can generate a test bench template for a file other than the top module? (Simulation tool: Modelsim-Altera) Processing->Start->Start Test Bench Template Writer always generates the test bench for the top module.

General comments.

I thought this tool would be a friendly one. But I find important commands or options deeply hidden under misleading menus and hard to use.

But maybe it's just me, being new with Quartus.

Thanks!

BR

12 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    The best way to help is to discuss about what was asked and provide a solution or work around if possible.

    --- Quote End ---

    Well let's try this again.

    1st question:

    --- Quote Start ---

    1. How I can generate a VHDL instantiation template? The File->Create/Update->Create VHDL Component... does only the component declaration.

    --- Quote End ---

    From Quartus beginning at the edit menu:

    a - Edit->Insert Template->VHDL->Constructs->Design Units->Entity. Does this menu exist in the web edition of the software and if so does it meet your needs?

    In my subscription edition it creates the following:

    entity <entity_name> is
    	generic
    	(
    		<name>	: <type>  :=	<default_value>;
    		...
    		<name>	: <type>  :=	<default_value>
    	);
    	port
    	(
    		-- Input ports
    		<name>	: in  <type>;
    		<name>	: in  <type> := <default_value>;
    		-- Inout ports
    		<name>	: inout <type>;
    		-- Output ports
    		<name>	: out <type>;
    		<name>	: out <type> := <default_value>
    	);
    end <entity_name>;
    

    2nd Question:

    --- Quote Start ---

    2. I created a minimal test design with two VHDL files , one of them being the top module. What I noticed is that "Analyze Current File" always analyzes both of them,no mather which one I am currently working on. Why? I did not instantiated (yet) the second module in the top entity.

    --- Quote End ---

    When I click on the "Analyze Current File" button on the left side of the text editor window (I normally use an external editor so this is new to me), It only analyzes the currently open file and no others. Here is the processing output in Quartus:

    Info: *******************************************************************
    Info: Running Quartus II Analyze Current File
    	Info: Version 8.0 Build 231 07/10/2008 Service Pack 1 SJ Full Version
    	Info: Processing started: Wed Oct 29 17:29:43 2008
    Info: Command: quartus_map --read_settings_files=on --write_settings_files=off trio_top -c trio_top --analyze_file=C:\Projects\cvs_test\trio\fpga\X2\trio_top\src\sdi\sdi_top.v
    Info: Quartus II Analyze Current File was successful. 0 errors, 0 warnings
    	Info: Peak virtual memory: 155 megabytes
    	Info: Processing ended: Wed Oct 29 17:29:44 2008
    	Info: Elapsed time: 00:00:01
    	Info: Total CPU time (on all processors): 00:00:01

    Can you post the output you get in the web edition?

    Jake
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    1.

    --- Quote Start ---

    In my subscription edition it creates the following:

    --- Quote End ---

    Thank you, this is indeed a work around for the question I asked. But, honestly, it is faster for me to type it and copy/paste ports than going through a 6 levels menu+trees just to get an example about how it should look like.

    2.

    --- Quote Start ---

    Can you post the output you get in the web edition?

    --- Quote End ---

    Sure, here:

    
    Info: *******************************************************************
    Info: Running Quartus II Analyze Current File
        Info: Version 8.0 Build 215 05/29/2008 SJ Web Edition
        Info: Processing started: Wed Oct 29 19:58:27 2008
    Info: Command: quartus_map --read_settings_files=on --write_settings_files=off test1 -c test1 --analyze_file=R:\altera\test1\hdl_src\my_and.vhd
    Error (10500): VHDL syntax error at test1.vhd(11) near text "-";  expecting "entity", or "architecture", or "use", or "library", or "package", or "configuration"
    Error (10523): Ignored construct test1 at test1.vhd(12) due to previous errors
    Error: Quartus II Analyze Current File was unsuccessful. 2 errors, 0 warnings
        Error: Peak virtual memory: 166 megabytes
        Error: Processing ended: Wed Oct 29 19:58:29 2008
        Error: Elapsed time: 00:00:02
        Error: Total CPU time (on all processors): 00:00:02
    
    I am posting this from home where I have 8.0 without SP1 but I get the same from 8.0 with SP1 at work.

    Please notice that the analyze was started with my_and.vhd and it found an error in test1.vhd.

    test1 is not instantiated in my_and and is a separate file.

    The reported error is what I deliberately introduced to show the problem.

    test1 is also the name of the test project in which test1.vhd is the top entity.

    In your report, from what I can see, you started the analyze with the top module and of course, it reported that everything is OK. How about introducing an error in the top module and start the analyze on a sub module?

    BR