Ask your own question, for FREE!
Computer Science 17 Online
OpenStudy (sidsiddhartha):

how to determine number of machine cycles for particular instructions in a microprocessor?

OpenStudy (sidsiddhartha):

like for a instruction LXI (load registor pair with 16 bit immediate data) has 3 macine cycles:and they are =1 opcode fetch and 2 memory read i just want to know how i can say that it will have 1 opcode fetch and 2 mem.read or something else

OpenStudy (sidsiddhartha):

@e.mccormick could use a little insight of yours :)

OpenStudy (e.mccormick):

I never did Machine Organization, but I know it is partially processor dependent. Which instruction set you use determines how much each instruction costs. This is the whole CISC vs RISC instruction set argument. So I did a little searching and found some info on that topic. Hopefully it will get you started in the correct direction. http://en.wikipedia.org/wiki/Instruction_set

OpenStudy (sidsiddhartha):

ok thanks i'll check u out :) but do u know someone in OS who can help me with this ?

OpenStudy (sidsiddhartha):

@wio @ganeshie8

ganeshie8 (ganeshie8):

your databus is 8bit ?

OpenStudy (sidsiddhartha):

yeah i'm using 8085 its data bus is 8 bit

ganeshie8 (ganeshie8):

then its simple

OpenStudy (sidsiddhartha):

ok :)

ganeshie8 (ganeshie8):

16bit address and 8bit data if i remember correctly right ?

OpenStudy (sidsiddhartha):

yes perfect :)

ganeshie8 (ganeshie8):

Ok, so you want to load 16bit data from memory into internal registers

OpenStudy (sidsiddhartha):

yes

ganeshie8 (ganeshie8):

opcode fetch is same for every instruction

OpenStudy (sidsiddhartha):

yes i know its same ok :)

ganeshie8 (ganeshie8):

the next two memory read operations are part of the execution phase

ganeshie8 (ganeshie8):

you need two memory reads because your databus is 8bit and you want to load 16bit data

OpenStudy (sidsiddhartha):

yes!! it was that easy ?

ganeshie8 (ganeshie8):

basically your memory is also organized in 8bits itself. you just save the 16bit data in two continuous 8bit locations

OpenStudy (sidsiddhartha):

yeah clear now

OpenStudy (sidsiddhartha):

i can draw the timing diagram now :)

ganeshie8 (ganeshie8):

|dw:1416854788217:dw|

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!