1. Homepage
  2. Homework
  3. 159.236 Embedded Programming Assignment 1: Design a basic Arithmetic/Logic Unit
This question has been solved

159.236 Embedded Programming Assignment 1: Design a basic Arithmetic/Logic Unit

Engage in a Conversation
Embedded ProgrammingMasseyNew ZealandALU

159.236 Embedded Programming Assignment 1 CourseNana.COM

Due date 22nd August 2022 CourseNana.COM

Design a basic Arithmetic/Logic Unit (ALU) that operates on two 2-bit binary numbers a and b and generates a third 2-bit number s. CourseNana.COM

The function of the ALU is determined by a 3-bit binary code f: CourseNana.COM

  CourseNana.COM

f2f1f0 CourseNana.COM

Name CourseNana.COM

Function CourseNana.COM

000 XOR Logical Exclusive OR of a and b CourseNana.COM

001 CourseNana.COM

AND CourseNana.COM

Logical AND of a and b CourseNana.COM

010 CourseNana.COM

ADD CourseNana.COM

Add a to b (ignore cin) CourseNana.COM

011 CourseNana.COM

ADC CourseNana.COM

Add a to b and include cin CourseNana.COM

100 CourseNana.COM

SUB CourseNana.COM

Subtract b from a (ignore cin) CourseNana.COM

101 CourseNana.COM

SBC CourseNana.COM

Subtract (b + cin) from a CourseNana.COM

110 CourseNana.COM

RSB CourseNana.COM

Subtract a from b (ignore cin) CourseNana.COM

111 CourseNana.COM

RSC CourseNana.COM

Subtract (a + cin) from b CourseNana.COM

  CourseNana.COM


CourseNana.COM

a0 is the least significant bit of a, a1 is the most significant bit. For operations which do not use the carry input, it should be ignored. For operations which do not generate a carry (XOR,AND), the carry output should be zero. If a carry occurs as a result of an addition, or a borrow occurs as a result of a subtraction, then cout should be 1. CourseNana.COM


CourseNana.COM


CourseNana.COM

Starting with the file alu2022.lgf (available on stream) add your design and test it using the switches labelled: a0, a1, b0, b1, f0, f1, f2 and cin and the lights labelled s0, s1 and cout. Do NOT change or add anything inside the box in alu2022.lgf or use the “test” connection; if you do, you WILL lose marks. You may only use basic gates (AND,OR,NOT,XOR,NOR,NAND) with any number of inputs. You must use the connections from the alu2022.lgf file. To do this, use the 'to' or 'from' devices in the catalogue. These allow you to make connections without drawing wires, simply click to assign a name to a connection and it will be connected to all other 'to' or 'from' devices with the same name. Your connections must be called a0,a1,b0,b1,cin,f0,f1,f2,cout,s0 and s1 so that they will connect to the test circuit. Do not add any switches to your design, you must be able to test your design by changing the switches on the left inside the box. Make sure the blue bars at the bottom of the log screen are not red before you submit your assignment. Check that your f inputs are the correct way round, i.e. f0 is 1 for AND. CourseNana.COM

This assignment is worth 20% of the final marks CourseNana.COM

Your assignment will be judged on accuracy and neatness. Submit your alu.lgf file electronically from stream.
Make sure your name and id are displayed in your design.
CourseNana.COM

This is an individual assignment, marks will be deducted if your submission is similar to others. Note that this is not exactly the same assignment as in 2021 CourseNana.COM

  CourseNana.COM

Get in Touch with Our Experts

WeChat (微信) WeChat (微信)
Whatsapp WhatsApp
Embedded Programming代写,Massey代写,New Zealand代写,ALU代写,Embedded Programming代编,Massey代编,New Zealand代编,ALU代编,Embedded Programming代考,Massey代考,New Zealand代考,ALU代考,Embedded Programminghelp,Masseyhelp,New Zealandhelp,ALUhelp,Embedded Programming作业代写,Massey作业代写,New Zealand作业代写,ALU作业代写,Embedded Programming编程代写,Massey编程代写,New Zealand编程代写,ALU编程代写,Embedded Programmingprogramming help,Masseyprogramming help,New Zealandprogramming help,ALUprogramming help,Embedded Programmingassignment help,Masseyassignment help,New Zealandassignment help,ALUassignment help,Embedded Programmingsolution,Masseysolution,New Zealandsolution,ALUsolution,