command to add the MSB bit of my signal in Modelsim

Status
Not open for further replies.

cherishnguyen

Newbie level 5
Joined
Sep 21, 2009
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Korea
Activity points
1,383
Hi all,

Can anyone know how to write command to add the MSB bit of my signal, let's say, signal 'a' with the BIT WIDTH is changable depends on each stimuli.

I just know to write it like that in my .do file:
add wave -noupdate -format Logic -radix binary {/top_tb/dut/a[5]};
In this case, signal 'a' only has a BIT WIDTH is 6, but in another case, BIT WIDTH will change. Becasue, i wanna test all my test cases automatically, so is there any way i can display the MSB bit on the wave window of Modelsim without using specific number [5] like that?

Any hint please advice me. Thx in advances.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…