Quetion 7:a. Consider a 3 GHz (gigahertz) processor with a three-stage pipeline and 100 latencies t1,t2, and t3 such that t1=t3=3t2/4=2t3. If the longest pinnan into two pipeline stages of equal latency, Find the new frequency in GHz, ignoring delays in the pipeline registers. b. A particular system is controlled by a an operator through commands entered from a keyboard. The average number of commands entered in an 6-hour interval is 80. Suppose the processor scans the keyboard every 100 ms. how many times will the keyboard be checked in an 6-hour period? C. Let DS=3080H, CS=0000H, SI=0008H and IP=00FFH.What the physical address of the instruction and data that is fetched? d. How many Memory chips of size 512K X 8 are needed. to develop a a memory of si size 8M X 32 Show the address range .
Answer:
Part (a): New Frequency of the Processor
Given:
- Processor frequency: 3 GHz
- Three-stage pipeline with latencies
Let's first find the relationship between the latencies :
From :
From :
Using :
Now, since , let:
and
The latencies are , , .
Now, the longest pipeline stage:
If we split the longest stage (which is ) into two stages of equal latency, each stage would have:
The pipeline stages now are:
Since all pipeline stages are now , the new pipeline latency is .
The original processor frequency is 3 GHz, corresponding to a time period seconds.
Since the original longest stage sets the time period:
With the new pipeline stages, each stage is now :
The new frequency:
So, the new frequency is 6 GHz.
Part (b): Keyboard Scan Frequency
Given:
- Average number of commands entered in 6 hours: 80
- Processor scans the keyboard every 100 ms
Number of scans per second:
Total seconds in 6 hours:
Total scans in 6 hours:
So, the keyboard will be checked 216,000 times in a 6-hour period.
Part (c): Physical Address Calculation
Given:
- Data Segment (DS) = 3080H
- Code Segment (CS) = 0000H
- Source Index (SI) = 0008H
- Instruction Pointer (IP) = 00FFH
Physical address of the instruction:
Physical address of the data:
So, the physical address of the instruction is 00FFH and the physical address of the data is 30808H.
Part (d): Number of Memory Chips Needed
Given:
- Memory chip size = 512K x 8
- Desired memory size = 8M x 32
Convert sizes to bytes:
- Memory chip size: bits = bits = bits
- Desired memory size: bits = bits = bits
Number of chips needed:
- Each chip provides 512K x 8 bits.
- Total bits per chip: = 4,194,304 bits
- Total number of chips required:
Since each chip provides an 8-bit width and we need a 32-bit width, we need 4 chips for each bit of the desired 32-bit memory:
So, we need 64 chips.
Address Range:
- Each chip is 512K (524288 locations) and with 8 chips being used for each byte, the address range would be:
Thus, for a memory of size , the address range for each 32-bit wide section would be:
Comments
Post a Comment