|
|
Symbolic string for vector values under modelsim
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: Finding environment variables usage - comp.unix.programmer ...E.g. under C can declare the external variable extern ... is an array of char pointers, each pointing to string a ... how to show symbolic links in window environment? - comp ... Checking for whether compiler supports C99 or C++0x - comp.lang ...This symbol will get a new value for C++0x. We just don't know yet ... On 18 Aug., 14:48, er wrote: > > Under GCC 4.4 ... Converting number to std::string ("itoa ... Uninitialized variables, why do they equal their name? - comp.lang ...... be variables, but have no value assigned to them, then the symbol itself is used as a literal string. ... car, regardless of what's under ... every MATLAB variable a vector ... @ symbol deleting all preceeding input at command line? - comp.sys ...... is claiming that whenever he types the "@" (at-symbol) on ... then *something/someone* has set it to a different value. ... to *NIX and I am thinking of writing spice code under ... size of a derived type containing pointers... - comp.lang.fortran ...... have some similar functionality, possibly under a ... an array of char *object* initialized to the string's value ... Which has faster access Binary Search of std::vector ... Could anyone give me the spice-mode.el - comp.emacsHi, All I am new to *NIX and I am thinking of writing spice code under Emacs. However, I have no idea of Emacs Lisp. Hence, I could not write a packa... FAQ -- assembly-language/x86/general/part1 - comp.lang.asm.x86 ...I believe that this will enhance the FAQ's value not ... The library covers the following areas: string ... of the 'alt.binaries.*' branch being used as an "under ... Sampling: What Nyquist Didn't Say, and What to Do About It - comp ...The images appear to be vector format rather than ... Tim, I just looked at it using Adobe acroread under ... is one of the things that gave the "reader" more value ... Using Xilinx’s Tool for Synthesis and ModelSim for Verification ...... used to define scalar values for initializing scalar objects String ... String is an array of character types Bit_vector is array of bit types ... left or next right symbol – ... EL 310 VHDL Basic I/O– applies them to the VHDL model under test ... value: bit_vector(3 downto 0) := x”6”; variable ... •STRING and BIT_VECTOR are two predefined one-dimensional ... 7/23/2012 2:33:05 PM
|
|
|
|
|
|
|
|
|