Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Populating Array In a Procedure

Thread Tools

Populating Array In a Procedure

pessenm pessenm is offline
Junior Member
Join Date: Jun 2008
Posts: 9
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

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
end loop;
end read_packet_header;

Thanks for your help!
Reply With Quote
pessenm pessenm is offline
Junior Member
Join Date: Jun 2008
Posts: 9
Does anyone have any idea why I am getting the above error? Any help would be appreciated. Thanks!

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
procedure as argument in procedure AlexWare VHDL 2 10-23-2009 09:14 AM
'Procedure or function <stored procedure name> has too many arguments specified',,,ARGH! Mike P ASP .Net 0 06-19-2006 01:19 PM
Populating an Array of Struct Michael R. Copeland C++ 2 04-19-2006 04:08 AM
Populating Javascript array from MW ASP .Net 4 04-29-2004 06:09 AM
Populating array with color values Roger ASP .Net 2 01-26-2004 02:13 AM