Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > How to force an internal wire which is deep inside DUT hierachy attop level testbench using VHDL design?

Reply
Thread Tools

How to force an internal wire which is deep inside DUT hierachy attop level testbench using VHDL design?

 
 
One Cent
Guest
Posts: n/a
 
      07-02-2009
Hi,
I am interested to know how can i force an internal wire which is deep
inside DUT hierachy at top level testbench using VHDL design?
In verilog, i can write in this way at top level testbench as below:

initial
begin
force tb.design.memory.rx_buffer.enable_model = 1'b0;
#100;
force tb.design.memory.rx_buffer.enable_model = 1'b1;
end

But how can I do this in a VHDL testbench?

Thanks.
 
Reply With Quote
 
 
 
 
backhus
Guest
Posts: n/a
 
      07-02-2009
On 2 Jul., 03:58, One Cent <princess_ch...@hotmail.com> wrote:
> Hi,
> I am interested to know how can i force an internal wire which is deep
> inside DUT hierachy at top level testbench using VHDL design?
> In verilog, i can write in this way at top level testbench as below:
>
> initial
> begin
> *force tb.design.memory.rx_buffer.enable_model = 1'b0;
> *#100;
> * force tb.design.memory.rx_buffer.enable_model = 1'b1;
> end
>
> But how can I do this in a VHDL testbench?
>
> Thanks.


Hi,
if you are using Modelsim you can use the SignalSpy functions.
There you can access signals(wires/regs) by providing their
hierarchical path in the system.
Do a search for it in the documentation. It's all well explained.

Have a nice simulation
Eilert
 
Reply With Quote
 
 
 
 
cheevu cheevu is offline
Junior Member
Join Date: Jan 2008
Location: BAngalore
Posts: 5
 
      07-02-2009
use signal_force to force the signal..
U need to use modelsim library.
 
Reply With Quote
 
One Cent
Guest
Posts: n/a
 
      07-03-2009
On Jul 2, 2:50*pm, backhus <goo...@twinmail.de> wrote:
> On 2 Jul., 03:58, One Cent <princess_ch...@hotmail.com> wrote:
>
> > Hi,
> > I am interested to know how can i force an internal wire which is deep
> > inside DUT hierachy at top level testbench using VHDL design?
> > In verilog, i can write in this way at top level testbench as below:

>
> > initial
> > begin
> > *force tb.design.memory.rx_buffer.enable_model = 1'b0;
> > *#100;
> > * force tb.design.memory.rx_buffer.enable_model = 1'b1;
> > end

>
> > But how can I do this in a VHDL testbench?

>
> > Thanks.

>
> Hi,
> if you are using Modelsim you can use the SignalSpy functions.
> There you can access signals(wires/regs) by providing their
> hierarchical path in the system.
> Do a search for it in the documentation. It's all well explained.
>
> Have a nice simulation
> * Eilert


Thanks Eilert!
This reminds me the use of init_signal_spy function in Modelsim!!
Thanks again =)
 
Reply With Quote
 
HT-Lab
Guest
Posts: n/a
 
      07-03-2009

"One Cent" <> wrote in message
news:9ddc6ae0-0082-4074-be7b-...
On Jul 2, 2:50 pm, backhus <goo...@twinmail.de> wrote:
> On 2 Jul., 03:58, One Cent <princess_ch...@hotmail.com> wrote:
>
> > Hi,
> > I am interested to know how can i force an internal wire which is deep
> > inside DUT hierachy at top level testbench using VHDL design?
> > In verilog, i can write in this way at top level testbench as below:

>
> > initial
> > begin
> > force tb.design.memory.rx_buffer.enable_model = 1'b0;
> > #100;
> > force tb.design.memory.rx_buffer.enable_model = 1'b1;
> > end

>
> > But how can I do this in a VHDL testbench?

>
> > Thanks.

>
> Hi,
> if you are using Modelsim you can use the SignalSpy functions.
> There you can access signals(wires/regs) by providing their
> hierarchical path in the system.
> Do a search for it in the documentation. It's all well explained.
>
> Have a nice simulation
> Eilert
>
>Thanks Eilert!
>This reminds me the use of init_signal_spy function in Modelsim!!


