FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > FPGA

FPGA comp.arch.fpga newsgroup (usenet)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-12-2004, 02:44 PM
arkaitz
Guest
 
Posts: n/a
Default Mapping port for simulation only in VHDL

Hi all,

I would like to use a signal in the a testbench that is declared in
one of the subblocks of the top.

This question might obvious, but I cannot find any other way to
use subblock signals from a top of a design ONLY for simulation
purposses.

What I usually do is to add those signals as ports in each entity
beginning from the bottom of the design and continuing the hierarchy
until I arrive to the top. In order not to consider them in the
synthesis I add "synthesis translate off/on" comments.

Here you are an example:

Imagine that I want to instantiate the internal signal of the
subblock1 from the top

entity top is
port(
-- synthesis translate_off
tb_out : out std_logic;
-- synthesis translate_on
...
);
end top;

architecture arch of top is
begin

uut: subblock1
port map(
-- synthesis translate_off
internal => tb_out,
-- synthesis translate_on
...
);
end;

Then I instantiate the top in the same way from the testbench.

I know that in verilog there is another way to refer to a signal that
is declared in subblock, just with something like this:

"top.subblock1.internal"

Any suggestion?

Thanks in advance,

Arkaitz.
Reply With Quote
  #2 (permalink)  
Old 05-12-2004, 04:08 PM
Stefan Frank
Guest
 
Posts: n/a
Default Re: Mapping port for simulation only in VHDL

On 05/12/2004 02:44 PM, arkaitz wrote:
> Hi all,
>
> I would like to use a signal in the a testbench that is declared in
> one of the subblocks of the top.
>
> This question might obvious, but I cannot find any other way to
> use subblock signals from a top of a design ONLY for simulation
> purposses.
>
> What I usually do is to add those signals as ports in each entity
> beginning from the bottom of the design and continuing the hierarchy
> until I arrive to the top. In order not to consider them in the
> synthesis I add "synthesis translate off/on" comments.
>


See the following links. They show you simulator dependent and
independent solutions.

<http://www.vhdl.org/vi/comp.lang.vhdl/FAQ1.html#monitor>

<http://tinyurl.com/2gyo2>

<http://tinyurl.com/3h83e>

And please post further VHDL questions to comp.lang.vhdl.

I hope this solves your problem :-)

Tschoe,
Steff
Reply With Quote
  #3 (permalink)  
Old 05-13-2004, 10:49 AM
arkaitz
Guest
 
Posts: n/a
Default Re: Mapping port for simulation only in VHDL

Hi Steff,

Thanks a lot for your help. I'm sorry about the posting mistake.
I didn't know that there was a specific forum for VHDL.

Arkaitz.

> See the following links. They show you simulator dependent and
> independent solutions.
>
> <http://www.vhdl.org/vi/comp.lang.vhdl/FAQ1.html#monitor>
>
> <http://tinyurl.com/2gyo2>
>
> <http://tinyurl.com/3h83e>
>
> And please post further VHDL questions to comp.lang.vhdl.
>
> I hope this solves your problem :-)
>
> Tschoe,
> Steff

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Port mapping a Verilog component in a VHDL design ALuPin FPGA 2 01-17-2004 04:09 AM
VHDL-Xilinx-Simulation (signal not connected to port) ? Jarek FPGA 1 12-28-2003 07:37 PM


All times are GMT +1. The time now is 04:39 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved