CS 1102 Assignment WEEK 3 PDF

Title CS 1102 Assignment WEEK 3
Author Makkah MC
Course Programming 1
Institution University of the People
Pages 11
File Size 512.9 KB
File Type PDF
Total Downloads 43
Total Views 155

Summary

CS 1102 WRITING ASSIGNMENT WEEK 3 WITH ANSWERS....


Description

Walid Mohammad

Home

Home  My courses  CS 1104 - AY2021-T5  1 July - 7 July  Assignment Unit 3  Submission

Assignment Unit 3 My submission Instructions for submission For the unit 3 assignment, there will be three tasks: First you must create a logic circuit using only basic gates such as AND, OR, NOR, NAND, NOT, etc. to implement an ADDER capable of adding two 4 bit binary numbers. Second you must create a logic circuit using only basic gates such as AND, OR, NOR, NAND, NOT, etc. to implement a Subtractor that is capable of subtracting the second number from the rst, by converting the second number into its 2's complement form and then adding the resulting number to the rst number. You do not need to worry about accomodating the addition or subtraction of negative numbers as part of your assignment. Finally, for the third part of the assignment you must create a limited ALU (Arithmetic logic unit) circuit using Logism that implements a Full Adder circuit capable of adding 2 – 4 bit binary numbers and subtracting 2- 4 bit binary numbers. You must also implement the ability to select a bitwise AND operation and a bitwise OR operation. For the ALU it is acceptable to use the Adder and Subtractor circuits that are listed under the "Arithmetic" folder in Logism. Please check the video lecture on Logism tips and tricks to learn how to use multi bit pins, and how to set up dierent gates to support more than 1 bit. If you would like to use YOUR adder or subtractor circuit in your ALU that is not only acceptable but would be preferred (it is not required as it will make the circuit much more complex) in order to do this you should learn to make use of the splitter that is located in the "Wiring" folder in Logism as this can simpify wiring all of the functions together.



This assignment demonstrates many of the key elements that are required for an operational ALU (Arithmetic Logic Unit). First of all we are providing two inputs or operands which will be used in a computation. We are implementing four of the most important computations including add, subtract, bitwise AND, and bitwise OR. Obviously this would not be a complete ALU, but it does provide us with an understanding of the operation of the ALU and gives us some experience with designing components of the ALU. Your circuit must use a multiplexor that will select between the add, subtract, AND, and OR operations. The multiplexor will select the operations using 2 bits for the selection as follows:

0 0 - Add 0 1 - Subtract 1 0 - AND 1 1 - OR What this means is that when the selection bits on the multiplexor (or demultiplexor as the case may be) are set it enbles the path from one of the functions Add, Subtract, AND, and OR. Your subtract circuit must convert the second of your two input numbers into 2’s complement format and then add the resulting binary number to the rst number as this will eectively subtract the second binary number from the rst binary number. Remember to convert a number into 2's complement requires two steps. First the bits of the number must be inverted (make all 1's into 0's and make all 0's into 1's) second add one to the this inverted number. You could use a circuit similar to the following for this.

The bitwise AND and OR functions can be implemented using a circuit similar to the following.



DO NOT attempt to use the examples that I have provided here. They are meant to be illustrative but are NOT necessarily complete. Your circuit should look similar to the following diagram (again this is meant to be illustrative it is NOT complete) with the two binary numbers to be added on the left, a bit selector that will select the operation to be performed. When it is 0 the adder circuit should be selected and when 1 the subtraction circuit should be selected. Of the output of the computation should be on the right.

Your circuit should follow this basic format, but you must design all of the actual circuits to perform addition and subtraction. You must design the actual connections between components what I have represented below is just to give an idea of where you should put the inputs, outputs, and processing that occurs in between.

 Complete and test your circuit using Logism and submit the following materials.

1. Using the export image feature in Logism (Use File-Export Image from menu), export your circuits in jpeg format include it as part of your post. Moodle has the ability to insert a jpeg image. 2. Save your Logism models as a circ les and attach the les to your assignment posting.

