Structural VHDL - Accesing signals of instances

  • Thread starter Valentin Tihomirov
  • Start date
V

Valentin Tihomirov

I understand that entity defines inteface restricting the range of signals
available for communication with instances of that entity. May be there is
no much sense to bypass the restriction but I consider this opportunity to
be used in test bench.


uut: entity UART port map (
.....
);

--stimulate uart


--wait until transmitter is empty
wait until uut.transmitter.busy = '0';

-- go on
 
J

Jim Lewis

If you are using ModelSim, you can use the
signal spy package.

Cheers,
Jim

Valentin said:
I understand that entity defines inteface restricting the range of signals
available for communication with instances of that entity. May be there is
no much sense to bypass the restriction but I consider this opportunity to
be used in test bench.


uut: entity UART port map (
....
);

--stimulate uart


--wait until transmitter is empty
wait until uut.transmitter.busy = '0';

-- go on

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jim Lewis
Director of Training mailto:[email protected]
SynthWorks Design Inc. http://www.SynthWorks.com
1-503-590-4787

Expert VHDL Training for Hardware Design and Verification
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
P

Paul Uiterlinden

Valentin said:
I understand that entity defines inteface restricting the range of
signals available for communication with instances of that entity.
May be there is no much sense to bypass the restriction but I
consider this opportunity to be used in test bench.

Declare the signals you want to observe in a package and "use" that
package both in the DUT and testbench. See also
http://www.eda.org/comp.lang.vhdl/FAQ1.html#monitor

Paul.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top