- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I'm sure this question has been asked before but I can't seem to find an answer to it. I am trying to use a verilog file in a vhdl project like this: u1 : entity work.sdram port map( CLOCK_50=>systemClk, SW=>input, LEDG=>sdramLedG, LEDR=>sdramLedR ); However when I try to compile it gives Error (10481): VHDL Use Clause error at sdram_driver_test.vhd(25): design library "work" does not contain primary unit "sdram" Trying without the work doesn't work either. Any ideas?Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
add a VHDL component declaration for sdram. i don't think direct instantiation will work mixed language without a component declaration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You have to treat the verilog like a black box. so you will need a component declaration else the VHDL has no knowledge of the existance of the Verilog, and hence throws the error. This way you can instantial verilog or AHDL entities from VHDL.

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