Lab 7
.docx
keyboard_arrow_up
School
Laredo College *
*We aren’t endorsed by this school
Course
1449
Subject
Electrical Engineering
Date
Apr 3, 2024
Type
docx
Pages
4
Uploaded by CaptainRain803
Pedro Leon Lab 7
1. What are the Inputs to the ROM and how many rows must the ROM have?
The inputs generally consist of an address bus and, occasionally, control signals. The ROM's capacity, expressed in terms of the number of rows or entries, is directly tied to the width of the address bus. The address bus width dictates the range of unique addresses that can be employed to access data stored within the ROM.
2. How many outputs and how many columns must the ROM have?
The number of outputs can vary based on the data stored at each address, and the number of columns is determined by the word size of the ROM.
3. How many effective address lines?
The number of effective address lines in a ROM is equivalent to the width of the ROM's address bus.
4. Write the equations you could use if you implemented it with 2 FF and coded the 3 States 00, 01 and 10 for A and B FF.
It will be somethingg like this A_next = ~A & B , B_next = A & ~B
5. Did you provide for Q and Q’ outputs from your FF’s? Why would this be helpful?
Yeah since it can offer flexibility and signal accessibility, and is essential for various logic and control operations within a circuit.
5. Which method required more resources on the FPGA (check the usage report)?
Creating multiple instances of a smaller counter can lead to higher resource consumption because it involves additional overhead related to control logic and the connections required between these counter instances.
6. Which method did you find was easier to do?
Using a counter with a parallel load I believe that it was the most straightforward or easier.
7. Paste in your code.
module ROM(
output [7:0] LED,
output [4:0] Ao,
input [7:0] D,
input [4:0] A,
input Clear,
input Load,
input CLK);
reg [7:0] Store [0:31];
initial begin Store[0]<=8'b00000000;
Store[1]<=8'b00000000;
Store[2]<=8'b00000000;
Store[3]<=8'b00000000;
Store[4]<=8'b00000000;
Store[5]<=8'b00000000;
Store[6]<=8'b00000000;
Store[7]<=8'b00000000;
Store[8]<=8'b00000000;
Store[9]<=8'b00000000;
Store[10]<=8'b00000000;
Store[11]<=8'b00000000;
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
New Solution
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
the diagram on the right is for a register bank circuit that contain 8 registers. Each register is 16-bit. The register can read or write to one register at a time using address bus. Design the circuit and specify the width of EVERY bus.
arrow_forward
c) Given a 32K x 8 RAM chips. Compute:
i) the number of chips needed to build a 128K byte memory using 32K x 8 RAM.
ii) the number of address lines that must be used to access the memory.
iii) the number of lines connected to the address inputs of each chip, the number of lines
to be used for chip select inputs and type of decoder to be used.
iv) Determine the range of addresses for the 128K byte memory.
arrow_forward
Q. To interface memory with the
microprocessor, connect register the lines of
the address bus must be added to address
lines of the chip.
A. single
B. memory
C. multiple
D. triple
arrow_forward
What is the maximum memory size that can be connected to a processor with a lower order address bus of 24 lines and a higher order address bus of 4 lines?
a.
256GB
b.
16MB
c.
256MB
d.
16GB
arrow_forward
Assume that memory location $c100 holds a data byte =$37, [ACCA]= $B8 and [ACCB]=$FE. For each of the following instructions determine the
resultant content of ACCA or ACCB.
(a) ANDA $C100
(b) ANDA #$05
ORAB #$EE
(c)
(d) CLR B
(e) NEGA
(f)
DECB
(g) ASLA
(h) LSRB
(i)
EORA #$E4
(G) ROR A
arrow_forward
3- what is the advantages of memory segment.
4- state the purposes of segment registér.
5- what is the different between general purpose register
and segment register and flag register.
arrow_forward
Choose the right answer :
arrow_forward
part d, e, f
arrow_forward
- The stack memory is addressed by a combination of the
plus
offset.
The PUSH and POP instructions always transfer
between
segment
-bit number
the stack and a register or memory location in the 8086 microprocessors.
For string instructions, DI always addresses data in the
segment.
The 8086 LOOP instruction decrements register
for a 0 to decide if a jump occurs
and tests it
arrow_forward
8085 Microprocessor
arrow_forward
Q3/(A) False OR True
1- A0-0 and BHE-1 are used as low bank-select signal:
2-AX is 2234 H after executing the following instruction: AAS. If AX-2234H.
3-IP register holds the offset address of the next instruction to be executed.
4- The XLAT instruction in 8086 assembly language is used to perform arithmetic
operations between two memory operands.
5- Bus interface unit is responsible form
arrow_forward
computer architecture and organization
arrow_forward
Describe any possible methods through which you can implement a RAM memory using logic gates?
arrow_forward
Memory interfaced to 8086 Microprocessor 16 data bus should be arranged in--------
a.One bank.
b.Two bank
c.Three bank.
d.Four bank
JC mean jump to specific address when the CF in the flag bit is =
a. zero
b.two
c.one
d.three
Overflow flag bit indicates overflow for
a.Signed integer only.
c. Signed and Unsigned integer only.
The 8086 architecture consists
pipeline processing.
b. Two
b. Three
arithmetic operations.
b. Unsigned integer only.
d. Floating point.
unit(s) work in parallel is called
c.Four
d.One
arrow_forward
3. Suppose r0=0x20000000 and r1=0x12345678. All bytes in memory are initialized to 0x00.
Suppose the following assembly program has run successfully (the three instructions will be
executed in the given order). Draw a table to show the memory value if the processor uses little
endian.
STR r1, [r0], #4
STR r1, [r0,#4]!
STR r1, [r0, # 4]
Address
0x20000010
0x2000000f
0x2000000e
0x2000000d
0x2000000c
0x2000000b
0x2000000a
0x20000009
0x20000008
0x20000007
0x20000006
0x20000005
0x20000004
0x20000003
0x20000002
0x20000001
0x20000000
Data
arrow_forward
THE FOLLOWING QUESTION CONTAINS ALL THE REQUIREMENTS NEEDED.
arrow_forward
b) The number of addressed words in a ROM is determined from some fact. 92 X
8 ROM architecture support those facts? Whát will be the capacity?
arrow_forward
Choose the right answer :
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
6- Set BX to 4567H, CX to FEDCH and SP to A59FH, then run the instructions:
PUSH BX
PUSH CX
a. What is the new value of SP ?
b. Display the memory locations where you pushed the values of BX and CX in
the stack.
arrow_forward
What is the maximum memory size that can be
connected to a processor with a lower order
address bus of 24 lines and a higher order address
bus of 4 lines?
a. 256GB
b. 16MB
c. 256MB
d. 16GB
Note: Please do not handwritten.
arrow_forward
An 8051 subroutine is shown below:
SUB:
RO, #20H
@RO , #0
MOV
LOOP: MOV
INC
RO
CJNE RO, #80H, LOOP
RET
a.
What does this subroutine do?
b. In how many machine cycles does each instruction execute?
How many bytes long is each instruction?
C.
d.
Convert the subroutine to machine language.
e.
How long does this' subroutine take to execute? (Assume 12 M
arrow_forward
Consider the following external memory connections to a microcontroller which is similar
to that of a microprocessor. What is the size of the memory?
Microcontroller
RAM/ROM
3
O A. none of the choices
O B. Could be 4 x 3 bits or 16 x 3 bits
O C. Could be 4 x 16 bits or 4 x 3 bits
O D. 4 x 2 bits
O E. 8x3 bits
2
arrow_forward
i need the answer quickly
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Related Questions
- New Solutionarrow_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_forwardthe diagram on the right is for a register bank circuit that contain 8 registers. Each register is 16-bit. The register can read or write to one register at a time using address bus. Design the circuit and specify the width of EVERY bus.arrow_forward
- c) Given a 32K x 8 RAM chips. Compute: i) the number of chips needed to build a 128K byte memory using 32K x 8 RAM. ii) the number of address lines that must be used to access the memory. iii) the number of lines connected to the address inputs of each chip, the number of lines to be used for chip select inputs and type of decoder to be used. iv) Determine the range of addresses for the 128K byte memory.arrow_forwardQ. To interface memory with the microprocessor, connect register the lines of the address bus must be added to address lines of the chip. A. single B. memory C. multiple D. triplearrow_forwardWhat is the maximum memory size that can be connected to a processor with a lower order address bus of 24 lines and a higher order address bus of 4 lines? a. 256GB b. 16MB c. 256MB d. 16GBarrow_forward
- Assume that memory location $c100 holds a data byte =$37, [ACCA]= $B8 and [ACCB]=$FE. For each of the following instructions determine the resultant content of ACCA or ACCB. (a) ANDA $C100 (b) ANDA #$05 ORAB #$EE (c) (d) CLR B (e) NEGA (f) DECB (g) ASLA (h) LSRB (i) EORA #$E4 (G) ROR Aarrow_forward3- what is the advantages of memory segment. 4- state the purposes of segment registér. 5- what is the different between general purpose register and segment register and flag register.arrow_forwardChoose the right answer :arrow_forward
- part d, e, farrow_forward- The stack memory is addressed by a combination of the plus offset. The PUSH and POP instructions always transfer between segment -bit number the stack and a register or memory location in the 8086 microprocessors. For string instructions, DI always addresses data in the segment. The 8086 LOOP instruction decrements register for a 0 to decide if a jump occurs and tests itarrow_forward8085 Microprocessorarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you