Lab1_report

pdf

School

Iowa State University *

*We aren’t endorsed by this school

Course

201

Subject

Electrical Engineering

Date

Apr 3, 2024

Type

pdf

Pages

6

Uploaded by BrigadierRamPerson4431

Report
CprE 381, Computer Organization and Assembly Level Programming Lab 1 Report Student Name: Joseph Barnes III Submit a typeset pdf version of this on Canvas by the due date. Refer to the highlighted language in the lab document for the context of the following questions . [Part 1.c] Think of three more cases and record them in your lab report. Test case 3: s_iX <= 0; s_iW <= 2; s_iLdW <= 1; s_iY <= 0; wait for gCLK_HPER*2; Test case 4: s_iX <= 5; s_iW <= 0; s_iLdW <= 0; s_iY <= 11; wait for gCLK_HPER*2; wait for gCLK_HPER*2; Test case 5: s_iX <= 5; s_iW <= 2; s_iLdW <= 1; s_iY <= 3; wait for gCLK_HPER*2; wait for gCLK_HPER*2; end process; [Part 1.e] For labels 1, 7, 22, and 28, specify where (VHDL file and line number) these values are located – some will be found in more than one place. Also attempt to explain the functionality of each label as it occurs in the code Label 1 – In the attached file that was given label 1 is located on line 23 in the TPU_MV_Element.vhd Label 7 – In the attached file that was given label 7 is located on line 117 in the TPU_MV_Element.vhd Label 22 – In the attached file that was given label 22 is located on line 86 in the TPU_MV_Element.vhd Label 28 - In the attached file that was given label 28 is located on line 114 in the TPU_MV_Element.vhd
[Part 1.g.v] In your lab report, include a screenshot of the waveform. Describe, in plain English, any differences between what you expected and what the simulation showed. The expected output was 55, but the actual output was 33. The program verified that the timing is correct in the code, with 5 ns delay before the first cycle, 20 ns delay after the first cycle, and 40 ns delay after the second cycle. Despite this, the output doesn't match the expected result. [Part 1.h] In your lab report, include a screenshot of the waveform. Describe, in plain English, how your waveform matches the expected result (e.g., reference the specific cycles and times). In your submission zip file, provide the completed TPU_MV_Element.vhd file in a folder called ‘MAC’. This output is correct because after the three test cases run, the output is 55. [Part 3.a] Draw the truth table, Boolean equation, and Boolean circuit equivalent (using only two- input gates) that implements a 2:1 mux. Include this in your lab report. [Part 3.d] In your lab report, include a screenshot of the waveform. Make sure to label the screenshot with which module it is testing.
Above image is structural Mux2to1 waveform [Part 3.e] Again, in your lab report, include a labeled screenshot of the waveform showing the dataflow mux implementation working. Above image is dataflow Mux2to1 waveform [Part 4] Include a waveform screenshot and corresponding description demonstrating it is working correctly. The waveform displayed above corresponds to the Mux2to1_N operation. Its functionality is affirmed by the observed behavior: in the initial scenario, with the signal bit set to zero, it correctly selects D1 as the output; upon changing the signal bit to 1, the output appropriately switches to D0. [Part 5.b] Include a waveform screenshot and description in your lab report.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
The image above is the ones compliment waveform. You can see in the image that the function negates each bit. [Part 6.a] A full adder takes three single-bit inputs and produces two single-bit outputs – a sum and carry for the addition of the three input bits. Draw the truth table, Boolean equation, and Boolean circuit equivalent (using only two-input gates) that implements a 1-bit full adder. Include this in your report. [Part 6.c] Then draw a schematic of the intended design, including inputs and outputs and at least the 0, 1, N-2, and N-1 stages. Include this in your report.
[Part 6.d] Include an annotated waveform screenshot in your write-up. The image above is the normal full adder waveform. You can see that it follows the truth table by exhaustively testing it. The waveform depicted above corresponds to the N-bit carry ripple adder. Its functionality is evident as, when adding 5 and 7 without a carry input, the output correctly registers as 12. Additionally, when adding 5 and 7 with a carry input, the output appropriately becomes 13. [Part 7.a] Draw a schematic (don’t use a schematic capture tool) showing how an N-bit adder/subtractor with control can be implemented using only the three main components designed in earlier parts of this lab (i.e., the N-bit inverter, N-bit 2:1 mux, and N-bit adder). How is the ‘nAdd_Sub’ bit used? Include this in your report.
[Part 7.c] Provide multiple waveform screenshots in your write-up to confirm that this component is working correctly. What test-cases did you include and why? The presented waveform illustrates the behavior of the adder/subtractor. Specifically selected values were used to showcase various scenarios. The first case demonstrates subtraction, resulting in a negative output. The second case illustrates a simple addition operation. In the third cycle, subtraction is performed, leading to a positive output. These diverse cases provide insights into the wide range of possible outcomes.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help