SlideShare a Scribd company logo
1 of 19
This file is intended to be loaded by Logisim
(http://www.cburch.com/logisim/).
addr/data: 8 8
0
CPS250, Logic Design Project #1
Binary Coded Decimal
The basic binary number system (for unsigned numbers) and the
2's complement binary system (for
signed numbers) are two ways to represent numbers using bits.
However, there are other ways. One is
known as binary coded decimal, or BCD. BCD numbers are a
little easier for humans to understand,
because there is a direct mapping to decimal numbers. For the
purposes of this assignment, we will
consider only unsigned BCD numbers.
A decimal number is encoded in BCD as follows: Each decimal
digit is represented by four bits. But
since there are only 10 decimal digits and yet 16 combinations
of four bits, some of the bit patterns are
unused. This is summarized by the table below.
bits digit
0000 0
0001 1
0010 2
0011 3
0100 4
0101 5
0110 6
0111 7
bits digit
1000 8
1001 9
1010 unused
1011 unused
1100 unused
1101 unused
1110 unused
1111 unused
As an example, the decimal number 685 would be represented
by 0110 1000 0101
Addition of 12-bit BCD numbers can then be demonstrated as
such:
1000 0011 0111 837
+ 0001 0010 0110 + 126
----------------------- -----
1001 0110 0011 963
Note that a carry had to occur from the rightmost decimal
column. Simply binary addition would not
accomplish that on the left, so special circuitry is needed to
complete BCD additions.
Your Goal
The purpose of your work on this assignment is to complete a
set of circuits that both accomplish BCD
addition and display the results on simulated LED devices.
These devices are available in the Logisim
Input/Output library. The figure below shows the final goal of
this assignment.
The circuit shown here is provided to you in the file
“BCD_add_partial.circ”, along with the pin
layouts for the auxiliary circuits you will design. The circuit is
named “LCD_test”
After downloading the file, please change the name to
“BCD_add.circ”.
A major goal of this project is to allow you to explore and
experiment with Logisim and the
components available there. To that end, you are permitted to
use any devices you find in the Logisim
libraries. There is much there to familiarize yourself with, so
start early!
The Logisim help facility is very complete and very
informative. You should use Help-->Library
Reference frequently while working in Logisim, as all the
devices are described there. Some devices of
particular interest are: comparator, adder, and splitter. (This is
not a complete list of all the devices
you will find useful.)
In the discussions that follow, please remember that when
decisions need to be made using hardware,
the most common tool is a multiplexor.
Follow the instructions carefully. You must complete each
device in the circuit provided for that
purpose. You must not change the arrangements of the input and
output pins, and you must not
add any new pins. You should use the pins exactly as they are
provided.
Part I: Digit converter circuit (10 points)
In the image above, you will notice the small devices labeled
“DC”. The implementation of these
devices will be developed by you inside the circuit named
“digit_converter”. Here is what this device
accomplishes:
• Input: 4-bit binary unsigned value X.
• Outputs: 4-bit binary value Y. 1-bit value P.
• If X <= 9:
◦ Y = X
◦ P = 0
• If X > 9:
◦ Y = 1110 (0xE)
◦ P = 1
Recall that the only valid bit patterns for a BCD digit are those
between 0000 and 1001. The purpose of
this device is to let the user know if the input pins represent an
erroneous value. So, if any values
greater than 9 are entered, the value displayed on the LCD will
be “E” (in this case, for “error”), and
the small dot in the lower right corner of the LCD display will
be lit.
The LCD devices used are the “Hex Digit Display” devices
found in the Logisim Input/Output library.
Look to the Library Reference for a complete description of
how this device works.
Once your device is complete, if it is working properly you
should be able to see the values on the
input pins appear on the top row of LCD devices. (If the value
is >9, you should see “E.” there.)
Part II: BCD Full Adder (15 points)
This device will be completed by you in the circuit named
“BCD-FA”.
This device will handle the addition of two 4-bit BCD digits and
an incoming carry, as follows:
• Inputs: 4-bit BCD digit A. 4-bit BCD digit B, 1-bit carry-in
Cin.
• Outputs: 4-bit sum BCD digit S, 1-bit carry-out Cout.
• if (A+B+Cin)<=9: // NOTE that A+B+Cin must be a 5-bit sum
◦ S = lower 4 bits of A+B+Cin
◦ Cout = 0
• if (A+B+Cin)>9
◦ S = lower 4 bits of (A+B+Cin)-10
◦ Cout = 1
The idea here is is that we are adding two decimal digits (A and
B) and a possible carry-in (Cin) of 0 or
1. If that sum is >9, then there is a carry-out of 1 and the sum
needs adjusted. If not, the sum is fine and
there is a carry-out of 0.
Part III: BCD Ripple-carry Adder (10 points)
Develop this device in the circuit named “BCD_adder”.
The BCD full adder produced in Part II is completely analogous
to the binary full-adder used to build a
binary ripple-carry adder. In the figure shown previously and in
the “LCD_test” circuit, this final
device is the one labeled “BCD_adder”.
The device is quite similar to a binary ripple-carry adder. The
difference is that each stage represents a
decimal digit rather than a bit.
• Inputs: (A3,A2,A1,A0) – 4 digit BCD number A.
(B3,B2,B1,B0) – 4 digit BCD number B.
• Outputs: (S3,S2,S1,S0) – 4 digit BCD sum S
What to Submit
Submit what you have completed in the file “BCD_add.circ”.

