Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VHDL problem with variables

Status
Not open for further replies.

krkrkr

Programmer
Jun 13, 2009
9
CA
Hello,
I've a problem when calling a procedure a passing variable to it, I tried my code in Quartus and compiled without errors but when I tried xilinx XPS which I have to use, I got the following error (undefined signal "aprio")
The code is down, any help???

architecture rtl of mylogic is

signal x : integer range 0 to 15 := 0;
signal y : integer range 0 to 15 := 0;

procedure add_prio (variable aprio: in integer;
variable aout: inout integer) is
begin
aout := aout + aprio;
end procedure add_prio;

begin

add_proc: process(clk) is
variable prio : integer range 0 to 15 :=0;
variable out : integer range 0 to 15 :=0;

if clk'event and clk = '1' then
prio := x;
add_prio(prio, out);
y <= out;
end if;
end process add_proc;

end rtl;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top