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

Reply

VHDL - Including Verilog parameter file in VHDL design

 
Thread Tools Search this Thread
Old 02-06-2007, 02:11 PM   #1
Default Including Verilog parameter file in VHDL design


Hi newsgroup,

I am trying to write a VHDL wrapper for a Verilog IP core which
includes
a "params.v" file:


`define DDR2_MODE
`define ROW_WIDTH 13
`define COL_WIDTH 10
`define COL_WIDTH_EQ_10 TRUE
....

These parameters are used to define the port widths etc. of the IP
core.

How can I take over the parameter file into my VHDL wrapper ?
Do I have to generate a second VHDL parameter file ?

Thank you for your opinion.

Rgds
Andre



ALuPin@web.de
  Reply With Quote
Old 02-08-2007, 12:24 PM   #2
Marcus Harnisch
 
Posts: n/a
Default Re: Including Verilog parameter file in VHDL design
Hi Andre

"" <> writes:
> I am trying to write a VHDL wrapper for a Verilog IP core which
> includes a "params.v" file:
>
> ...
>
> How can I take over the parameter file into my VHDL wrapper ?
> Do I have to generate a second VHDL parameter file ?


Several options:

1. Do you really have to have a VHDL wrapper? Depending on the amount
of glue logic, the easiest way would be to whip up a Verilog
wrapper and include "params.v" there. It sounds like you will end
up with a mixed language environment anyway.

2. At least one tool I know of can output the interface description of
a compiled design in XML format. You can get really fancy and write
an XSLT script to generate a VHDL wrapper :^)

Or use something like Perl's XML::Simple.

3. Maybe your tools support something like "cc -E" in C-world, which
gives you the preprocessed output of a processed file. Then you
could use these macros (not parameters in Verilog jargon!) in your
VHDL file.

4. Roll your own (limited) Verilog preprocessor in your favorite
scripting language.

Regards,
Marcus

--
note that "property" can also be used as syntaxtic sugar to reference
a property, breaking the clean design of verilog; [...]

-- Michael McNamara
(http://www.veripool.com/verilog-mode_news.html)


Marcus Harnisch
  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
Error: Physical sythesis tool PALAC is not supported by Formal Verification tool Conf bbiandov Software 0 12-22-2008 05:25 AM
VHDL file IO (using file as variable) veevee1 VHDL 0 03-07-2007 11:56 AM
problems backing up dvds Lawrence Traub DVD Video 11 09-27-2005 07:34 PM
Re: Ripping DVDs. Please answer the attached question. - Question.txt Stan Brown DVD Video 19 02-09-2005 11:19 PM
Burn process failed - help! Log file posted for help troubleshooting Michael Mason DVD Video 1 08-16-2004 09:24 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