Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.
 
  • Like
Reactions: shaiko

    shaiko

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top