S
Sven Heithecker
Guest
Hi,
Is it possible to determine (or read, access) a enitiy/components port
signal range from "outside" ?
The ideas is that I declared an entity with a special port signal type:
entity test is
port(testsignal: in unsigned(5 downto 0));
end entity;
[component declaration omitted]
.... and now, in the architecture where I instantiate this entity, I want to
declare a signal which will be connected to the port, but I dont want to
specify the range again, so I tried something like:
achitecture rtl of test2 ist
signal: connected_to_testsignal: unsigned(test.testsignal'range);
^^^^^^^^^^^^^^^^^^^^^
begin
test_inst: test
port map(testsignal => connected_to_testsignal);
end rtl;
.... but that fails to compile. Is there a correct way, or is this simple my
compiler ?
I already searched the WWW and also the comp.lang.vhdl FAQ, but I didn't got
an answer, so I appeciate your help !
Thanx in andvance,
Sven Heithecker
--
Dipl.-Ing. Sven Heithecker
Institute of Computer and Communication Network Engineering
Technical University of Braunschweig, Germany
heithecker@ida.ing.tu-bs.de
www.ida.ing.tu-bs.de/~svenh
Is it possible to determine (or read, access) a enitiy/components port
signal range from "outside" ?
The ideas is that I declared an entity with a special port signal type:
entity test is
port(testsignal: in unsigned(5 downto 0));
end entity;
[component declaration omitted]
.... and now, in the architecture where I instantiate this entity, I want to
declare a signal which will be connected to the port, but I dont want to
specify the range again, so I tried something like:
achitecture rtl of test2 ist
signal: connected_to_testsignal: unsigned(test.testsignal'range);
^^^^^^^^^^^^^^^^^^^^^
begin
test_inst: test
port map(testsignal => connected_to_testsignal);
end rtl;
.... but that fails to compile. Is there a correct way, or is this simple my
compiler ?
I already searched the WWW and also the comp.lang.vhdl FAQ, but I didn't got
an answer, so I appeciate your help !
Thanx in andvance,
Sven Heithecker
--
Dipl.-Ing. Sven Heithecker
Institute of Computer and Communication Network Engineering
Technical University of Braunschweig, Germany
heithecker@ida.ing.tu-bs.de
www.ida.ing.tu-bs.de/~svenh