Computer Architecture related questions


by atlbraves49
Tags: architecture
atlbraves49
atlbraves49 is offline
#1
Feb24-09, 10:55 AM
P: 81
I have a set of questions that wont be graded, but that my prof. wants us to look into/review. I've figured most of them out but the following have given me some issues. Any help would be appreciated. I dont mind getting the answers but a brief explanation would be best. Thanks!

1) The AVR RISC architecture is an 8bit architec. but has a 16bit fixed length instruction word. If the latter is transferred to the Instruction Register via a CPU internal bus, how many program memory accesses are necessary to retrieve a full instruction word?
(3, 4, 1, or 2)



2) If I/O peripheral devices are memory mapped, this means that:
a) I/O is performed using the same instruction as for reading or writing to the data memory
b) The instruction set implements two special instructions: IN and OUT.
c) I/O peripherals cannot be memory mapped because the architecture is Harvard
d) Peripherals have addresses in the program memory space



3) The architecture has a build in stack pointer. If one needs Two stacks, the second one could be implemented:
a) using one of the registers in the Data-Bank to point to the TOS of the second stack.
b) using the same stack pointer for both stacks
c)the second stack cannot be implemented
d) Using the program counter to point to the TOS of the second stack



4) If an architecture lacks an integer-multiply instruction, this could be implemented using a sequence of:
a) Shift and subtract
b) Shift and add
c) shift and rotate
d) increment and accumulate instructions
Phys.Org News Partner Science news on Phys.org
Better thermal-imaging lens from waste sulfur
Hackathon team's GoogolPlex gives Siri extra powers
Bright points in Sun's atmosphere mark patterns deep in its interior
wildman
wildman is offline
#2
Feb24-09, 09:05 PM
P: 252
give us the answers you think are correct and why and we will critique them....
atlbraves49
atlbraves49 is offline
#3
Feb24-09, 10:20 PM
P: 81
thats the thing, im comfortable with the rest of the questions but these have me completely lost. Im not sure which are correct, thats why im looking for some direction.

The only one i think i might know is #4.. i would say b) shift and add because that seems like a typical way to multiply in architecture if you dont have a multiply function.

atlbraves49
atlbraves49 is offline
#4
Feb25-09, 12:54 PM
P: 81

Computer Architecture related questions


bump
atlbraves49
atlbraves49 is offline
#5
Feb25-09, 11:35 PM
P: 81
still need help with these
MATLABdude
MATLABdude is offline
#6
Feb26-09, 05:22 AM
Sci Advisor
P: 1,724
You should review your course notes and/or read the textbook. In lieu of that, some guiding pointers (hardy har har):

1) HINT: How wide is your data bus? If you did have to do multiple transfers, would you need to transfer anything on the data bus in between transfers? What's the influence on the address bus?

2) Memory-mapped I/O:
http://en.wikipedia.org/wiki/Memory-mapped_I/O

3) Stack structure:
http://en.wikipedia.org/wiki/Stack_(...ure_of_a_stack

4) What happens to a binary number when you multiply by 2? 2^2=4? 2^3=8? How would you break down a number into powers of 2? Is this easier in binary?


Register to reply

Related Discussions
Computer architecture problem solving. Engineering, Comp Sci, & Technology Homework 5
Computer Architecture Practice Final Questions Introductory Physics Homework 9
Question Computer Related Introductory Physics Homework 5
Computer Architecture Help Computing & Technology 4