Virtual Wallet Design of BCD Binary Converters To create a handheld device which will save money and time through budget assistance and improve the shopping.

Slides:



Advertisements
Similar presentations
Digital Circuits. Review – Getting the truth table The first step in designing a digital circuit usually is to get the truth table. That is, for every.
Advertisements

Digital Circuits.
1ASM Algorithmic State Machines (ASM) part 1. ASM2 Algorithmic State Machine (ASM) ‏ Our design methodologies do not scale well to real-world problems.
ECE2030 Introduction to Computer Engineering Lecture 13: Building Blocks for Combinational Logic (4) Shifters, Multipliers Prof. Hsien-Hsin Sean Lee School.
Lab 10 : Arithmetic Systems : Adder System Layout: Slide #2 Slide #3 Slide #4 Slide #5 Arithmetic Overflow: 2’s Complement Conversions: 8 Bit Adder/Subtractor.
1 Lecture 20 Sequential Circuits: Latches. 2 Overview °Circuits require memory to store intermediate data °Sequential circuits use a periodic signal to.
October 16, 2002Flip-flops1 Summary : Latches A sequential circuit has memory. It may respond differently to the same inputs, depending on its current.
Binary Addition. Binary Addition (1) Binary Addition (2)
Virtual Wallet Gates Winkler Yin Shen Jordan Samuel Fei /23/2009 A handheld device that saves time and money through smart budget management and.
Assembly Language and Computer Architecture Using C++ and Java
Assembly Language and Computer Architecture Using C++ and Java
Shift Registers and Shift Register Counters
Design of Arithmetic Circuits – Adders, Subtractors, BCD adders
1 COMP541 Arithmetic Circuits Montek Singh Mar 20, 2007.
DIGITAL SYSTEMS TCE OTHER COMBINATIONAL LOGIC CIRCUITS WEEK 7 AND WEEK 8 (LECTURE 1 OF 3) COMPARATORS CODE CONVERTERS.
Virtual Wallet Structural Design To create a handheld device which will save money and time through budget assistance and improve the shopping experience.
Combinational Logic Design
A State Element “Zoo”.
Digital Logic Chapter 2 Number Conversions Digital Systems by Tocci.
Lecture 3. Boolean Algebra, Logic Gates Prof. Sin-Min Lee Department of Computer Science 2x.
Advanced Instructions Most PLCs now support more advanced functions such as Floating point math, Boolean operations, Shifting, Sequencing, Program control.
Virtual Wallet Gates Winkler Yin Shen Jordan Fei Project Manager: Prajna Shetty /02/2009 A handheld device that saves time and money through smart.
Introduction to Digital Logic Design Appendix A of CO&A Dr. Farag
ECE 101 An Introduction to Information Technology Digital Logic.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Lecture 12 – Design Procedure.
Digital Electronics. Digital circuits work on the basis of a transistor being used as a switch. Consider a light switch, a transistor can be considered.
IT253: Computer Organization
Conversion and Coding (12) 10. Conversion and Coding (12) Conversion.
P. 4.1 Digital Technology and Computer Fundamentals Chapter 4 Digital Components.
1 Boolean Algebra & Logic Gates. 2 Objectives Understand the relationship between Boolean logic and digital computer circuits. Learn how to design simple.
Lecture 9 Topics: –Combinational circuits Basic concepts Examples of typical combinational circuits –Half-adder –Full-adder –Ripple-Carry adder –Decoder.
Important Components, Blocks and Methodologies. To remember 1.EXORS 2.Counters and Generalized Counters 3.State Machines (Moore, Mealy, Rabin-Scott) 4.Controllers.
ENG241 Digital Design Week #8 Registers and Counters.
Introduction to State Machine
Arithmetic Circuits. Half Adder ABSumCarry
Combinational Circuits
Digital Logic Structures: Chapter 3 COMP 2610 Dr. James Money COMP
Outline Binary Addition 2’s complement Binary Subtraction Half Adder
Introduction to Digital Electronics Lecture 2: Number Systems.
CSC 331: DIGITAL LOGIC DESIGN COURSE LECTURER: E. Y. BAAGYERE. CONTACT: LECTURE TIME: 15:40 – 17:45 hrs. VENUE: SP-LAB.
Addition and multiplication Arithmetic is the most basic thing you can do with a computer, but it’s not as easy as you might expect! These next few lectures.
CPS120: Introduction to Computer Science Computer Math: Addition and Subtraction.
ECE DIGITAL LOGIC LECTURE 15: COMBINATIONAL CIRCUITS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2015, 10/20/2015.
Gates Winkler Jordan Samuel Fei Yin Shen 9 September 2009 Virtual Wallet Design Proposal To create a handheld device which will save money and time through.
Sequential circuit analysis1 Sequential Circuit Analysis Last time we started talking about latches and flip-flops, which are basic one-bit memory units.
CEC 220 Digital Circuit Design Decoders, Encoders, & ROM Wed, February 19 CEC 220 Digital Circuit Design Slide 1 of 18.
WORKING PRINCIPLE OF DIGITAL LOGIC
More on Digital Logic Devices and Circuits Trac D. Tran ECE Department The Johns Hopkins University Baltimore, MD
Addition and multiplication1 Arithmetic is the most basic thing you can do with a computer, but it’s not as easy as you might expect! These next few lectures.
State Diagrams Tuesday, 12 September State diagram Graphical representation of a state table. –Provides the same information as a state table. –A.
Unit 1 Introduction Number Systems and Conversion.
CHAPTER 18 Circuits for Arithmetic Operations
Registers and Counters
2's Complement Arithmetic
Chap 7. Register Transfers and Datapaths
Digital Systems Section 14 Registers. Digital Systems Section 14 Registers.
Digital System Design Review.
Registers and Counters Register : A Group of Flip-Flops. N-Bit Register has N flip-flops. Each flip-flop stores 1-Bit Information. So N-Bit Register Stores.
Digital Electronics & Logic Design
Unsigned Multiplication
ELL100: INTRODUCTION TO ELECTRICAL ENGG.
Topic 3: Data Signed Binary.
Number Systems Decimal (base 10) { }
Instructor: Alexander Stoytchev
FIGURE 10.1 Rectangular‐shape graphic symbols for gates
Logic Circuits I Lecture 3.
Binary Adder/Subtractor
CHAPTER 18 Circuits for Arithmetic Operations
Digital Circuits.
Presentation transcript:

