Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Design of a Two's Complement Sequential Addition Network Purpose The purpose of this homework is to review traditional sequential Finite State Machine, FSM, design methodologies

Design of a Two's Complement Sequential Addition Network Purpose The purpose of this homework is to review traditional sequential Finite State Machine, FSM, design methodologies that were introduced in the EE 202, Digital Logic Design class and in Chapter 1 of the course text. The homework also illustrates how such designs can be created using ROM type lookup tables and multiplexers to implement the combinational portion of the logic. Implementing combinational logic in this way is a common method employed by CAD tools when they synthesize designs for FPGA implementation. Assignment This assignment requires that students develop multiple Mealy and Moore Finite State Machine implementations of a functional unit that performs two's complement addition of two numbers that are of arbitrary length.

Background This homework assignment focuses on the design of a sequential Boolean FSM network whose function is to perform a two's complement addition of two arbitrary length binary numbers A and B producing a sum S of the same length. These two inputs are assumed to be sent bit-serially in time in a least significant bit to most significant bit ordering. The output S is also assumed to be read bit-serially in time in a least significant bit to most significant bit ordering (see Figure 1). The network also contains a Reset and Enable input. The Reset input is the means by which an external controller can put this design back into its initial state so it can be used to serially sum up another two numbers. The Enable input allows the external controller to pause your design (in effect skipping clock cycles) so that it ignores inputs that are not valid. It is the job of the external controller to make sure that the Reset input to your Boolean FSM network is driven high at least one cycle and returned back to the low position before your FSM network receives its next number. It is also the job of the external network to drive the Enable input to a logic high before the active edge of the clock cycle and to remove it when ever the input data is not valid (meeting the required setup and hold times). Your job is not to develop this external controller network but rather develop the sequential FSM network in a manner the considers only the inputs A, and B, and produces the output S. In portions of this homework that require flip-flop state assignments assume that the initial state occurs when all of the flip-flops are zero. This would be the case when all the flip-flop reset and enable signals are connected together as shown in the figure. homework_assignment1a.jpg homework_assignment1b.jpg

Assignment Part 1 Develop a Mealy FSM State Graph (SG) for the Two's Complement Design shown in Figure 1. The design should contain a minimum number of states to implement the desired function. Identify the initial state and fully label all states in the diagram. Also label the input(s) and output of the design. Using this state graph develop an input sequence which will transverse all arcs and nodes of the SG.

Assignment Part 2 Implement the SG design in Part 1 using the minimum set of discrete logic gates (AND, OR, and NOT) and D-flip-flops for the state assignment that you have chosen. Show all step in this process. Evaluate the correctness of your design by neatly comparing the output of your final implementation with that which is predicted by the SG for the sequence that you developed in Part 1.

Assignment Part 3 Replace the combinational logic potion (AND, OR and NOT gates) of Part 2 with a ROM that is of minimal size to implement the SG of Part 1 with a minimal number of D-flip-flops. Clearly identify the Address and Data buses of the ROM element and specify its complete ROM Table.

Assignment Part 4 Replace the combinational logic potion (AND, OR and NOT gates) of Part 2 with one or more 4-to-1 multiplexers that will implement the SG of Part 1 with a minimal number of D-flip-flops. Clearly identify the inputs and outputs of the multiplexers. Assume positive logic with a Logic 1 representing VCC and a Logic 0 representing GND. You may also use inverters (NOT gates) as needed.

Assignment Part 5 Develop a Moore State Graph, SG, for the Two's Complement Design shown in Figure 1. The design should contain a minimum number of states to implement the desired function. Identify the initial state and fully label all states in the diagram. Also label the input(s) and output of the design. Using this state graph develop an input sequence which will transverse all arcs and nodes of the SG

Assignment Part 6 Implement the SG design in Part 5 using the minimum set of discrete logic gates (AND, OR, and NOT) and D-flip-flops for the state assignment that you have chosen. Show all step in this process. Evaluate the correctness of your design by neatly comparing the output of your final implementation with that which is predicted by the SG for the sequence that you developed in Part 5.

Assignment Part 7 Implement the SG design in Part 5 using again the minimum set of discrete logic gates (AND, OR, and NOT) but this time implement your state assignments using one-hot encoding. In this encoding scheme each state has a corresponding D-flip-flop which is at a Logic 1 whenever the design is in that state and is a Logic 0 otherwise. Assume in this case that the D-flip flops have both presets and clears which will be used to make sure that the state is initialized with only the flip-flop associated with the initial state being a Logic 1 and the remaining flip-fops being a Logic 0. Show all step in this process. Evaluate the correctness of your design by neatly comparing the output of your final implementation with that which is predicted by the SG for the sequence that you developed in Part 5.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

Students also viewed these Databases questions