Programming Assignment Unit 3 submitted on Monday, 5 July 2021, 2:39 AM

modied on Monday, 5 July 2021, 2:49 AM

First (Adder):



Second (Subtractor):



Third (ALU):

Not sure as to why, but the last gif here wouldn't load--you can download it to few the whole process; ThirdALU.gif



FirstCircuit.circ SecondCircuit.circ ThirdCircuit.circ

Your assessment by Walid Mohammad Grade: 90 of 90

Assessment form

Aspect 1 Does the assignment include a jpeg images of the circuits? Grade for Aspect 1 Yes Comment for Aspect 1 The student included images.

Aspect 2 Does the assignment include the circ le models of the circuits? Grade for Aspect 2 Yes Comment for Aspect 2



The student included circ le.

Aspect 3 Was a circuit implementing a 4 bit adder included? Grade for Aspect 3 Yes Comment for Aspect 3 Yess it was a 4 bit adder included.

Aspect 4 Was a circuit implementing a 4 bit subtractor included? Grade for Aspect 4 Yes Comment for Aspect 4 Yes it was implementing

Aspect 5 Does the subtractor circuit convert the second binary number into 2's complement to facilitate subtraction? Grade for Aspect 5 Yes Comment for Aspect 5 Yes. It converts the second binary number into 2's complement to facilitate subtraction



Aspect 6 Does the assignment include a simple 4 bit ALU circuit that is capable of performing the ADD, Subtact, AND, and OR functions? Grade for Aspect 6 Yes Comment for Aspect 6 Yes it includes a simple 4 bit ALU circuit that is capable of performing the ADD, Subtact, AND, and OR functions.

Aspect 7 Does the ALU circuitimplement an adder function for 4 bit binary numbers which can be selected using a multiplexor (or demultiplexor depending upon your design)? Grade for Aspect 7 Yes Comment for Aspect 7 Yes The ALU circuit implemented an adder function for 4 bit binary numbers which can be selected using a multiplexor (or demultiplexor depending upon your design)

Aspect 8 Does the ALU circuit implement a subtract function for 4 bit binary numbers which can be selected using a multiplexor (or demultiplexor depending upon your design)? Grade for Aspect 8 Yes



Comment for Aspect 8 The ALU circuit implemented a subtract function for 4 bit binary numbers which can be selected using a multiplexor (or demultiplexor depending upon your design)

Aspect 9 Does the ALU circuit implement a bitwise AND function for 4 bit binary numbers which can be selected using a multiplexor (or demultiplexor depending upon your design)? Grade for Aspect 9 Yes Comment for Aspect 9 The ALU circuit implemented a bitwise AND function for 4 bit binary numbers which can be selected using a multiplexor (or demultiplexor depending upon your design)

Aspect 10 Does the ALU circuit implement a bitwise OR function for 4 bit binary numbers which can be selected using a multiplexor (or demultiplexor depending upon your design)? Grade for Aspect 10 Yes Comment for Aspect 10 The ALU circuit implemented a bitwise OR function for 4 bit binary numbers which can be selected using a multiplexor (or demultiplexor depending upon your design).

Overall feedback



It was a good answer.. He clearly understood the chapters and replied them correctly. Keep up.

◄ Discussion Forum Unit 3 Jump to...

Learning Journal Unit 3 ►

 UoPeople Clock (GMT-5) Fri, Aug 13, 2021 3:58:25 pm All activities close on Wednesdays at 11:55 PM, except for Learning Journals/Portfolios which close on Thursdays at 11:55 PM always following this clock. Due dates/times displayed in activities will vary with your chosen time zone, however you are still bound to the 11:55 PM GMT-5 deadline.

Disclaimer Regarding Use of Course Material - Terms of Use University of the People is a 501(c)(3) not for prot organization. Contributions are tax deductible to the extent permitted by law. Copyright © University of the People 2021. All rights reserved.

 https://www.uopeople.edu 









...


Similar Free PDFs