Virtual Wallet Design of BCD Binary Converters To create a handheld device which will save money and time through budget assistance and improve the shopping experience. Gates Winkler Jordan Samuel Fei Yin Shen October 19, 2009

Status Finished Flow Chart Behavioral Verilog Transistor Estimate Floor Plan Structure Proposal Structural Verilog Schematic To Do Layout Testing

Introduction Binary – Representing numbers on a “2” scale. –Ex. 19 = BCD – Representing numbers on a “10” scale using a “2” scale. –Each set of 4 bits stores 1 base 10 digit. Called a nibble. –Ex. 19 = (2 nibbles) 0001 = 1; 1001 = 9

When Converting It is important to remember that though both are represented with 0 and 1s they will have different lengths when converted. BCD bit length will always be a multiple of 4 Number Number of Bits BinaryBCD e62028

Binary To BCD Algorithm Assumes the necessary number of bits to store the nibbles are all initialized to 0. Ex. Binary 51 = Needs 2 nibbles all set to 0 =>

Step 1 – Check For >=5 Check all nibbles to see if any are >= 5. –0000 < 5 If none are >= do nothing.

Step 2 – Shift Left Shift all bits left shifting the MSB of the binary number into the LSB of the BCD number. Anything can be shifted in. Initial: : After Shift: : 10011X

Step 3 – Repeat Repeat x times where x = length of binary number. 1 Run: : 10011X 2 Run: : 0011XX 3 Run: : 011XXX Wait… After 3 runs there is a nibble that that is >= 5.

Step 1b – Greater or Equal 5 If any nibbles are >= 5 then add 3 (0011) to that nibble. No nibble can ever be >9 so overflow is impossible < >5 thus – = 1001 After adding continue with step 2 –Initial: : 011XXX –After Increasing Nibbles: : 011XXX –After Shift: : 11XXXX

Step 3 – Repeat (Again) Finish repeating. 4 Run: : 11XXXX 5 Run: : 1XXXXX 6 Run After Adding: : 1XXXXX –6 After Shifting: : XXXXXX Final answer: = = 1

BCD To Binary Algorithm Practically identical but reversed. Here are the changes. Step 1 Shift –Shifts right instead of left –LSB of BCD is shifted into MSB of Binary –Must Shift in 0s Step 2 Greater than/equal to 8 –Compares each BCD nibble to 8 instead. If less than do nothing. If greater than/equal subtract 3 from the nibble. Step 3 Repeat (again) Repeat x times where x = length of binary number.

Structural Binary To BCD –Needs 48 Flip Flops –7 4-bit adders (28 1-bit adders) –7 compare blocks. BCD To Binary –Needs 48 Flip Flops –7 4-bit subtracters (28 1-bit subtracters) –7 compare blocks.

Flip Flops – Output The Output Flip Flops can be regular Sequential Flip Flops.

Flip Flops – Input The Input Flip Flops will be parallel Flip-Flops which allows us to chose whether we want to shift or write. The nand gates allow for the flip flops to be written to on low write while it acts as a shifter on high write.

Compare to 5 Assumes 4 bit input B[3:0]. Use a Truth table to figure out block configuration

Binary – BCD 1 Nibble

Compare to 8 Easy, if Cin = 1 then the nibble will become 8 or greater. Don’t need a compare.

BCD – Binary 1 Nibble

Note In a BCD – Binary converter the BCD is the input. Thus the Flip Flops are actually the ones shown on slide 13. Binary Just Shifts without anything fancy. Just Needs respective Flip Flops.

Schematics Binary - BCD

BCD - Binary

Binary – BCD: Binary

Parallel Flip Flop

Flip Flop

Nand Block

Binary – BCD: BCD

Binary – BCD: 1 nibble

Compare to 5

BCD – Binary: Binary

BCD – Binary: BCD

BCD – Binary: BCD 1 nibble