Lab1_report
pdf
keyboard_arrow_up
School
Iowa State University *
*We aren’t endorsed by this school
Course
201
Subject
Electrical Engineering
Date
Apr 3, 2024
Type
Pages
6
Uploaded by BrigadierRamPerson4431
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
Related Documents
Related Questions
Question iii please help......
arrow_forward
An 8085 assembly language program is given below.
Line 1: MVI A, B5H
2: MVI B, OEH
3: XRI 69H
4: ADD B
5: ANI 9BH
6: CPI 9FH
7: STA 3010H
8: HLT
The contents of the accumulator just execution of the ADD instruction in line
4 will be
arrow_forward
Here is the data flow diagram for a particular instruction. The various values shown indicate the state of the machine after the action of this
instruction. The question mark locates this instruction in memory.
GatePC
DR 100
GateMARMUX
RO
X2FFF
PC X
RI
x3006
MARMUX
TRAPVECTOR
R2
x3005
X0:0
PCMUX
R3
x3004
ZEXT
R4
x3003
OFPSETŐ OR
R5
x3002
PC OR BASER
R6
x3001
PCOFFSET
(7:0)
R7
x3000
ADDR2MUX
ADDRIMUX
SR2
SRI
(100
SEXT
IMMS
SEXT
SRZMUX
SEXT
FINITE
[50]
SEXT
STATE
[40]
MACHINE
Arith/Logic Operation
AL select
IRO01
A/L RESULT
LOGIC
GateALU
Gate MDR
16
16
MDR
MAR
T16
МЕМORY
x 30 0O
x 30 0 1
X 3:0:0 2
x3003
x3004
x 30 03
x3001
x: 3:0 0 4
X 30 05
X300 6
x3000
x3006
x3002
What is that instruction in binary? (You may use any number of spaces to organize the bits.)
address instruction
х3002
arrow_forward
The numbers from 0-9 and a no characters
is the Basic 1 digit seven segment display
* .can show
False
True
In a (CA) method of 7 segments, the
anodes of all the LED segments are
* "connected to the logic "O
False
True
Some times may run out of pins on your
Arduino board and need to not extend it
* .with shift registers
True
False
arrow_forward
Here is the data flow diagram for a particular instruction. The various values shown indicate the state of the machine after the action of this
instruction.
GatePC
DR 101
GateMARMUX
RO
OnFFFO
OxFFFE
PC X
RI
MARMUX
TRAPVECTOR
R2
OxFFFD
X:0:0
PCMUX
R3
OFFFB
EXT
R4
ODFFA
OFFSET6 OR
R5
OXFFFD
PCOFPSET
PC OR BASER
R6
OcFFFC
(7:0)
R7
OscOFO8
ADDR2MUX
ADDRIMUX
SR2
SRI
010
[100]
SEXT
IMMS
(8:0)
SEXT
SEXT
FINITE
SRZMUX
[50]
SEXT
STATE
[4:0|
2
MACHINE
Arith/Logic Operation
AL select
A/L RESULT
LOGIC
GateALU
Gate MDR
16
MDR
MAR
16
OUTPUT
INPUT
MEMORY
XFE02
XFE06
What is that instruction in binary? (You may use any number of spaces to organize the bits.)
address instruction
x3002
arrow_forward
Choose the right answer :
arrow_forward
please help me on this
arrow_forward
Number 2 please
arrow_forward
Please help me to do this
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you

Electricity for Refrigeration, Heating, and Air C...
Mechanical Engineering
ISBN:9781337399128
Author:Russell E. Smith
Publisher:Cengage Learning
Related Questions
- Question iii please help......arrow_forwardAn 8085 assembly language program is given below. Line 1: MVI A, B5H 2: MVI B, OEH 3: XRI 69H 4: ADD B 5: ANI 9BH 6: CPI 9FH 7: STA 3010H 8: HLT The contents of the accumulator just execution of the ADD instruction in line 4 will bearrow_forwardHere is the data flow diagram for a particular instruction. The various values shown indicate the state of the machine after the action of this instruction. The question mark locates this instruction in memory. GatePC DR 100 GateMARMUX RO X2FFF PC X RI x3006 MARMUX TRAPVECTOR R2 x3005 X0:0 PCMUX R3 x3004 ZEXT R4 x3003 OFPSETŐ OR R5 x3002 PC OR BASER R6 x3001 PCOFFSET (7:0) R7 x3000 ADDR2MUX ADDRIMUX SR2 SRI (100 SEXT IMMS SEXT SRZMUX SEXT FINITE [50] SEXT STATE [40] MACHINE Arith/Logic Operation AL select IRO01 A/L RESULT LOGIC GateALU Gate MDR 16 16 MDR MAR T16 МЕМORY x 30 0O x 30 0 1 X 3:0:0 2 x3003 x3004 x 30 03 x3001 x: 3:0 0 4 X 30 05 X300 6 x3000 x3006 x3002 What is that instruction in binary? (You may use any number of spaces to organize the bits.) address instruction х3002arrow_forward
- The numbers from 0-9 and a no characters is the Basic 1 digit seven segment display * .can show False True In a (CA) method of 7 segments, the anodes of all the LED segments are * "connected to the logic "O False True Some times may run out of pins on your Arduino board and need to not extend it * .with shift registers True Falsearrow_forwardHere is the data flow diagram for a particular instruction. The various values shown indicate the state of the machine after the action of this instruction. GatePC DR 101 GateMARMUX RO OnFFFO OxFFFE PC X RI MARMUX TRAPVECTOR R2 OxFFFD X:0:0 PCMUX R3 OFFFB EXT R4 ODFFA OFFSET6 OR R5 OXFFFD PCOFPSET PC OR BASER R6 OcFFFC (7:0) R7 OscOFO8 ADDR2MUX ADDRIMUX SR2 SRI 010 [100] SEXT IMMS (8:0) SEXT SEXT FINITE SRZMUX [50] SEXT STATE [4:0| 2 MACHINE Arith/Logic Operation AL select A/L RESULT LOGIC GateALU Gate MDR 16 MDR MAR 16 OUTPUT INPUT MEMORY XFE02 XFE06 What is that instruction in binary? (You may use any number of spaces to organize the bits.) address instruction x3002arrow_forwardChoose the right answer :arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Electricity for Refrigeration, Heating, and Air C...Mechanical EngineeringISBN:9781337399128Author:Russell E. SmithPublisher:Cengage Learning

Electricity for Refrigeration, Heating, and Air C...
Mechanical Engineering
ISBN:9781337399128
Author:Russell E. Smith
Publisher:Cengage Learning