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 on coursehero.com
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
Related Questions
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
logic circuit
just draw the graph
please as soon as possible
arrow_forward
Task 08
Perform the following arithmetic operations
1. 236DF * AF
2. 8A32F4D5/ C9A5
3. CA92 * BAF9
4. C2A2 * ABCD / BED
Task 09 (Home Task)
Write two examples for each combination of registers possible for the 'mov' instruction.
Hint: See the table above to see all the possible combinations.
Task 10 (Home Task)
Write two examples for each combination of registers possible for the 'add' and 'sub'
instructions.
Hint: See the table above to see all the possible combinations.
Task 11 (Home Task)
Perform the following arithmetic operation: (1+ 2) * (3 – 1) /5 +3 + 2- (1 * 2)
arrow_forward
RESEARCH
Draw at least 4 typrs of IC.
Discuss the different IC packages.
How to identify the pin numbering of IC?
Proper handling of IC.
What is seven-segment display?
How to produce the required decimal digit from 0 through 9 using seven-segment display?
Uses of seven-segment display.
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
Question 1:
Use Indirect addressing to write a PIC24 assembly code that complements and
adds 5 and multiply by 2 to 1024 data bytes into the memory at starting address
Ox1000. The original data are stored in the memory starting from address 0x800.
it is an electrical engineering question . this is the full
information about the question!
arrow_forward
Which of the following is the type of function unit digit and data functions written mathematically?
arrow_forward
What is the purpose of the break statement?
Force the termination of a program.
When a break statement is encountered in a loop, the loop terminates immediately
and the execution resumes the next statement following the loop.
To produce the systematic code, and the break statement does not affecting the
program.
To make the code easy to understand.
arrow_forward
Consider the following assembly program
MOV CX, 1100H
DLY: SUBS CX, CX, #1
NOP
BNE DLY
NXT: ---
(a) How many times does the BNE DLY instruction get executed?
(b) Change the first line of the program so that BNE DLY is executed 34 times
(c) Change the second line of the program so that BNE DLY is executed 34 times,
while the fist line stays unchanged (MOV CX, 1100H)
arrow_forward
ehcu.org/pluginfile.
هل ترید اس
لم يقم إيقاف
+
100%
10 / 11
Questions:-
1- Write a program in assembly language to perform the following logic
ci
CI
DL
[5100].
2- How we can perform the NEG and NOT instructions by using different
instructions.
3- Write the following program by using different instruction or instructions
for each instruction on the
program.
MOV AL , 00
MOV BX , FFFF
XOR CL , FF
NEG BYTE PTR [DI]
AND CX ,
161756649_26189.jpg O
12.jpg
LG
arrow_forward
RESEARCH
What is an INTEGRATED CIRCUIT (IC)?
Uses or applications of Integrated Circuit.
Types of Integrated Circuit.
Draw at least 4 typrs of IC.
Discuss the different IC packages.
How to identify the pin numbering of IC?
Proper handling of IC.
What is seven-segment display?
How to produce the required decimal digit from 0 through 9 using seven-segment display?
Uses of seven-segment display.
arrow_forward
1 _ Compare between the status and control flags? Explain the status flags for the operation AEH+37H ? 2)
2 _What are the purposes of both segmentation and physical generation? Explain with draw and numerical example?
arrow_forward
Name the addressing mode for the following instruction MOV AL, [BX+SI] *
Your answer
arrow_forward
Write down the possible representation level from high level language to logical gates exists in machine architecture. How abstraction is implemented in ISA. In computer organization, how controls are different from data paths.
arrow_forward
Would like to know the work behind the
highlighted answers
Q2: Consider a line of code- LDD $C100. Before execution of this line of code, the memory locations $C100,
$c101, $C102, and $C103 was holding $33, $4A, $5A, and $6A, respectively. After execution of the code what would
be the content of ACCA and ACCB:
I $33 and $5A
O $5A and 6A
O $33 and $4A
O $4A and 5A
Q3: Consider a line of code- ADDD $C100. Before execution of this line of code the memory locations $C100,
$C101, $C102, and $C103 was holding $33, $4A, $5A, and $6A, respectively and ACCA and ACCB were holding $00
and $11, respectively. After execution of the code what would be the content of ACCA and ACCB:
O $33 and $5B
O $33 and 5A
$5A and $6A
O $5A and $6B
arrow_forward
What is the result of the following FAL instruction?
Input
L1
Loo
a.
O b.
O C.
A
HE
e.
Ladder logic program
FAL
FILE ARITH/LOGICAL
Control
Length
Position
Mode
Destination
Expression
None of the choices
(EN)
(DN)
Incremental (ER)
#N7:101
R6:2
6
0
0
N7:100
On successive transitions, data will be copied from N7:100 into the next position in the file #N7:101 until N7:106 is reached
Once input A becomes true, data will be copied #N7:101 into the next address of N7:100
O d.
On successive transitions, data will be copied #N7:101 into the next address of N7:100
Once input A becomes true, data will be copied six times from #N7:100 into the word #N7:101
arrow_forward
A. Use Microsoft Visual Basic to design a form contain two text boxes and one button
called "add", and after click on "add", we get the summation of the numbers
between (10 -30), and display the result on text box1 and get the summation of
the numbers between (60-80) and display the result on text box2.
arrow_forward
Design a code converter that converts a decimal digit from
BCD to excess-3 code, the input variables are organized as
(A BC D) respectively with A is the MSB, the output
variables are organized as (W X Y Z) respectively with W is
the MSB, put the invalid decimal numbers as don't care.
X= BCD'+B'D+B'C
X= BC'D'+B'D+BC
X= BC'D'+B'D+B'C
X= BC'D'+BD+B'C
arrow_forward
Question Vvv
For a microprocessor similar to ATmega328p an 8 bit ADC uses a VREF = 3.3 V. When an analog read is executed the return value is 182.
What Voltage is present on the input?
Enter the value in the box provided in mV. Round to the nearest mV. No units are required
.
.Full explain this question and text typing work only We should answer our question within 2 hours takes more time then we will reduce Rating Dont ignore this line ..
arrow_forward
Align Text
I U S
AV
Aa
T T4
Convert to SmartArt-
Font
Paragraph
Micro
o operation
EX: The memory unit of a computer has 256K words of 32 bits
each. The computer has an instruction format with common
fields. It has 60 processor registers. Specify the instruction
format and the No. of bits in each field if the instruction is in one
memory word.
Solu:
arrow_forward
A state machine can detect when it has received the serial input sequence 011. The input of the machine is 0 or 1.a. Draw state diagramb. Make table of state transitionc. Make the Boolean equation and simplifyd. Draw the circuit of FSM
arrow_forward
Write program to load the content of memory location 0x0700 into register R3 then set D6,D7 and complement D4,D5 for date in R3 then store the result in memory
location 0x0800 .
arrow_forward
a) In Assembly programming what is the functionality of the following instructions
DECFSZ
ВTESC
MOVLW
MOVWF
goto
b) A piece of code is required for a time critical activity. Should this be written in assembly
language or C? Explain your answer.
5 Explain the difference between the (For) and (While) loops. Highlight the main
components of the (For) loop that are required for its execution.
Consider the following C program designed to run on a PIC 18F4455.
int main(void)
2 {
1
double voltage;
double current;
double milliwatts;
double energyUsed;
double cummulativeEnergy = 0;
while (1)
{
voltage=analogRead (VOLTAGE_PIN)*voltageScaleFactor;
current=analogRead (CURRENT_PIN)*currentScaleFactor;
milliwatts=voltage*current;
energyUsed=milliWatts*0.5;
cummulativeEnergy=cummulativeEnergy+energyUsed;
10
11
12
13
14
15
_delay_ms (500);
16
}
17
a) What is the role of the symbols "{" and "}"
b) The code here is indented. Explain the importance of indentation
N m 4 n Or 00 o A m
arrow_forward
What are the two primary categories of output circuits that are used in TTL?
arrow_forward
a. (697)10 into Octal and Hexa decimal
b. (2D9)16 into Decimal and Octal
arrow_forward
give the final result of operation that appears onto OUT-Reg. after convert the
whole program below into Op-code?
Address
OH
1H
3H
4H
5H
Mnemonic
LDA AH
US
Address
6H
7H
8H
9H
AH
BH
CH
DH
EH
FH
DATA
FFH
FFH
FFH
01H
OEH
01H
OFH
FFH
FFH
FFH
arrow_forward
QUESTION 1
You have used DEBUG to unassemble the following instructions.
-U 0100 0108
1369:0100 B84365 MOV AX, 6543
1369:0103 BB3394 MOV BX, 9433
1369:0106 F7E3 DEC BX
1369:0108 CD21 INT 21
The last byte of the instruction loaded at address 0106 is stored in address.
0100
0106
0107
0108
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
- 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 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_forwardThe 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_forward
- logic circuit just draw the graph please as soon as possiblearrow_forwardTask 08 Perform the following arithmetic operations 1. 236DF * AF 2. 8A32F4D5/ C9A5 3. CA92 * BAF9 4. C2A2 * ABCD / BED Task 09 (Home Task) Write two examples for each combination of registers possible for the 'mov' instruction. Hint: See the table above to see all the possible combinations. Task 10 (Home Task) Write two examples for each combination of registers possible for the 'add' and 'sub' instructions. Hint: See the table above to see all the possible combinations. Task 11 (Home Task) Perform the following arithmetic operation: (1+ 2) * (3 – 1) /5 +3 + 2- (1 * 2)arrow_forwardRESEARCH Draw at least 4 typrs of IC. Discuss the different IC packages. How to identify the pin numbering of IC? Proper handling of IC. What is seven-segment display? How to produce the required decimal digit from 0 through 9 using seven-segment display? Uses of seven-segment display.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 x3002arrow_forwardQuestion 1: Use Indirect addressing to write a PIC24 assembly code that complements and adds 5 and multiply by 2 to 1024 data bytes into the memory at starting address Ox1000. The original data are stored in the memory starting from address 0x800. it is an electrical engineering question . this is the full information about the question!arrow_forwardWhich of the following is the type of function unit digit and data functions written mathematically?arrow_forward
- What is the purpose of the break statement? Force the termination of a program. When a break statement is encountered in a loop, the loop terminates immediately and the execution resumes the next statement following the loop. To produce the systematic code, and the break statement does not affecting the program. To make the code easy to understand.arrow_forwardConsider the following assembly program MOV CX, 1100H DLY: SUBS CX, CX, #1 NOP BNE DLY NXT: --- (a) How many times does the BNE DLY instruction get executed? (b) Change the first line of the program so that BNE DLY is executed 34 times (c) Change the second line of the program so that BNE DLY is executed 34 times, while the fist line stays unchanged (MOV CX, 1100H)arrow_forwardehcu.org/pluginfile. هل ترید اس لم يقم إيقاف + 100% 10 / 11 Questions:- 1- Write a program in assembly language to perform the following logic ci CI DL [5100]. 2- How we can perform the NEG and NOT instructions by using different instructions. 3- Write the following program by using different instruction or instructions for each instruction on the program. MOV AL , 00 MOV BX , FFFF XOR CL , FF NEG BYTE PTR [DI] AND CX , 161756649_26189.jpg O 12.jpg LGarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
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