Limited-time offer! Save up to 50% Off | Solutions starting at \$6 each

# 4CS015 Fundamentals of Computing - Assignment

Added on - 21 Apr 2020

• 4CS015

Course

• 4

Pages

• 606

Words

• 978

Views

• Save

Share

Showing pages 1 to 2 of 4 pages
4CS015 Fundamentals of Computing – Workshop #5Name:Student ID:This is a marked workshop. It forms the third part of your portfolio. You will need to complete the workshop and thensubmit a copy of this document(copy and paste this into a word file) with a title that follows the following format(“DENNETT 1234567 wsp5.docx”), via CANVAS, before 11.59pm, Sunday, 12thNovember 2017.Workshop tasks:1.Arithmetic Logic Unit1.Load the LogSim Arithmetic Logic Unit Circuitalu.cctfrom inside the logsim application (You'll find itin the logsim folder)(You may need to right-click on the link to download the file instead of opening itin the browser). It should look like this:The circuit behaves like a simple arithmetic logic unit. The inputs A0-A3 represent a 4 bit binarynumber. Inputs B0-B3 represent another binary number. A0 and B0 are the least significant bitsrespectively. The following table details the functions supported by the chip. All other control lines = 0.FunctionANDORXORNANDNORNOT AADDSUBTRACTX3 – X000000001001000110100010110101011Use A= 11 B=4, complete the following table in binary (15 marks):FUNCTIONOUTPUTAND1010OR1011XOR0001NAND1010NOR0100NOT A0100ADD10101SUBTRACT0001
1.The logical operations are bitwise. Manually prove each operation has returned the correct result by(15 marks):1 0 1 11 0 1 0AND OPERATION1 0 1 0 RESULT1 0 1 11 0 1 0OR OPERATION1 0 1 1 RESULT1 0 1 11 0 1 0XOR OPERATION0 0 0 1 RESULT1 0 1 11 0 1 0NAND OPERATION1 0 1 0 RESULT1 0 1 11 0 1 0NOR OPERATION0 1 0 0 RESULT1 0 1 11 0 1 0NOT A0 1 0 0 RESULT1 0 1 11 0 1 0ADD1 0 1 0 1 RESULT1 0 1 11 0 1 0SUBTRACT0 0 0 1 RESULT