Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Altera Quartus, libraries and mixed VHDL / (SYSTEM)VERILOG error

Reply
Thread Tools

Altera Quartus, libraries and mixed VHDL / (SYSTEM)VERILOG error

 
 
Peter Bluer
Guest
Posts: n/a
 
      01-06-2010
I'm trying to run a design through Quartus II which is a mixture of VHDL,
Verilog and system verilog.

I can compile it for modelsim outside of quartus and it simulates fine,
however I get errors when running through the quartus mapper.

In quartus I add files into a library called 'design', an example of this
is:

set_global_assignment -name SYSTEMVERILOG_FILE -library design
$SV_PATH/counter.sv

These files are found by quartus:

Info: Found 1 design units, including 1 entities, in source file counter.sv
Info: Found entity 1: counter

If I check the file list the files are specified to be in the library
'design'.

However, when I run the mapper I get this error:

Error (10481): VHDL Use Clause error at mydesign.vhd(446): design library
"design" does not contain primary unit "counter" File: mydesign.vhd Line:
446

The VHDL file mydesign.vhd snippet with this block in is:

LIBRARY design:
CONFIGURATION DUMMY of top IS
FOR struct
For counter_c : counter
USE ENTITY design.counter(counter); <---- Line 446
END FOR;
..
..
..
END CONFIGURATION DUMMY;

Can anyone tell from this what may be causing the error?

Thank you.

 
Reply With Quote
 
 
 
 
Mike Treseler
Guest
Posts: n/a
 
      01-07-2010
Peter Bluer wrote:

> Error (10481): VHDL Use Clause error at mydesign.vhd(446): design
> library "design" does not contain primary unit "counter" File:
> mydesign.vhd Line: 446
>
> The VHDL file mydesign.vhd snippet with this block in is:
>
> LIBRARY design:

^
This is a syntax error. There is no library declaration in vhdl.

> CONFIGURATION DUMMY of top IS
> FOR struct
> For counter_c : counter
> USE ENTITY design.counter(counter); <---- Line 446


USE ENTITY work.counter(counter); -- try this instead.

-- Mike Treseler
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
equivalent Xilinx FPGA for Altera Stratix II GX-60 ,Altera StratixII GX-90 chaitu VHDL 1 01-28-2008 12:46 PM
Using Altera LPM megafunctions in Quartus II and VHDL in general Shannon VHDL 20 08-25-2006 12:24 PM
Does anyone have the I2C vhdl code and work for Altera Flex10K FPGA? underground VHDL 5 07-22-2004 10:45 PM
Is there a VHDL or Altera Users Group in Orange County CA Don Golding VHDL 0 04-26-2004 03:19 AM
VHDL code of PLL and LVDS-receiver for FLEX10K Altera PLD spiderman_astig VHDL 3 02-06-2004 05:03 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57