Symbolic string for vector values under modelsim

  • Follow


Hello,

I'm looking under ModelSim to associate symbolic values to a vector.

Example:

The vector '/top_tb/state' is a 2 bit vector.
I would like to associate the following values:
 00 idle
 01 waitSync
 10 transfer
 11 complete

I saw a way to do this for a long time but I am not able to find it
again. The way that I saw did not use VHDL.

Thank you in advance for your help

Thoma
0
Reply Thoma 9/19/2009 7:28:27 AM

"Thoma" <rf.egnaro@evetsrellum> wrote in message 
news:4ab4881b$0$23447$ba4acef3@news.orange.fr...
> Hello,
>
> I'm looking under ModelSim to associate symbolic values to a vector.
>
> Example:
>
> The vector '/top_tb/state' is a 2 bit vector.
> I would like to associate the following values:
> 00 idle
> 01 waitSync
> 10 transfer
> 11 complete
>
> I saw a way to do this for a long time but I am not able to find it
> again. The way that I saw did not use VHDL.
>
> Thank you in advance for your help
>
> Thoma

Look in the manual for "virtual type" and "virtual signal" commands.

This might work:

virtual type {idle waitsync transfer complete} bus_type
virtual signal {/top_tb/state} cmdbus
virtual function {(bus_type)cmdbus} command
add wave command

Hans
www.ht-lab.com


0
Reply HT 9/19/2009 7:56:18 AM


HT-Lab a �crit :

>> I'm looking under ModelSim to associate symbolic values to a vector.
>>
>> Example:
>>
>> The vector '/top_tb/state' is a 2 bit vector.
>> I would like to associate the following values:
>> 00 idle
>> 01 waitSync
>> 10 transfer
>> 11 complete
>>
>> I saw a way to do this for a long time but I am not able to find it
>> again. The way that I saw did not use VHDL.
> 
> Look in the manual for "virtual type" and "virtual signal" commands.
> 
> This might work:
> 
> virtual type {idle waitsync transfer complete} bus_type
> virtual signal {/top_tb/state} cmdbus
> virtual function {(bus_type)cmdbus} command
> add wave command
> 
> Hans
> www.ht-lab.com
> 
> 

Hi Hans,

It is exactly what I search for.

Thank you for your help

Thoma
0
Reply Thoma 9/20/2009 9:07:15 AM

2 Replies
196 Views

(page loaded in 0.051 seconds)

Similiar Articles:











7/23/2012 2:33:05 PM


Reply: