[an error occurred while processing this directive]
|
ISE это синтезирует.
entity RecursionTest is
generic(
stage : natural := 5
);
port(
input : in integer;
output : out integer
);
end RecursionTest;
architecture Imp of RecursionTest is
begin
recursiveStructure: if stage > 0 generate
signal tmp : integer;
begin
recursionCall: entity RecursionTest
generic map( stage => stage - 1 )
port map( input => input, output => tmp );
output <= tmp + 1;
end generate;
endOfRecursion: if stage = 0 generate
begin
output <= input + 1;
end generate;
end imp;
E-mail: info@telesys.ru