GATE 2010
82 questions
MCQ 821-mark 39 · 2-mark 43
Questions 21–25 of 82
In the sequential circuit shown below, if the initial value of the output is 00, what are the next four values of ?
Answer: (A)
Both T inputs are 1. FF0 toggles on every clock. FF1 gets its clock from Q0, so it toggles only when Q0 goes from 0 1.
- Start at 00 Q0 becomes 1 (it rises, so Q1 toggles) 11
- Next Q0 becomes 0 10
- Next Q0 becomes 1 (Q1 toggles) 01
- Next 00
Answer: 11, 10, 01, 00
- Start at 00 Q0 becomes 1 (it rises, so Q1 toggles) 11
- Next Q0 becomes 0 10
- Next Q0 becomes 1 (Q1 toggles) 01
- Next 00
Answer: 11, 10, 01, 00
P is a 16-bit signed integer. The 2's complement representation of P is . The 2's complement representation of 8*P is
Answer: (A)
To multiply by 8, shift the bits left by 3 places.
F87B = 1111 1000 0111 1011 shift left by 3 bits 1100 0011 1101 1000 = C3D8
(Here P = 1925 and 8P = 15400, so the result still fits in 16 bits.)
Answer:
F87B = 1111 1000 0111 1011 shift left by 3 bits 1100 0011 1101 1000 = C3D8
(Here P = 1925 and 8P = 15400, so the result still fits in 16 bits.)
Answer:
A main memory unit with a capacity of 4 megabytes is built using 1Mx1-bit DRAM chips. Each DRAM chip has 1K rows of cells with 1K cells in each row. The time taken for a single refresh operation is 100 nanoseconds. The time required to perform one refresh operation on all the cells in the memory unit is
Answer: (B)
Memory size = 4 MB = bits. Each chip holds bit = bits, so the unit needs chips.
One refresh operation refreshes one row of cells. The usual assumption is that the same row is refreshed in all 32 chips at the same time, so the number of chips does not add to the time. Each chip has 1K = rows, so refreshing every cell once takes
ns
Answer: (B)
One refresh operation refreshes one row of cells. The usual assumption is that the same row is refreshed in all 32 chips at the same time, so the number of chips does not add to the time. Each chip has 1K = rows, so refreshing every cell once takes
ns
Answer: (B)
A computer system has an L1 cache, an L2 cache, and a main memory unit connected as shown below. The block size in L1 cache is 4 words. The block size in L2 cache is 16 words. The memory access times are 2 nanoseconds. 20 nanoseconds and 200 nanoseconds for L1 cache, L2 cache and main memory unit respectively.
When there is a miss in both L1 cache and L2 cache, first a block is transferred from main memory to L2 cache, and then a block is transferred from L2 cache to L1 cache. What is the total time taken for these transfers?
When there is a miss in both L1 cache and L2 cache, first a block is transferred from main memory to L2 cache, and then a block is transferred from L2 cache to L1 cache. What is the total time taken for these transfers?
Answer: (C)
Each transfer reads the data from the source and writes it into the destination, so its time is the source access time plus the destination access time. The data bus carries 4 words at a time.
Main memory L2: the L2 block has 16 words, so there are transfers. Each takes ns (read main memory, write L2). Total ns.
L2 L1: the L1 block has 4 words, so there is 1 transfer. It takes ns (read L2, write L1).
Total time ns. Counting only the source access times would leave out the time to write into the destination.
Answer: (C)
Main memory L2: the L2 block has 16 words, so there are transfers. Each takes ns (read main memory, write L2). Total ns.
L2 L1: the L1 block has 4 words, so there is 1 transfer. It takes ns (read L2, write L1).
Total time ns. Counting only the source access times would leave out the time to write into the destination.
Answer: (C)
A computer system has an L1 cache, an L2 cache, and a main memory unit connected as shown below. The block size in L1 cache is 4 words. The block size in L2 cache is 16 words. The memory access times are 2 nanoseconds. 20 nanoseconds and 200 nanoseconds for L1 cache, L2 cache and main memory unit respectively.
When there is a miss in L1 cache and a hit in L2 cache, a block is transferred from L2 cache to L1 cache. What is the time taken for this transfer?
When there is a miss in L1 cache and a hit in L2 cache, a block is transferred from L2 cache to L1 cache. What is the time taken for this transfer?
Answer: (C)
The L1 block has 4 words, which is the same as the bus width. So the block moves in a single transfer. Time taken: reading from L2 takes 20 ns, and writing into L1 takes 2 ns. Total = 22 ns.
Answer: 22 nanoseconds
Answer: 22 nanoseconds