And at the same time you might want to email your favourite Mentor support
engineer and ask him/her to raise an ER to get VHDL2008 hierarchical references
implemented

Hans
www.ht-lab.com




 
Reply With Quote
 
NigelE
Guest
Posts: n/a
 
      07-03-2009
On Jul 3, 8:47*am, "HT-Lab" <han...@ht-lab.com> wrote:
> "One Cent" <princess_ch...@hotmail.com> wrote in message
>
> news:9ddc6ae0-0082-4074-be7b-...
> On Jul 2, 2:50 pm, backhus <goo...@twinmail.de> wrote:
>
>
>
>
>
> > On 2 Jul., 03:58, One Cent <princess_ch...@hotmail.com> wrote:

>
> > > Hi,
> > > I am interested to know how can i force an internal wire which is deep
> > > inside DUT hierachy at top level testbench using VHDL design?
> > > In verilog, i can write in this way at top level testbench as below:

>
> > > initial
> > > begin
> > > force tb.design.memory.rx_buffer.enable_model = 1'b0;
> > > #100;
> > > force tb.design.memory.rx_buffer.enable_model = 1'b1;
> > > end

>
> > > But how can I do this in a VHDL testbench?

>
> > > Thanks.

>
> > Hi,
> > if you are using Modelsim you can use the SignalSpy functions.
> > There you can access signals(wires/regs) by providing their
> > hierarchical path in the system.
> > Do a search for it in the documentation. It's all well explained.

>
> > Have a nice simulation
> > Eilert

>
> >Thanks Eilert!
> >This reminds me the use of init_signal_spy function in Modelsim!!

>
> And at the same time you might want to email your favourite Mentor support
> engineer and ask him/her to raise an ER to get VHDL2008 hierarchical references
> implemented
>
> Hanswww.ht-lab.com- Hide quoted text -
>
> - Show quoted text -


It is already !

VHDL-2008 external names was implemented in 6.5
It works across mixed languages provided both ends are VHDL

- Nigel
 
Reply With Quote
 
HT-Lab
Guest
Posts: n/a
 
      07-03-2009

"NigelE" <> wrote in message
news:6ee02237-3e7e-4e16-8b27-...
On Jul 3, 8:47 am, "HT-Lab" <han...@ht-lab.com> wrote:
> "One Cent" <princess_ch...@hotmail.com> wrote in message
>
> news:9ddc6ae0-0082-4074-be7b-...
> On Jul 2, 2:50 pm, backhus <goo...@twinmail.de> wrote:
>

...
>
> And at the same time you might want to email your favourite Mentor support
> engineer and ask him/her to raise an ER to get VHDL2008 hierarchical
> references
> implemented
>
> Hanswww.ht-lab.com- Hide quoted text -
>
> - Show quoted text -
>
>It is already !
>
>VHDL-2008 external names was implemented in 6.5
>It works across mixed languages provided both ends are VHDL
>
>- Nigel


Hi Nigel,

You are right, I totally missed that one when I read the vhdl2008 technote. I
tried it out and it works great.

local_enable <= <<signal .u1.u2.enable_s : std_logic >>;

Thanks,
Hans
www.ht-lab.com


 
Reply With Quote
 
ravik ravik is offline
Junior Member
Join Date: Sep 2012
Posts: 1
 
      09-10-2012
Hi,
What is the exact format to force a signal deep inside verilog hirarchy, It's not clear from your statement:
local_enable <= <<signal .u1.u2.enable_s : std_logic >>;

Can you please list the exact statement ?
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Regarding to the DUT configuration in testbench JSreeniv VHDL 1 08-04-2011 05:22 AM
Nike air force one, air force 1, air force one low cut, air force one salewholeta@163.com Digital Photography 3 12-31-2008 04:29 PM
VCS simulation for VHDL DUT and Verilog test bench kartikey VHDL 0 12-18-2007 02:54 PM
2 Wire and 3 Wire Telecom Wiring SchoolTech NZ Computing 1 02-26-2005 08:23 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57