http://taco.cse.tamu.edu/classes/614/hw1/problems/XXX-truth-table.txtThere you will find your truth table.
Construct two circuits that compute the function in four variables given by your truth table. One circuit may use only two-input NAND gates. The other circuit may use two-input NAND, NOR, AND, OR, and XOR gates as well as NOT gates.
0: ^^ -1 -3 1: ^^ -3 -4 2: !| 0 -4 3: ^^ 1 -2 4: !& 1 0 5: || 3 2 6: !& 5 4Gate #0 computes the XOR of variables -1 and -3. Gate #5 computes the OR of the outputs of gates number 3 and 2. This circuit computes the following truth table:
-4 -3 -2 -1 | output ------------ | 0 0 0 0 | 0 0 0 0 1 | 1 0 0 1 0 | 0 0 0 1 1 | 0 0 1 0 0 | 1 0 1 0 1 | 0 0 1 1 0 | 1 0 1 1 1 | 0 1 0 0 0 | 0 1 0 0 1 | 1 1 0 1 0 | 1 1 0 1 1 | 1 1 1 0 0 | 1 1 1 0 1 | 1 1 1 1 0 | 0 1 1 1 1 | 0
http://taco.cse.tamu.edu/classes/614/hw1/files/XX.txtFor instance, if your UIN is 1234, then 1234 mod 64 is 18, 18 + 1 is 19, so you should get http://taco.cse.tamu.edu/classes/614/hw1/files/19.txt. This file contains a sequence of hexadecimal bytes representing a C function in either x86 (32-bit) or x86_64 (64-bit) machine language. The file will also contain a type signature, i.e., a C declaration of the function giving its return type and the type(s) of its parameter(s), as well as a line giving the instruction set used for this function.
Note: It is expected that many students are not familiar with x86 and x86_64 machine language. You are expected to be resourceful. Find information and possibly tools on our systems or on the Internet to help you with this problem. There is more than one right way to do this assignment.
You may not work together on this assignment with other classmates or receive assistance from any person other than your professor or teaching assistant. You may consult literature or the Internet for assistance; if you do, indicate the source in your writeup. Again, do not collaborate with others on this assignment; this assignment is to be done individually.
Do the assignment you are assigned. Everyone has a different circuit and a different sequence of bytes to disassemble. You will receive no credit for turning in a solution to the wrong problem.
Your assignment should be nicely typed or word-processed. Turn in this assignment at the beginning of class on January 30, 2020. You must turn in the assignment on paper at the beginning of class. You must also send your two circuit files and your C function to csce614@gmail.com as three attachments to one email message before 3:55pm on Janaury 30. Make sure to put your name on your paper assignment. Make sure the circuits you turn in validate correctly. Make sure your C function compiles correctly.
Note: This assignment is designed to be simple for students who are well-prepared to take CSCE 614 and difficult or impossible for students who are not well-prepared. If you find that you don't know where to start or how to do this assignment, you are strongly encouraged not to continue in this class.
Late assignments will not be accepted.