![]() |
|
|
|
#1 |
|
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 |
|
|
|
|
#2 |
|
Posts: n/a
|
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 |
|
|
|
#3 |
|
Posts: n/a
|
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 |
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |