Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17241 Discussions

ModelSim Settings - Can you set Decimal Radix to not interpret as 2's Complement?

Altera_Forum
Honored Contributor II
3,415 Views

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 H
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
2,286 Views

Damn... just found it... use Unsigned not decimal.... 

 

Sorry for the waste of time! 

 

Cheers, 

 

Lee H
0 Kudos
Reply