Ben1152000 / sootty

A command-line tool for displaying vcd waveforms.
BSD 3-Clause "New" or "Revised" License
44 stars 12 forks source link

Add numeral system for vector change data #46

Closed yihuajack closed 1 year ago

yihuajack commented 1 year ago

Support base 2~33 (base 34 has 'X' issue); add argument -r or --radix; control displayed widths

yihuajack commented 1 year ago

Another issue is that conventionally binary numbers are represented with leading zeros to fill all the bits to disambiguate with 2's complement. However, decimal numbers are represented without leading zeros. Should numbers in other bases be represented with or without leading zeros? Currently, only decimal numbers are represented without leading zeros.

Ben1152000 commented 1 year ago

Should numbers in other bases be represented with or without leading zeros?

I'd assume that for now we can treat the number as unsigned by default. It would be nice to be able to specify if a number is signed or unsigned though.