modelsim decimal represantation

Status
Not open for further replies.

shaiko

Advanced Member level 5
Joined
Aug 20, 2011
Messages
2,644
Helped
303
Reputation
608
Reaction score
297
Trophy points
1,363
Activity points
18,302
Hello,

When simulating with modelsim, I sometimes change the radix of vectors to show them as decimal integers.
Despite the fact that I define my logic as unsigned - the vectors that have '1' at the MSB convert to a signed number when I change the radix...for example:

vector: "10000000000001" converts to -8193 when instead of 8193.

What's the reason?
 

You need to specify unsigned in the radix.
The wave window has no visibility of the type the signals are declared as.
 
Reactions: shaiko

    shaiko

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…