- Binary Coded Decimal Bcd In Short Is A 8421 Weighted Binary Code That Allocates 4 Bits To Represent A Single Digit Th 1 (224.84 KiB) Viewed 23 times
Binary-Coded-Decimal (BCD in short) is a 8421 weighted binary code that allocates 4 bits to represent a single digit. Th
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Binary-Coded-Decimal (BCD in short) is a 8421 weighted binary code that allocates 4 bits to represent a single digit. Th
Binary-Coded-Decimal (BCD in short) is a 8421 weighted binary code that allocates 4 bits to represent a single digit. The binary values 0000 to 1001 are mapped to digits 0 to 9, respectively. Thus a number written in BCD format can be displayed as decimal numbers that we can readily read. The following block diagram shows one way of implementing the circuit that takes a 4-bit binary input and converts it into a 5-bit BCD output. Block Diagram for binary-to-BCD Conversion Decimal Number 0 adjust logic X X X X B4B3B2B1 2 3 4 5 btg detector ABCD btg XB5 1 0 0 1 ABCD Binary Code ABCD 0000 0001 0010 0011 0100 0101 0110 0111 1000 .100.1 1010 1011 1100 1101 1110 1111 BCD Code B, B, BBB 0 0 0 0 0 0.000 0 0 0 1 0 0 0 0 1 1 00100 0 0 1 0 1 00110 00111 0 1000 01001 1 0 0 0 0 10001 10010 10011 1:0 100 1:0101 10 11 12 13 14 15 Binary b2bcd BCD 4 5 1. We can split the above truth table into two parts, the top part where the 4-bit binary number ABCD is less than or equal to 9, the bottom part where ABCD is bigger than 9 (bt9). Design the bt9 detector circuit (K-map, logic expression, logic diagram) where the output B5 = 1 if ABCD > 9,0 otherwise. Capture a snapshot of the bt9 detector. 2. The output B5 of the bt9 detector controls which part of the truth table goes through the four 2- to-1 multiplexers. When B5 = 0, the 4-bit input ABCD is channeled to the 4-bit output B3B2B1Bo with no change, according to the top part of the truth table. But when B5 = 1, ABCD will go through the Adjust Logic block in order to produce the 4-bit output B3B2B1 Bo according to the bottom part of the truth table. Design the logic diagram for the Adjust Logic. This block takes in the 4-bit input ABCD and produces a 4-bit adjusted signal that is connected to the 1-inputs of the muxes. Capture a snapshot of the Adjust Logic. 3. Create a new circuit, b2bcd, in Circuit Verse for the above block diagram. Select the multiplexer element under 'Decoders and Plexers' and set BitWidth to 4 in the Properties menu. Make connections using busses and bus splitters wherever needed. This design block should have: o four single-bit inputs: A, B, C, D. where A is the most significant bit and D the least significant bit o four single-bit outputs: B4, B3,, B2, B1, which represent one BCD digit o one single-bit output: B5