Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - ISE Testbench/Schematic Generation ignores package

 
Thread Tools Search this Thread
Old 04-15-2005, 11:44 AM   #1
Default ISE Testbench/Schematic Generation ignores package


Using the Xilinx Project Navigator, I created a project and added a package
definition (vhd-file) at the very top level. Inside this package I defined
some types of integers, signed and unsigned.
I included this package in all other vhd-files of the project with "use
my_package.all". All syntax checks were successfull.
Now the problem: When I automaticaly create a Schematic or a Testbench file,
the package definitions seem to be ignored: all ports defined in the
original vhd-file as integers (8bit) are now only std_logic. This can be
seen directly in the schematics drwaing, or the testbench grafical display
or the testbench vhd-file.
I get an error message saying:
"Compiling vhdl file ##_top.vhd in Library work.
ERROR:HDLParsers:3014 - ##_top.vhd Line 9. Library unit my_package is not
available in library work.
WARNING:HDLParsers:3465 - Library as no units. Did not save reference file
xst/work/hdllib.ref for it."

Does anyone know where the error is located?

--

__________________________________________
Dipl.-Ing. Hanns-Walter Schulz
TU Braunschweig
Institut fuer Luft- und Raumfahrtsysteme
Institute of Aerospace Systems
Hermann-Blenk-Str. 23 Tel.: ++49 531 391 9968
D-38108 Braunschweig Fax: ++49 531 391 9966




Dipl.-Ing. Hanns-Walter Schulz
  Reply With Quote
Old 04-16-2005, 07:04 PM   #2
Mike Treseler
 
Posts: n/a
Default Re: ISE Testbench/Schematic Generation ignores package
Dipl.-Ing. Hanns-Walter Schulz wrote:

> Does anyone know where the error is located?


In your source code.
Consider running a simulation or posting it.

-- Mike Treseler


Mike Treseler
  Reply With Quote
Old 04-18-2005, 07:24 AM   #3
Dipl.-Ing. Hanns-Walter Schulz
 
Posts: n/a
Default Re: ISE Testbench/Schematic Generation ignores package
Seems I can't attach files in the newsgroup. The problem is as follows:
I have defined the types uint8 and uint16 in "mavision_package.vhd". I use
these to define the ports of "mavision_top.vhd". If I check syntax for
"mavision_package.vhd" and "mavision_top.vhd", I get no warnings or error
messages from ISE. But, if I try to automatically derive a Test Bench
Waveform from "mavision_top.vhd", all uint8 and uint16 ports are defined as
std_logic ports.
This can be seen in "TBW1.tbw" or "TBW1.vhw". This is the reason, why I cant
run a simulation.

Where's the mistake?

Here are the package an the main file:

################################################## ##############################
package
################################################## ##############################

library IEEE;
use IEEE.STD_LOGIC_1164.all;

package mavision_package is

type uint8 is range 255 downto 0;
type sint8 is range 127 downto -128;

type uint16 is range 65535 downto 0;

end mavision_package;


################################################## ##############################
main
################################################## ##############################
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;

library UNISIM;
use UNISIM.VComponents.all;

library mavision_lib;
use mavision_lib.mavision_package.all;


entity mavision_top is
port (CLK_Pixelclock : in std_logic;
Data_in : in uint8;
LVAL : inout std_logic;
FVAL : inout std_logic;
PVAL : out std_logic;
ROWS : out uint16;
COLS : out integer
);

end mavision_top;

architecture Behavioral of mavision_top is

component tstr is
port (CLK_Pixelclock_S : in std_logic;
Data_in_S : in uint8;
LVAL_S : inout std_logic;
FVAL_S : inout std_logic;
PVAL_S : out std_logic;
ROWS_S : out uint16;
COLS_S : out integer
);
end component tstr;

begin
tstr_1 : tstr
port map (CLK_Pixelclock_S => CLK_Pixelclock,
Data_in_S => Data_in,
LVAL_S => LVAL,
FVAL_S => FVAL,
PVAL_S => PVAL,
ROWS_S => ROWS,
COLS_S => COLS
);

end Behavioral;

################################################## ##############################

I really would appreciate if you'd find the time to have a look at it.

