value of a veriable during simulation

Moderator: Benj

Post Reply
ncc1502
Posts: 48
Joined: Mon Apr 07, 2008 9:18 pm
Has thanked: 23 times
Been thanked: 8 times
Contact:

value of a veriable during simulation

Post by ncc1502 »

In the veriable window the value of a variable is displayed in decimal and hexadecimal. Is it possible to show the value in binari as well?

If you input or output a value from/to a port you can see immediately at the binary value of the variable in the watch what inputs/outputs are active high or low.
Better safe then sorry

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: value of a veriable during simulation

Post by Benj »

Hello,

Nice suggestion, Ill add it to the list.

As far as Im aware all values in the variables window are always in hexadecimal.

Hexadecimal is quite easy to convert into binary on the fly. Basically each digit in a hex number represents 4 bits.

eg 0x3F

the 3 represents 0 0 1 1

and the F represents 1 1 1 1

so 0x3F = 00111111

Frank123
Posts: 36
Joined: Fri Jan 15, 2010 5:17 pm
Location: Saint-Nazaire - France
Has thanked: 1 time
Contact:

Re: value of a veriable during simulation

Post by Frank123 »

With space between 4 bit.
1010 1101 is readable than 10101101.
Frank
Electronics teacher

Post Reply