- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
when I compile my VHDL design, there is always a error saying that * design library "book_lib" does not contain primary unit "utils_pkg"*. Does anyone know how to fix it?Thanks Following is my code: library ieee,book_lib; use ieee.std_logic_1164.all,book_lib.utils_pkg.all; --bla bla blaLink Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am not familiar with VHDL, but is it supposed be a comma after "all" ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
library uses are usually ended with a semi-colon (;).
But this error means you have not compiled the utils package into the book_lib library.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- library uses are usually ended with a semi-colon (;). --- Quote End --- Not necessary: you can write a comma separated list of things to use.
use ieee.NUMERIC_BIT.all, ieee.std_logic_1164.all;
is the same as: use ieee.NUMERIC_BIT.all;
use ieee.std_logic_1164.all;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You need to find the file that contains package utils_pkg, and add it to your project, in the book_lib library.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page