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

Reply

VHDL - vhdl range in verilog

 
Thread Tools Search this Thread
Old 10-30-2009, 04:18 PM   #1
Default vhdl range in verilog


Hi,

how do I use a vhdl range type into a verilog vector?

eg.
vhdl:

type InputRange is
(
line01,
line02,
line03,
....
);

and then in verilog I want to use it like this:

wire [32:0] In_s;
assign In_s[line03] = other_signal;

Is it possible?

thanks
ivan




Ivan
  Reply With Quote
Old 10-30-2009, 06:42 PM   #2
Mike Treseler
 
Posts: n/a
Default Re: vhdl range in verilog
Ivan wrote:

> how do I use a vhdl range type into a verilog vector?
> eg.
> vhdl:
> type InputRange is
> (
> line01,
> line02,
> line03,
> ...
> );



Last I used verilog,
enumerations were a do-it-yourself project
something like:

parameter line01 = 1,
line02 = 2,
line03 = 3;

Good luck.

-- 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
Second router as Access Point to extend range Jeff Wireless Networking 6 12-04-2006 03:19 PM
Wireless Range andy.lisowski@gmail.com Wireless Networking 1 09-02-2006 07:10 AM
Weird IP range problem cs_kla@hotmail.com Computer Support 1 08-31-2006 09:01 PM
Re: FM Stereo Transmitter Range Kuper Kangiesser Computer Information 54 02-06-2005 12:11 PM
Apache on Windows 2K - helllabs? Michael Computer Security 2 11-28-2003 10:36 AM




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