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

Reply

VHDL - Populating Array In a Procedure

 
Thread Tools Search this Thread
Old 06-13-2008, 09:11 PM   #1
Default Populating Array In a Procedure


Hey all, I have the following procedure, which calls another procedure multiple times. I want to populate an array with the responses of each call. When I compile the code it gives me an error stating: The actual must be denoted by a static signal name, if the actual is associated with a signal parameter of any mode. It is referring to the Packet_Data_Read(I). What would be the valid way of populating this array so that I can pass it out of the read_packet_header procedure. Here is my code:

procedure read_packet_header(signal Ext_clock : in STD_LOGIC;
signal TX_ERROR_CODE : out STD_LOGIC_VECTOR(7 downto 0);
signal Packet_Data_Read : out Header_Data_array_read;
signal user : inout STD_LOGIC_VECTOR(7 downto 0);
signal Command_Complete : in STD_LOGIC;
signal User_Strobe : out STD_LOGIC;
signal User_Active_test : out STD_LOGIC;
signal SPI_En : in STD_LOGIC
) is

begin
write_bus(Ext_clock,READ_RX_BUFFER,User,Command_Co mplete,User_Strobe,SPI_En); --Write read RX buffer command

--wait for 10 us;
if(SPI_En = '1')then
read_bus(Ext_clock,TX_ERROR_CODE,user,Command_Comp lete,User_Strobe,SPI_En,'1'); --source module
end if;

for I in 0 to 10 loop
read_bus(Ext_clock,Packet_Data_Read(I),user,Command_Complete,User_Strobe,SPI_En,'1');
end loop;
end read_packet_header;

Thanks for your help!


pessenm
pessenm is offline   Reply With Quote
Old 06-16-2008, 03:19 PM   #2
pessenm
Junior Member
 
Join Date: Jun 2008
Posts: 9
Default
Does anyone have any idea why I am getting the above error? Any help would be appreciated. Thanks!

pessenm


pessenm
pessenm is offline   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
VHDL and EDK: Custom IP core containing an array as a port using EDK allsey_1987 Hardware 0 10-27-2009 02:26 PM
constants as of array of integers, for loops octavsly Hardware 0 04-25-2009 11:53 AM
How to retrieve array parameter ( JAVA ) naruponk Software 1 04-16-2009 10:20 AM
Array Programme rits Software 2 03-04-2009 05:18 PM
MCITP and stored procedure permissions Darrilgibson@gmail.com MCITP 5 06-07-2008 12:37 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