Binary to Thermometer decoder in VHDL and implemented in Cadence

(Last Updated On: May 31, 2018)

The thermometer code (also named as unary code) is useful to extract a vector number and use it to drive several switches. The thermometer code converts a n-bit number into a series of ones followed by zeroes of size 2^n. In this example a 8-bit vector is going to be transformed into 256 signals to drive 256 switches. The binary-to-thermometer decoder is used, instead of the binary-code, to perform smoother transition during most significant bit changing.

The thermometer coder block is written in VHDL and tested on the next Figure.

For the test a 8 bit counter signal is given to the block under test.

ramp used as stimuli

simulation of the thermometer coder

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top