Altera_Forum
Honored Contributor
15 years agoModelSim Settings - Can you set Decimal Radix to not interpret as 2's Complement?
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