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

Reply

VHDL - interfacing verilog and vhdl

 
Thread Tools Search this Thread
Old 08-27-2004, 01:35 PM   #1
Default interfacing verilog and vhdl


hi,
i have code written in verilog and want to download it onto an FPGA.
the top level file with the port assignments is in VHDL. how can the
keyword foreign in vhdl be used to instantiate the verilog module in
vhdl?
can somebody give me an example on how to do this?
thank you.
cka.


cka
  Reply With Quote
Old 08-27-2004, 04:39 PM   #2
Javier Castillo
 
Posts: n/a
Default Re: interfacing verilog and vhdl
Hello:

It depends the simulator you are using. But in most of them they provide a
binary to generate a VHDL wrapper for the verilog module you can
instantiate into your VHDL code. Then you compile all and works.

Regards

Javier Castillo


www.opensocdesign.com


(cka) wrote in news:def708b0.0408270435.2bbc1466
@posting.google.com:

> hi,
> i have code written in verilog and want to download it onto an FPGA.
> the top level file with the port assignments is in VHDL. how can the
> keyword foreign in vhdl be used to instantiate the verilog module in
> vhdl?
> can somebody give me an example on how to do this?
> thank you.
> cka.
>




Javier Castillo
  Reply With Quote
Old 09-11-2004, 01:48 AM   #3
pablo aimar
 
Posts: n/a
Default Re: interfacing verilog and vhdl
Hi
just instantiate like this
==========================

processor: kcpsm3
port map( address => address,
instruction => instruction,
port_id => port_id,
write_strobe => write_strobe,
out_port => out_port,
read_strobe => read_strobe,
in_port => in_port,
interrupt => interrupt,
interrupt_ack => interrupt_ack,
reset => '0',
clk => clk);

where kcpsm3 is a verilog module.
============================

-rao


pablo aimar
  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
VHDL code for SPI Master shah_satish2002 Hardware 2 07-22-2007 08: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