![]() |
|
|
|
#1 |
|
Hi,
I want to include an unconstrained array in my port declaration, instead of declaring n time std_logic_vector (that would be much easier to use!) entity Window is generic (n:integer:=3;--nombre de cartes p:integer:=3 --Position de la carte ); Port ( CLK, HS, VS: in std_logic; WDO: out std_logic; LenghH: in array16_type; LenghV: in array16_type; StartH: in array16_type; StartV: in array16_type; TabZorder: in array5_type; Poscarte: in std_logic_vector(4 downto 0) ); end Window; architecture Behav of Window is type array16_type is Array (0 to n-1) of std_logic_vector(15 downto 0); type array5_type is Array (0 to n-1) of std_logic_vector(4 downto 0); type BusWD_type is Array (0 to n-1) of std_logic; type orout_type is Array (0 to n) of std_logic; ... I read on a forum that it could work like this, but it generates errors while compiling (using Modelsim) : "** Error: D:/Jerome Kusseling/Invg23/VHDL/Window/Window.vhd(27): Unknown identifier 'array16_type'. ** Error: D:/Jerome Kusseling/Invg23/VHDL/Window/Window.vhd(2 ** Error: D:/Jerome Kusseling/Invg23/VHDL/Window/Window.vhd(29): Unknown identifier 'array16_type'. ** Error: D:/Jerome Kusseling/Invg23/VHDL/Window/Window.vhd(30): Unknown identifier 'array16_type'. ** Error: D:/Jerome Kusseling/Invg23/VHDL/Window/Window.vhd(31): Unknown identifier 'array5_type'. any help ? mirendil |
|
|
|
|
![]() |
| 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 |