- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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 kopiert
1 Antworten
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Damn... just found it... use Unsigned not decimal....
Sorry for the waste of time! Cheers, Lee H
Antworten
Themen-Optionen
- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite