Table 1.5 Four Different Binary Codes for the Decimal Digits Decimal Digit BCD 8421 2421 Excess-3 8, 4, -2,-1 0000 0000 0011 0000 1 0001 0001 0100 0111 2 0010 0010 0101 0110 0011 0011 0110 0101 4 0100 0100 0111 0100 0101 1011 1000 1011 0110 1100 1001 1010 0111 1101 1010 1001 8 1000 1110 1011 1000 1001 1111 1100 1111 1010 0101 0000 0001 1011 0110 0001 0010 1100 0111 0010 0011 Unused bit combinations 1101 1000 1101 1100 1110 1001 1110 1101 1111 1010 1111 1110 Using a case statement, develop and simulate an HDL behavioral model of 1. (a)* The 8, 4, – 2, – 1 to BCD code converter described in Problem 4.8(a). 2. (b) The 8, 4, – 2, – 1 to Gray code converter described in Problem 4.8(b).

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Design a code converter that converts a decimal digit from
1. (a) The 8, 4, − 2 , − 1 code to BCD (see Table 1.5 ) . (HDL— see Problem 4.50 )
2. (b) The 8, 4, − 2 , − 1 code to Gray code.

Table 1.5 Four Different
Binary Codes for the Decimal
Digits
Decimal Digit
BCD 8421 2421 Excess-3 8, 4, -2,-1
0000
0000 0011
0000
1
0001
0001 0100
0111
2
0010
0010 0101
0110
0011
0011 0110
0101
4
0100
0100 0111
0100
0101
1011 1000
1011
0110
1100 1001
1010
0111
1101 1010
1001
8
1000
1110 1011
1000
1001
1111 1100
1111
1010
0101 0000
0001
1011
0110 0001
0010
1100
0111 0010
0011
Unused bit combinations
1101
1000 1101
1100
1110
1001
1110
1101
1111
1010 1111
1110
Transcribed Image Text:Table 1.5 Four Different Binary Codes for the Decimal Digits Decimal Digit BCD 8421 2421 Excess-3 8, 4, -2,-1 0000 0000 0011 0000 1 0001 0001 0100 0111 2 0010 0010 0101 0110 0011 0011 0110 0101 4 0100 0100 0111 0100 0101 1011 1000 1011 0110 1100 1001 1010 0111 1101 1010 1001 8 1000 1110 1011 1000 1001 1111 1100 1111 1010 0101 0000 0001 1011 0110 0001 0010 1100 0111 0010 0011 Unused bit combinations 1101 1000 1101 1100 1110 1001 1110 1101 1111 1010 1111 1110
Using a case statement, develop and simulate an HDL behavioral
model of
1. (a)* The 8, 4, – 2, – 1 to BCD code converter described in
Problem 4.8(a).
2. (b) The 8, 4, – 2, – 1 to Gray code converter described in
Problem 4.8(b).
Transcribed Image Text:Using a case statement, develop and simulate an HDL behavioral model of 1. (a)* The 8, 4, – 2, – 1 to BCD code converter described in Problem 4.8(a). 2. (b) The 8, 4, – 2, – 1 to Gray code converter described in Problem 4.8(b).
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Binary numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education