Greets,
Hanns-Walter



"Dipl.-Ing. Hanns-Walter Schulz" <> schrieb im Newsbeitrag
news:d3o61m$7d2$...
> Using the Xilinx Project Navigator, I created a project and added a
> package definition (vhd-file) at the very top level. Inside this package I
> defined some types of integers, signed and unsigned.
> I included this package in all other vhd-files of the project with "use
> my_package.all". All syntax checks were successfull.
> Now the problem: When I automaticaly create a Schematic or a Testbench
> file, the package definitions seem to be ignored: all ports defined in the
> original vhd-file as integers (8bit) are now only std_logic. This can be
> seen directly in the schematics drwaing, or the testbench grafical display
> or the testbench vhd-file.
> I get an error message saying:
> "Compiling vhdl file ##_top.vhd in Library work.
> ERROR:HDLParsers:3014 - ##_top.vhd Line 9. Library unit my_package is not
> available in library work.
> WARNING:HDLParsers:3465 - Library as no units. Did not save reference file
> xst/work/hdllib.ref for it."
>
> Does anyone know where the error is located?
>
> --
>
> __________________________________________
> Dipl.-Ing. Hanns-Walter Schulz
> TU Braunschweig
> Institut fuer Luft- und Raumfahrtsysteme
> Institute of Aerospace Systems
> Hermann-Blenk-Str. 23 Tel.: ++49 531 391 9968
> D-38108 Braunschweig Fax: ++49 531 391 9966
>
>





Dipl.-Ing. Hanns-Walter Schulz
  Reply With Quote
Old 04-18-2005, 03:14 PM   #4
Mike Treseler
 
Posts: n/a
Default Re: ISE Testbench/Schematic Generation ignores package
Dipl.-Ing. Hanns-Walter Schulz wrote:

> I have defined the types uint8 and uint16 in "mavision_package.vhd".


Consider using these types inside your processes
but convert to std_logic_vector
for the top port assignments.
This will make your design entity compatible
with most other tools.

> But, if I try to automatically derive a Test Bench
> Waveform from "mavision_top.vhd", all uint8 and uint16 ports are defined as
> std_logic ports.


Consider writing your own testbench.

> library IEEE;
> use IEEE.STD_LOGIC_1164.ALL;

-- use IEEE.STD_LOGIC_ARITH.ALL;
-- use IEEE.STD_LOGIC_UNSIGNED.ALL;

Omit the unused math libraries.
Consider ieee.numeric_std if you
are using numeric operations.

-- Mike Treseler


Mike Treseler
  Reply With Quote
Old 04-19-2005, 09:18 AM   #5
Steven Z. Yu
 
Posts: n/a
Default Re: ISE Testbench/Schematic Generation ignores package
>> library mavision_lib;
>> use mavision_lib.mavision_package.*all;





You need to include your package this way


use work.mavision_package.*all

libray mavision_lib is not necessary


Steven



Steven Z. Yu
  Reply With Quote
Old 04-26-2005, 03:45 PM   #6
Mike Treseler
 
Posts: n/a
Default Re: ISE Testbench/Schematic Generation ignores package
> Dipl.-Ing. Hanns-Walter Schulz wrote:
> Thanks for your answers, Mike.


You are welcome

> Is there a standard way to convert the uint8 and int8
> to std_logic_vector(7 to 0) or do I have to wright such a conerting procedure myself?


Consider using unsigned for numeric vectors,
then cast to std_logic_vector for the port assignment.
See the line
count <= std_logic_vector(count_v);
in
http://groups-beta.google.com/groups...rst+try+step_v

-- Mike Treseler


Mike Treseler
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Intel X25-M Reloaded: Generation 2 Preview Admin Front Page News 0 09-02-2009 09:44 AM
As growth slows, Hollywood faces a DVD standoff. Allan DVD Video 0 07-11-2005 02:10 PM
Second Generation Blu-ray Products To Be Rolled Out At Year's End. Allan DVD Video 0 03-16-2005 10:18 AM
The Practice Test Package Development: A New Service on the Certification Market David Johnson A+ Certification 0 01-19-2005 10:52 AM
PC Package deals? jkl A+ Certification 0 10-28-2004 05:12 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

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