Answered You can hire a professional tutor to get the answer.

QUESTION

SER 232 Project 2: Calculator Input Logic Learning Objectives: Convert between the three different representations of combinational logic The Task:

 SER 232 Project 2: Calculator Input Logic 

Learning Objectives: 

● Convert between the three different representations of combinational logic 

The Task: 

For the remaining three projects in this class, starting with this one, you will be building an 8-bit binary calculator. The next two projects will explore designing components necessary for the calculator and in project 4 you will put it all together. 

In this project, you will be implementing combinational logic circuits in Logisim to handle button input and (eventually) handle output selection from one of four arithmetic circuits (we will talk more about why we need this when we cover chapter 4). The two combinational digital circuits you will implement as subcircuits are discussed in chapter 2: a multiplexor and a priority encoder. You will then use both subcircuits to make a single verification circuit. The following are specifications for each subcircuit. 

Multiplexor: 

For your calculator, it will require a 4x1 multiplexor (mux) with four 8-bit inputs and an 8-bit output. For this project, however, 4-bit inputs and a 4-bit output are sufficient. The simplest way to create this is by first implementing a 4x1 mux with 1-bit inputs and a 1-bit output in a subcircuit. A 2-bit mux subcircuit can then be created using a pair of 1-bit muxes where both 1-bit muxes share selectors, but splitters are used to separate each 2-bit input into a 1-bit input for each 1-bit mux. The output of each 1-bit mux must also be recombined with a splitter to form the 2-bit output. An equivalent method can be used with a pair of 2-bit mux to form the final 4-bit mux. 

Priority Encoder: 

A priority encoder takes a specific number of input bits and represents the position (meaning the power of two exponent) of the most significant bit that is set (the bit farthest to the left that has a value of 1) in binary. Your priority encoder will have four 1-bit inputs and three 1-bit outputs: two bits used for the representation, in binary, of the position of the highest bit set and a valid bit that is 1 if at least one input bit is set. 

As one example of a potential input and expected output, suppose all 4 input bits are merged into a single binary representation of 01102. In this case the binary output should be 102 (which is equal to 210) and the valid bit should be 1. This output is generated because the bit in the 22 position is set. 

Although the 21 position bit is also set, it does not affect the output because it is not the most significant set bit. As another example, if the input is 00102 then the output would be 012 (= 110). 

Circuit Design Document 

There are two deliverables for this project. The first is a circuit design document, which should be submitted as a single PDF . This document should include a truth table for both the multiplexor (the truth table can be for a 1-bit mux) and the priority encoder. These truth tables should then be convert into to Boolean equations. I highly recommend that you simplify these equations before proceeding to implementation in Logisim because this will reduce the difficulty of laying out the circuit. That said, I will only be grading your equations for correctness. 

Verification Circuit 

The second deliverable is a verification circuit, shown below, to demonstrate that your multiplexor and priority encoder work correctly. 

The 4 inputs to the priority encoder are buttons (found in the Logisim Input/Output folder) and the 4 inputs to the mux are constants (found in the Wiring folder), which have been set as 4-bit outputs with the values 

1, 3, 5, and 7. Labels can be added to buttons (and other elements) by selecting the item with the editor cursor and modifying the Label attribute. 

The two outputs that make up the binary representation of the encoder are used as the selectors for the mux. The valid bit of the encoder is connected to the decimal point input of the hex digit display. The 4-bit output of the mux is connected to the 4-bit input of the hex digit display. 

The purpose of the verification circuit is the show that the encoder correctly encodes a binary value for each of its inputs by using the encoder outputs to select a specific input to the mux and control the decimal point on the hex digit. The seven-segment portion of the hex digit is used to display which of the mux's inputs is currently selected and the decimal point is used to indicate if the valid bit is set. If the any of the buttons are pressed then the decimal point should be turned on. If none of the buttons are pressed then the hex digit should display a 1 with the decimal point off. A demo video of the verification circuit can be found on Blackboard in the Chapter 2 Lecture Videos content folder. 

Circuit Reuse in Future Projects: 

The circuits you are asked to design and implement for this project already exist as circuit elements in the Plexers folder on Logisim. In future projects, you may choose to use either the circuits you implement in this project or the ones included with Logisim. A warning, however, for this project: if any of the premade circuit elements found in the Plexers folder are used in your project you will receive a zero on the circuit portion of the project score

Deliverables: 

1. Submit your circuit design document on Blackboard with the format: lastname_project2design.pdf (5 points) 

2. Submit your project file on Blackboard with the format: lastname_project2.circ (15 points) 

Note: Please include both the Logisim project file and the circuit design document in a single submission as separate attached files. Do not zip the files together 

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question