- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all, hopefully very quick question...
As part of my design I am using a DC fifo generated by the Quartus II megafunction wizard. When I simulate this, just to make my life easier I want to see how many bytes are written to the buffer. This value is output as the signal wrusedw which I can see. But being lazy as I am trying to simulate several things I want to view this as a decimal number rather than the binary actually held by the signal. (my wrusedw signal is 12 bits wide) When I change the radix of the singal in ModelSim, it appears to use 2's complement when showing the number, as the wrusedw signal counts up to 2047, but then goes to -2048 and starts counting up -2047 etc. My question is: Is there a setting somewhere in ModelSim to allow this radix not to assume the MSB of the number is negative, i.e. not 2's compliment.... so that I can count up still when I move past "100000000000" Cheers, Lee HLink Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Damn... just found it... use Unsigned not decimal....
Sorry for the waste of time! Cheers, Lee H
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page