Skip to content

Miscellaneous Circuit elements

SUMANTH B S edited this page Mar 9, 2024 · 3 revisions

Sign extend

WhatsApp Image 2024-03-08 at 2 15 06 PM

consider a number is 16 bit and need to load it for register which is of 32 bits , at this point of time the msb bit of 16th bit of number is connected with remaining 16 msb bits of register, this is because to retain the polarity.

example:

WhatsApp Image 2024-03-08 at 2 31 47 PM

consider a simple example case where input is 4 bit(4 bit number) and output is 8 bit(8 bit register) thus sign extend is used,

WhatsApp Image 2024-03-08 at 2 08 27 PM

in the above figure it is clearly shown how the msb bit of inputs are tied to remamings msb bits of output, thus for sign extend no active elements are required

Clone this wiki locally