More Related Content

Similar to This file is intended to be loaded by Logisim (httpwww.cburc.docx

GSP 215 Doing by learn/newtonhelp.com
GSP 215 Doing by learn/newtonhelp.comGSP 215 Doing by learn/newtonhelp.com
GSP 215 Doing by learn/newtonhelp.combellflower126
 
Digital Comprator
Digital CompratorDigital Comprator
Digital Compratorsuraj829
 
Digital Logic BCA TU Chapter 2.2
Digital Logic BCA TU Chapter 2.2Digital Logic BCA TU Chapter 2.2
Digital Logic BCA TU Chapter 2.2ISMT College
 
Digital electronics- BCD & Decoder
Digital electronics- BCD & DecoderDigital electronics- BCD & Decoder
Digital electronics- BCD & DecoderPritam Shil
 
GSP 215 Effective Communication - tutorialrank.com
GSP 215  Effective Communication - tutorialrank.comGSP 215  Effective Communication - tutorialrank.com
GSP 215 Effective Communication - tutorialrank.comBartholomew35
 
Project Report On 0-9 decade counter
Project Report On 0-9 decade counterProject Report On 0-9 decade counter
Project Report On 0-9 decade counterOmkar Rane
 
Lecture5 Chapter1- Binary Codes.pdf
Lecture5 Chapter1- Binary Codes.pdfLecture5 Chapter1- Binary Codes.pdf
Lecture5 Chapter1- Binary Codes.pdfUmerKhan147799
 
Chapter 5: Cominational Logic with MSI and LSI
Chapter 5: Cominational Logic with MSI and LSIChapter 5: Cominational Logic with MSI and LSI
Chapter 5: Cominational Logic with MSI and LSIEr. Nawaraj Bhandari
 
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdfCDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdfshubhangisonawane6
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decodersDeepikaDG1
 
GSP 215 Enhance teaching/tutorialrank.com
 GSP 215 Enhance teaching/tutorialrank.com GSP 215 Enhance teaching/tutorialrank.com
GSP 215 Enhance teaching/tutorialrank.comjonhson300
 

Similar to This file is intended to be loaded by Logisim (httpwww.cburc.docx (20)

GSP 215 Doing by learn/newtonhelp.com
GSP 215 Doing by learn/newtonhelp.comGSP 215 Doing by learn/newtonhelp.com
GSP 215 Doing by learn/newtonhelp.com
 
Number codes
Number codesNumber codes
Number codes
 
Digital Comprator
Digital CompratorDigital Comprator
Digital Comprator
 
Embedded C - Day 1
Embedded C - Day 1Embedded C - Day 1
Embedded C - Day 1
 
BCD ADDER (1).pptx
BCD ADDER (1).pptxBCD ADDER (1).pptx
BCD ADDER (1).pptx
 
Digital Logic BCA TU Chapter 2.2
Digital Logic BCA TU Chapter 2.2Digital Logic BCA TU Chapter 2.2
Digital Logic BCA TU Chapter 2.2
 
BCD ADDER (1).pptx
BCD ADDER (1).pptxBCD ADDER (1).pptx
BCD ADDER (1).pptx
 
Digital electronics- BCD & Decoder
Digital electronics- BCD & DecoderDigital electronics- BCD & Decoder
Digital electronics- BCD & Decoder
 
BCDCONVERTER.pptx
BCDCONVERTER.pptxBCDCONVERTER.pptx
BCDCONVERTER.pptx
 
GSP 215 Effective Communication - tutorialrank.com
GSP 215  Effective Communication - tutorialrank.comGSP 215  Effective Communication - tutorialrank.com
GSP 215 Effective Communication - tutorialrank.com
 
Project Report On 0-9 decade counter
Project Report On 0-9 decade counterProject Report On 0-9 decade counter
Project Report On 0-9 decade counter
 
combinational-circuit (1).ppt
combinational-circuit (1).pptcombinational-circuit (1).ppt
combinational-circuit (1).ppt
 
Lecture5 Chapter1- Binary Codes.pdf
Lecture5 Chapter1- Binary Codes.pdfLecture5 Chapter1- Binary Codes.pdf
Lecture5 Chapter1- Binary Codes.pdf
 
Chapter 5: Cominational Logic with MSI and LSI
Chapter 5: Cominational Logic with MSI and LSIChapter 5: Cominational Logic with MSI and LSI
Chapter 5: Cominational Logic with MSI and LSI
 
Chapter-04.pdf
Chapter-04.pdfChapter-04.pdf
Chapter-04.pdf
 
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdfCDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
 
01 isa
01 isa01 isa
01 isa
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decoders
 
Mcs 012 soved assignment 2015-16
Mcs 012 soved assignment 2015-16Mcs 012 soved assignment 2015-16
Mcs 012 soved assignment 2015-16
 
GSP 215 Enhance teaching/tutorialrank.com
 GSP 215 Enhance teaching/tutorialrank.com GSP 215 Enhance teaching/tutorialrank.com
GSP 215 Enhance teaching/tutorialrank.com
 

More from aryan532920

According to the NASW Code of Ethics section 6.04 (NASW, 2008), .docx
According to the NASW Code of Ethics section 6.04 (NASW, 2008), .docxAccording to the NASW Code of Ethics section 6.04 (NASW, 2008), .docx
According to the NASW Code of Ethics section 6.04 (NASW, 2008), .docxaryan532920
 
According to the text, crime has been part of the human condition si.docx
According to the text, crime has been part of the human condition si.docxAccording to the text, crime has been part of the human condition si.docx
According to the text, crime has been part of the human condition si.docxaryan532920
 
According to Ronald Story and Bruce Laurie, The dozen years between.docx
According to Ronald Story and Bruce Laurie, The dozen years between.docxAccording to Ronald Story and Bruce Laurie, The dozen years between.docx
According to Ronald Story and Bruce Laurie, The dozen years between.docxaryan532920
 
According to Kirk (2016), most of your time will be spent work with .docx
According to Kirk (2016), most of your time will be spent work with .docxAccording to Kirk (2016), most of your time will be spent work with .docx
According to Kirk (2016), most of your time will be spent work with .docxaryan532920
 
According to the Council on Social Work Education, Competency 5 Eng.docx
According to the Council on Social Work Education, Competency 5 Eng.docxAccording to the Council on Social Work Education, Competency 5 Eng.docx
According to the Council on Social Work Education, Competency 5 Eng.docxaryan532920
 
According to Kirk (2016), most of our time will be spent working.docx
According to Kirk (2016), most of our time will be spent working.docxAccording to Kirk (2016), most of our time will be spent working.docx
According to Kirk (2016), most of our time will be spent working.docxaryan532920
 
According to Kirk (2016), most of your time will be spent working wi.docx
According to Kirk (2016), most of your time will be spent working wi.docxAccording to Kirk (2016), most of your time will be spent working wi.docx
According to Kirk (2016), most of your time will be spent working wi.docxaryan532920
 
According to Davenport (2014) the organizational value of healthcare.docx
According to Davenport (2014) the organizational value of healthcare.docxAccording to Davenport (2014) the organizational value of healthcare.docx
According to Davenport (2014) the organizational value of healthcare.docxaryan532920
 
According to the authors, privacy and security go hand in hand; .docx
According to the authors, privacy and security go hand in hand; .docxAccording to the authors, privacy and security go hand in hand; .docx
According to the authors, privacy and security go hand in hand; .docxaryan532920
 
According to Gilbert and Troitzsch (2005), Foundations of Simula.docx
According to Gilbert and Troitzsch (2005), Foundations of Simula.docxAccording to Gilbert and Troitzsch (2005), Foundations of Simula.docx
According to Gilbert and Troitzsch (2005), Foundations of Simula.docxaryan532920
 
According to Klein (2016), using ethical absolutism and ethical .docx
According to Klein (2016), using ethical absolutism and ethical .docxAccording to Klein (2016), using ethical absolutism and ethical .docx
According to Klein (2016), using ethical absolutism and ethical .docxaryan532920
 
According to Franks and Smallwood (2013), information has become.docx
According to Franks and Smallwood (2013), information has become.docxAccording to Franks and Smallwood (2013), information has become.docx
According to Franks and Smallwood (2013), information has become.docxaryan532920
 
According to the Council on Social Work Education, Competency 5.docx
According to the Council on Social Work Education, Competency 5.docxAccording to the Council on Social Work Education, Competency 5.docx
According to the Council on Social Work Education, Competency 5.docxaryan532920
 
According to the authors, privacy and security go hand in hand; and .docx
According to the authors, privacy and security go hand in hand; and .docxAccording to the authors, privacy and security go hand in hand; and .docx
According to the authors, privacy and security go hand in hand; and .docxaryan532920
 
According to recent surveys, China, India, and the Philippines are t.docx
According to recent surveys, China, India, and the Philippines are t.docxAccording to recent surveys, China, India, and the Philippines are t.docx
According to recent surveys, China, India, and the Philippines are t.docxaryan532920
 
According to the authors, countries that lag behind the rest of the .docx
According to the authors, countries that lag behind the rest of the .docxAccording to the authors, countries that lag behind the rest of the .docx
According to the authors, countries that lag behind the rest of the .docxaryan532920
 
According to Peskin et al. (2013) in our course reader, Studies on .docx
According to Peskin et al. (2013) in our course reader, Studies on .docxAccording to Peskin et al. (2013) in our course reader, Studies on .docx
According to Peskin et al. (2013) in our course reader, Studies on .docxaryan532920
 
According to Franks and Smallwood (2013), information has become the.docx
According to Franks and Smallwood (2013), information has become the.docxAccording to Franks and Smallwood (2013), information has become the.docx
According to Franks and Smallwood (2013), information has become the.docxaryan532920
 
According to Ang (2011), how is Social Media management differen.docx
According to Ang (2011), how is Social Media management differen.docxAccording to Ang (2011), how is Social Media management differen.docx
According to Ang (2011), how is Social Media management differen.docxaryan532920
 
According to (Alsaidi & Kausar (2018), It is expected that by 2020,.docx
According to (Alsaidi & Kausar (2018), It is expected that by 2020,.docxAccording to (Alsaidi & Kausar (2018), It is expected that by 2020,.docx
According to (Alsaidi & Kausar (2018), It is expected that by 2020,.docxaryan532920
 

More from aryan532920 (20)

According to the NASW Code of Ethics section 6.04 (NASW, 2008), .docx
According to the NASW Code of Ethics section 6.04 (NASW, 2008), .docxAccording to the NASW Code of Ethics section 6.04 (NASW, 2008), .docx
According to the NASW Code of Ethics section 6.04 (NASW, 2008), .docx
 
According to the text, crime has been part of the human condition si.docx
According to the text, crime has been part of the human condition si.docxAccording to the text, crime has been part of the human condition si.docx
According to the text, crime has been part of the human condition si.docx
 
According to Ronald Story and Bruce Laurie, The dozen years between.docx
According to Ronald Story and Bruce Laurie, The dozen years between.docxAccording to Ronald Story and Bruce Laurie, The dozen years between.docx
According to Ronald Story and Bruce Laurie, The dozen years between.docx
 
According to Kirk (2016), most of your time will be spent work with .docx
According to Kirk (2016), most of your time will be spent work with .docxAccording to Kirk (2016), most of your time will be spent work with .docx
According to Kirk (2016), most of your time will be spent work with .docx
 
According to the Council on Social Work Education, Competency 5 Eng.docx
According to the Council on Social Work Education, Competency 5 Eng.docxAccording to the Council on Social Work Education, Competency 5 Eng.docx
According to the Council on Social Work Education, Competency 5 Eng.docx
 
According to Kirk (2016), most of our time will be spent working.docx
According to Kirk (2016), most of our time will be spent working.docxAccording to Kirk (2016), most of our time will be spent working.docx
According to Kirk (2016), most of our time will be spent working.docx
 
According to Kirk (2016), most of your time will be spent working wi.docx
According to Kirk (2016), most of your time will be spent working wi.docxAccording to Kirk (2016), most of your time will be spent working wi.docx
According to Kirk (2016), most of your time will be spent working wi.docx
 
According to Davenport (2014) the organizational value of healthcare.docx
According to Davenport (2014) the organizational value of healthcare.docxAccording to Davenport (2014) the organizational value of healthcare.docx
According to Davenport (2014) the organizational value of healthcare.docx
 
According to the authors, privacy and security go hand in hand; .docx
According to the authors, privacy and security go hand in hand; .docxAccording to the authors, privacy and security go hand in hand; .docx
According to the authors, privacy and security go hand in hand; .docx
 
According to Gilbert and Troitzsch (2005), Foundations of Simula.docx
According to Gilbert and Troitzsch (2005), Foundations of Simula.docxAccording to Gilbert and Troitzsch (2005), Foundations of Simula.docx
According to Gilbert and Troitzsch (2005), Foundations of Simula.docx
 
According to Klein (2016), using ethical absolutism and ethical .docx
According to Klein (2016), using ethical absolutism and ethical .docxAccording to Klein (2016), using ethical absolutism and ethical .docx
According to Klein (2016), using ethical absolutism and ethical .docx
 
According to Franks and Smallwood (2013), information has become.docx
According to Franks and Smallwood (2013), information has become.docxAccording to Franks and Smallwood (2013), information has become.docx
According to Franks and Smallwood (2013), information has become.docx
 
According to the Council on Social Work Education, Competency 5.docx
According to the Council on Social Work Education, Competency 5.docxAccording to the Council on Social Work Education, Competency 5.docx
According to the Council on Social Work Education, Competency 5.docx
 
According to the authors, privacy and security go hand in hand; and .docx
According to the authors, privacy and security go hand in hand; and .docxAccording to the authors, privacy and security go hand in hand; and .docx
According to the authors, privacy and security go hand in hand; and .docx
 
According to recent surveys, China, India, and the Philippines are t.docx
According to recent surveys, China, India, and the Philippines are t.docxAccording to recent surveys, China, India, and the Philippines are t.docx
According to recent surveys, China, India, and the Philippines are t.docx
 
According to the authors, countries that lag behind the rest of the .docx
According to the authors, countries that lag behind the rest of the .docxAccording to the authors, countries that lag behind the rest of the .docx
According to the authors, countries that lag behind the rest of the .docx
 
According to Peskin et al. (2013) in our course reader, Studies on .docx
According to Peskin et al. (2013) in our course reader, Studies on .docxAccording to Peskin et al. (2013) in our course reader, Studies on .docx
According to Peskin et al. (2013) in our course reader, Studies on .docx
 
According to Franks and Smallwood (2013), information has become the.docx
According to Franks and Smallwood (2013), information has become the.docxAccording to Franks and Smallwood (2013), information has become the.docx
According to Franks and Smallwood (2013), information has become the.docx
 
According to Ang (2011), how is Social Media management differen.docx
According to Ang (2011), how is Social Media management differen.docxAccording to Ang (2011), how is Social Media management differen.docx
According to Ang (2011), how is Social Media management differen.docx
 
According to (Alsaidi & Kausar (2018), It is expected that by 2020,.docx
According to (Alsaidi & Kausar (2018), It is expected that by 2020,.docxAccording to (Alsaidi & Kausar (2018), It is expected that by 2020,.docx
According to (Alsaidi & Kausar (2018), It is expected that by 2020,.docx
 

Recently uploaded

Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 

Recently uploaded (20)

Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 

This file is intended to be loaded by Logisim (httpwww.cburc.docx

  • 1. This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). addr/data: 8 8 0
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13. CPS250, Logic Design Project #1 Binary Coded Decimal The basic binary number system (for unsigned numbers) and the 2's complement binary system (for
  • 14. signed numbers) are two ways to represent numbers using bits. However, there are other ways. One is known as binary coded decimal, or BCD. BCD numbers are a little easier for humans to understand, because there is a direct mapping to decimal numbers. For the purposes of this assignment, we will consider only unsigned BCD numbers. A decimal number is encoded in BCD as follows: Each decimal digit is represented by four bits. But since there are only 10 decimal digits and yet 16 combinations of four bits, some of the bit patterns are unused. This is summarized by the table below. bits digit 0000 0 0001 1 0010 2 0011 3 0100 4 0101 5 0110 6 0111 7 bits digit 1000 8
  • 15. 1001 9 1010 unused 1011 unused 1100 unused 1101 unused 1110 unused 1111 unused As an example, the decimal number 685 would be represented by 0110 1000 0101 Addition of 12-bit BCD numbers can then be demonstrated as such: 1000 0011 0111 837 + 0001 0010 0110 + 126 ----------------------- ----- 1001 0110 0011 963 Note that a carry had to occur from the rightmost decimal column. Simply binary addition would not accomplish that on the left, so special circuitry is needed to complete BCD additions. Your Goal
  • 16. The purpose of your work on this assignment is to complete a set of circuits that both accomplish BCD addition and display the results on simulated LED devices. These devices are available in the Logisim Input/Output library. The figure below shows the final goal of this assignment. The circuit shown here is provided to you in the file “BCD_add_partial.circ”, along with the pin layouts for the auxiliary circuits you will design. The circuit is named “LCD_test” After downloading the file, please change the name to “BCD_add.circ”. A major goal of this project is to allow you to explore and experiment with Logisim and the components available there. To that end, you are permitted to use any devices you find in the Logisim libraries. There is much there to familiarize yourself with, so start early! The Logisim help facility is very complete and very informative. You should use Help-->Library Reference frequently while working in Logisim, as all the devices are described there. Some devices of particular interest are: comparator, adder, and splitter. (This is not a complete list of all the devices you will find useful.) In the discussions that follow, please remember that when decisions need to be made using hardware, the most common tool is a multiplexor.
  • 17. Follow the instructions carefully. You must complete each device in the circuit provided for that purpose. You must not change the arrangements of the input and output pins, and you must not add any new pins. You should use the pins exactly as they are provided. Part I: Digit converter circuit (10 points) In the image above, you will notice the small devices labeled “DC”. The implementation of these devices will be developed by you inside the circuit named “digit_converter”. Here is what this device accomplishes: • Input: 4-bit binary unsigned value X. • Outputs: 4-bit binary value Y. 1-bit value P. • If X <= 9: ◦ Y = X ◦ P = 0 • If X > 9: ◦ Y = 1110 (0xE) ◦ P = 1 Recall that the only valid bit patterns for a BCD digit are those between 0000 and 1001. The purpose of this device is to let the user know if the input pins represent an erroneous value. So, if any values greater than 9 are entered, the value displayed on the LCD will be “E” (in this case, for “error”), and the small dot in the lower right corner of the LCD display will be lit.
  • 18. The LCD devices used are the “Hex Digit Display” devices found in the Logisim Input/Output library. Look to the Library Reference for a complete description of how this device works. Once your device is complete, if it is working properly you should be able to see the values on the input pins appear on the top row of LCD devices. (If the value is >9, you should see “E.” there.) Part II: BCD Full Adder (15 points) This device will be completed by you in the circuit named “BCD-FA”. This device will handle the addition of two 4-bit BCD digits and an incoming carry, as follows: • Inputs: 4-bit BCD digit A. 4-bit BCD digit B, 1-bit carry-in Cin. • Outputs: 4-bit sum BCD digit S, 1-bit carry-out Cout. • if (A+B+Cin)<=9: // NOTE that A+B+Cin must be a 5-bit sum ◦ S = lower 4 bits of A+B+Cin ◦ Cout = 0 • if (A+B+Cin)>9 ◦ S = lower 4 bits of (A+B+Cin)-10 ◦ Cout = 1 The idea here is is that we are adding two decimal digits (A and B) and a possible carry-in (Cin) of 0 or 1. If that sum is >9, then there is a carry-out of 1 and the sum needs adjusted. If not, the sum is fine and there is a carry-out of 0.
  • 19. Part III: BCD Ripple-carry Adder (10 points) Develop this device in the circuit named “BCD_adder”. The BCD full adder produced in Part II is completely analogous to the binary full-adder used to build a binary ripple-carry adder. In the figure shown previously and in the “LCD_test” circuit, this final device is the one labeled “BCD_adder”. The device is quite similar to a binary ripple-carry adder. The difference is that each stage represents a decimal digit rather than a bit. • Inputs: (A3,A2,A1,A0) – 4 digit BCD number A. (B3,B2,B1,B0) – 4 digit BCD number B. • Outputs: (S3,S2,S1,S0) – 4 digit BCD sum S What to Submit Submit what you have completed in the file “BCD_add.circ”.