Sign in

username:

password:



Not a member?

Search Comp.Arch.FPGA



Search tips

fpga by Keywords

Altera | ASIC | CPLD | Cyclone | DCM | DDR | DSP | Ethernet | ISE | JTAG | Linux | LVDS | Microblaze | ML310 | Modelsim | NIOS | OPB | PCI | Quartus | RocketIO | SDRAM | Spartan | Spartan3 | SRAM | Stratix | Verilog | VHDL | Virtex | Virtex-4 | Virtex-II | Xilinx | XST


Ads

See Also

DSPEmbedded SystemsElectronics

Comp.Arch.FPGA | what is incorrect about my usage of array with port entity?

There are 2 messages in this thread.

You are currently looking at messages 0 to 2.

what is incorrect about my usage of array with port entity? - brianwfarmer - 2010-02-17 09:00:00

library ieee;
library work;
use ieee.std_logic_1164.all;

use ieee.numeric_std.all;	


entity delay_line_interleaved is
	generic(	
		numtaps		: integer := 18;
		wordlength_in 	: integer := 14;
		coefflen		: integer := 20
		);
	port(
		-- INPUT PORTS --
		clkin		: in std_logic;
		rst			: in std_logic;
		ena			: in std_logic;
		in_pddc		: in std_logic_vector(wordlength_in-1 downto 0); --enough bitshere and other places to handle number of adds?
		-- OUTPUT PORTS --
		dv_out		: out std_logic;
		x_delay_line	: out array (0 to coefflen-1) ofstd_logic_vector(wordlength_in-1 downto 0)
		);
end entity;

	   
					
---------------------------------------		
Posted through http://www.FPGARelated.com



Re: what is incorrect about my usage of array with port entity? - RCIngham - 2010-02-17 11:10:00

VHDL doesn't allow explicitly 2-dimensional
arrays as entity ports.
Why?
Because!

You will have to define a 2-D type in a package, and use that instead.

BTW, "library work;" is redundant.

HTH!

	   
					
---------------------------------------		
Posted through http://www.FPGARelated.com
______________________________
Join the blogging team on FPGARelated.com and earn rewards! Details Here.