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

Reply

VHDL - Port types

 
Thread Tools Search this Thread
Old 12-17-2003, 01:40 PM   #1
Default Port types


Hi,
Do ports always have to be bit, bit_vector, std_logic... etc?
How to implement a port of array type e.g.
Input :in TAB;
type TAB is array(integer) of std_logic_vector;
?



Gietek
  Reply With Quote
Old 12-17-2003, 02:08 PM   #2
Gietek
 
Posts: n/a
Default Re: Port types


Gietek wrote:
> Hi,
> Do ports always have to be bit, bit_vector, std_logic... etc?
> How to implement a port of array type e.g.
> Input :in TAB;
> type TAB is array(integer) of std_logic_vector;
> ?
>


What if I create package?:

package array_std is
type std_logic_array is array(natural range <>, natural range <>)
of std_logic;
end array_std;

Will it produce synthesible logic?



Gietek
  Reply With Quote
Old 12-17-2003, 05:10 PM   #3
Mike Treseler
 
Posts: n/a
Default Re: Port types
Gietek wrote:

>> Hi,
>> Do ports always have to be bit, bit_vector, std_logic... etc?


No. My favorite top level types
are std_ulogic, std_logic_vector and unsigned.

>> How to implement a port of array type e.g.
>> Input :in TAB;
>> type TAB is array(integer) of std_logic_vector;

>
> What if I create package?:
>
> package array_std is
> type std_logic_array is array(natural range <>, natural range <>) of
> std_logic;
> end array_std;
>
> Will it produce synthesible logic?


All the vector lengths have to
be determined and in scope at compile time.
I prefer to use generic natural constants for these.
Consider saving the complex data structures
for process variables and architecture signals
that key off of these generic port lengths.

-- 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
Can not access console port of Cisco 7200 vxr mansurbd Hardware 1 01-12-2009 06:53 PM
How to check current event and port status for Aliwei FXO gateway Robin wang Hardware 0 04-11-2008 09:54 AM
Port 445: Effective/Safe Blocking Samwise General Help Related Topics 0 01-06-2008 09:19 PM
Long, regarding a "lost" COM port smackedass A+ Certification 4 02-05-2007 04:55 PM
non plug and play device on com port? David K A+ Certification 1 07-18-2003 08:38 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