retagged by
1,870 views

1 Answer

Best answer
2 2 votes

https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwiS27HUj_DPAhUIq48KHaBEC2sQFggbMAA&url=http%3A%2F%2Fmet.guc.edu.eg%2FDownload.ashx%3Fid%3D15592%26file%3DPractice%2520Assignment%25206%2520Sol_15592.pdf&usg=AFQjCNGI7e5UqZOCFQYGQJsIFQa5MohM6w&bvm=bv.136593572,d.c2I

I/O devices operate asynchronously. So there should be some mechanism for the device to inform the CPU that it is ready to send or accept data. Here, the R flag does the trick. If interrupts are enabled (Interrupt Enable flag is set to 1 i.e., IEN=1), then whenever either input flag (FGI) or output flag (FGO) goes to 1, the R flag also gets set. (R = FGI "OR" FGO) This allows the system to easily check whether any I/O device needs service. If R = 0, the CPU goes through a normal instruction cycle. If R = 1, the CPU branches to the ISR to process an I/O transaction.

For a normal instruction cycle, everthing that happens during an instruction fetch and decode cycle are controlled by timing variables $T_0$, $T_1$ and $T_2$. The following things happen:

$T_0$: Address of the next instruction available in program counter PC is transferred to memory address register MAR.

$T_1$: Contents of MAR is fetched to the instruction register IR.

$T_2$: Instruction is decoded to the data lines $D_{0-7}$ and address loaded to MAR. Somewhere in between $T_1$ and $T_2$, PC is incremented.

R will be set whenever neither $T_0$, $T_1$ or $T_2$ is set, i.e., NOR of $T_0$, $T_1$ and $T_2$. The set input J of the flip flop is fed with ($T_0$ + $T_1$ + $T_2$)' "AND" IEN "AND" (FGI "OR" FGO) to get R=1.

selected by
Position:
Show:

Related questions

4 4 votes
2 2 answers
22.2k
22.2k views
LavTheRawkstar asked Nov 26, 2016
22,200 views
A digital computer has a memory unit of 64K x 16 and a cache memory of 1K words. The cache uses direct mapping with a block size of 4 words.a. How many bits are there in ...
1 1 vote
1 answers 1 answer
23.2k
23.2k views
LavTheRawkstar asked Nov 3, 2016
23,183 views
A digital computer has a common bus system for 16 registers of 32 bits each. The bus is constructedwith multiplexers.[i] How many selection inputs are there in each multi...
2 2 votes
1 1 answer
15.6k
15.6k views
LavTheRawkstar asked Nov 3, 2016
15,643 views
A computer employs RAM chips of 256 $\times$ 8 and ROM chips of 1024 $\times$ 8. The computer system needs 2K bytes of RAM, 4K bytes of ROM and four interface units, each...
1 1 vote
2 2 answers
1.4k
1.4k views
LavTheRawkstar asked Sep 25, 2016
1,378 views
I have only heard about FIRST and FOLLOW .How to Calculate LEAD and LAST and TRAILING ..?