<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
<HTML>
|
<HTML>
|
<HEAD>
|
<HEAD>
|
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 9.0.2.0 for Windows">
|
<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 9.0.2.0 for Windows">
|
<META http-equiv="Content-Style-Type" content="text/css">
|
<META http-equiv="Content-Style-Type" content="text/css">
|
<TITLE></TITLE>
|
<TITLE></TITLE>
|
</HEAD>
|
</HEAD>
|
<BODY>
|
<BODY>
|
<P><B>5 Analysis of Design</B> <BR>
|
<P><B>5 Analysis of Design</B> <BR>
|
<B>5. 1 Problem</B><BR>
|
<B>5. 1 Problem</B><BR>
|
Here is a section of source code analysis. An example analysis was performed
|
Here is a section of source code analysis. An example analysis was performed
|
using trace mode-2 in Veritak Simulator. (Off course, you can use
|
using trace mode-2 in Veritak Simulator. (Off course, you can use
|
another tool).<BR>
|
another tool).<BR>
|
</P>
|
</P>
|
<P>Load Veritak Project "altera_rtl_trace_count.vtakprj"<BR>
|
<P>Load Veritak Project "altera_rtl_trace_count.vtakprj"<BR>
|
Let's look at the instruction "ori $sp,$sp,#$3380". Micro operation
|
Let's look at the instruction "ori $sp,$sp,#$3380". Micro operation
|
is<BR>
|
is<BR>
|
</P>
|
</P>
|
<TABLE border="1">
|
<TABLE border="1">
|
<TBODY>
|
<TBODY>
|
<TR>
|
<TR>
|
<TH bgcolor="#97ffff">$sp | #$3380 => $sp</TH>
|
<TH bgcolor="#97ffff">$sp | #$3380 => $sp</TH>
|
</TR>
|
</TR>
|
</TBODY>
|
</TBODY>
|
</TABLE>
|
</TABLE>
|
<P>It is noted that Register File $sp has not been written yet even at Stage5.<BR>
|
<P>It is noted that Register File $sp has not been written yet even at Stage5.<BR>
|
What will be happened if $sp is referenced in any stage of stage2-stage5
|
What will be happened if $sp is referenced in any stage of stage2-stage5
|
? This is called RAW (Read After Write) Data Hazard. <BR>
|
? This is called RAW (Read After Write) Data Hazard. <BR>
|
<B>Forwarding mechanism </B>overcomes this problem.</P>
|
<B>Forwarding mechanism </B>overcomes this problem.</P>
|
<TABLE border="1">
|
<TABLE border="1">
|
<TBODY>
|
<TBODY>
|
<TR>
|
<TR>
|
<TH valign="middle" align="center" height="32">Time Slot</TH>
|
<TH valign="middle" align="center" height="32">Time Slot</TH>
|
<TH valign="middle" align="center" height="32">Stage1</TH>
|
<TH valign="middle" align="center" height="32">Stage1</TH>
|
<TH valign="middle" align="center" height="32">Stage2</TH>
|
<TH valign="middle" align="center" height="32">Stage2</TH>
|
<TH valign="middle" align="center" height="32" width="240">Stage3</TH>
|
<TH valign="middle" align="center" height="32" width="240">Stage3</TH>
|
<TH valign="middle" align="center" height="32" width="46">Stage4</TH>
|
<TH valign="middle" align="center" height="32" width="46">Stage4</TH>
|
<TH valign="middle" align="center" width="185" height="32">Stage5</TH>
|
<TH valign="middle" align="center" width="185" height="32">Stage5</TH>
|
</TR>
|
</TR>
|
<TR>
|
<TR>
|
<TD valign="middle" align="center" height="48"> </TD>
|
<TD valign="middle" align="center" height="48"> </TD>
|
<TD valign="middle" align="center" height="48">Set Register File Address</TD>
|
<TD valign="middle" align="center" height="48">Set Register File Address</TD>
|
<TD valign="middle" align="center" height="48">Read Register File<BR>
|
<TD valign="middle" align="center" height="48">Read Register File<BR>
|
ALU_LEFT/Right Latch</TD>
|
ALU_LEFT/Right Latch</TD>
|
<TD valign="middle" align="center" height="48" width="240">Mem Write<BR>
|
<TD valign="middle" align="center" height="48" width="240">Mem Write<BR>
|
AReg<=ALU</TD>
|
AReg<=ALU</TD>
|
<TD valign="middle" align="center" height="48" width="46">Mem Read<BR>
|
<TD valign="middle" align="center" height="48" width="46">Mem Read<BR>
|
NReg<=AReg</TD>
|
NReg<=AReg</TD>
|
<TD valign="middle" align="center" width="185" height="48">Write Register File<BR>
|
<TD valign="middle" align="center" width="185" height="48">Write Register File<BR>
|
RReg<=NReg</TD>
|
RReg<=NReg</TD>
|
</TR>
|
</TR>
|
<TR>
|
<TR>
|
<TD valign="middle" align="center">1</TD>
|
<TD valign="middle" align="center">1</TD>
|
<TD valign="middle" align="center" bgcolor="#ffff00">Fetch & Decode<BR>
|
<TD valign="middle" align="center" bgcolor="#ffff00">Fetch & Decode<BR>
|
ori $sp,$sp,#$3380</TD>
|
ori $sp,$sp,#$3380</TD>
|
<TD valign="middle" align="center"></TD>
|
<TD valign="middle" align="center"></TD>
|
<TD valign="middle" align="center" width="240"></TD>
|
<TD valign="middle" align="center" width="240"></TD>
|
<TD valign="middle" align="center" width="46"></TD>
|
<TD valign="middle" align="center" width="46"></TD>
|
<TD valign="middle" align="center" width="185"></TD>
|
<TD valign="middle" align="center" width="185"></TD>
|
</TR>
|
</TR>
|
<TR>
|
<TR>
|
<TD valign="middle" align="center">2</TD>
|
<TD valign="middle" align="center">2</TD>
|
<TD valign="middle" align="center" bgcolor="#00cccc">Fetch & Decode<BR>
|
<TD valign="middle" align="center" bgcolor="#00cccc">Fetch & Decode<BR>
|
sw $z0,0($a0)</TD>
|
sw $z0,0($a0)</TD>
|
<TD valign="middle" align="center" bgcolor="#ffff00">ReadRegisterFile<BR>
|
<TD valign="middle" align="center" bgcolor="#ffff00">ReadRegisterFile<BR>
|
ALU_LEFT<=0<BR>
|
ALU_LEFT<=0<BR>
|
ALU_RIGHT<=#$3380</TD>
|
ALU_RIGHT<=#$3380</TD>
|
<TD valign="middle" align="center" width="240"></TD>
|
<TD valign="middle" align="center" width="240"></TD>
|
<TD valign="middle" align="center" width="46"></TD>
|
<TD valign="middle" align="center" width="46"></TD>
|
<TD valign="middle" align="center" width="185"></TD>
|
<TD valign="middle" align="center" width="185"></TD>
|
</TR>
|
</TR>
|
<TR>
|
<TR>
|
<TD valign="middle" align="center">3</TD>
|
<TD valign="middle" align="center">3</TD>
|
<TD valign="middle" align="center" bgcolor="#cccccc">Fetch & Decode<BR>
|
<TD valign="middle" align="center" bgcolor="#cccccc">Fetch & Decode<BR>
|
slt $v1,$a0,$a1</TD>
|
slt $v1,$a0,$a1</TD>
|
<TD valign="middle" align="center" bgcolor="#00cccc">ReadRegisterFile</TD>
|
<TD valign="middle" align="center" bgcolor="#00cccc">ReadRegisterFile</TD>
|
<TD valign="middle" align="center" bgcolor="#ffff00" width="240">ALU=LEFT(0) or RIGHT(#$3380);<BR>
|
<TD valign="middle" align="center" bgcolor="#ffff00" width="240">ALU=LEFT(0) or RIGHT(#$3380);<BR>
|
AReg<=ALU</TD>
|
AReg<=ALU</TD>
|
<TD valign="middle" align="center" width="46"></TD>
|
<TD valign="middle" align="center" width="46"></TD>
|
<TD valign="middle" align="center" width="185"></TD>
|
<TD valign="middle" align="center" width="185"></TD>
|
</TR>
|
</TR>
|
<TR>
|
<TR>
|
<TD valign="middle" align="center">4</TD>
|
<TD valign="middle" align="center">4</TD>
|
<TD valign="middle" align="center"></TD>
|
<TD valign="middle" align="center"></TD>
|
<TD valign="middle" align="center" bgcolor="#cccccc">ReadRegisterFile</TD>
|
<TD valign="middle" align="center" bgcolor="#cccccc">ReadRegisterFile</TD>
|
<TD valign="middle" align="center" bgcolor="#00cccc" width="240">ALU</TD>
|
<TD valign="middle" align="center" bgcolor="#00cccc" width="240">ALU</TD>
|
<TD valign="middle" align="center" bgcolor="#ffff00" width="46">NReg<=AReg</TD>
|
<TD valign="middle" align="center" bgcolor="#ffff00" width="46">NReg<=AReg</TD>
|
<TD valign="middle" align="center" width="185"></TD>
|
<TD valign="middle" align="center" width="185"></TD>
|
</TR>
|
</TR>
|
<TR>
|
<TR>
|
<TD valign="middle" align="center">5</TD>
|
<TD valign="middle" align="center">5</TD>
|
<TD valign="middle" align="center"></TD>
|
<TD valign="middle" align="center"></TD>
|
<TD valign="middle" align="center"></TD>
|
<TD valign="middle" align="center"></TD>
|
<TD valign="middle" align="center" bgcolor="#cccccc" width="240">ALU</TD>
|
<TD valign="middle" align="center" bgcolor="#cccccc" width="240">ALU</TD>
|
<TD valign="middle" align="center" bgcolor="#00cccc" width="46">MEM</TD>
|
<TD valign="middle" align="center" bgcolor="#00cccc" width="46">MEM</TD>
|
<TD valign="middle" align="center" bgcolor="#ffff00" width="185">WB<BR>
|
<TD valign="middle" align="center" bgcolor="#ffff00" width="185">WB<BR>
|
Register FieAddres=$sp<BR>
|
Register FieAddres=$sp<BR>
|
Write Data=#$3380<BR>
|
Write Data=#$3380<BR>
|
</TD>
|
</TD>
|
</TR>
|
</TR>
|
<TR>
|
<TR>
|
<TD valign="middle" align="center">6</TD>
|
<TD valign="middle" align="center">6</TD>
|
<TD valign="middle" align="center"></TD>
|
<TD valign="middle" align="center"></TD>
|
<TD valign="middle" align="center"></TD>
|
<TD valign="middle" align="center"></TD>
|
<TD valign="middle" align="center" width="240"></TD>
|
<TD valign="middle" align="center" width="240"></TD>
|
<TD valign="middle" align="center" bgcolor="#cccccc" width="46">MEM</TD>
|
<TD valign="middle" align="center" bgcolor="#cccccc" width="46">MEM</TD>
|
<TD valign="middle" align="center" bgcolor="#00cccc" width="185">WB</TD>
|
<TD valign="middle" align="center" bgcolor="#00cccc" width="185">WB</TD>
|
</TR>
|
</TR>
|
<TR>
|
<TR>
|
<TD valign="middle" align="center">7</TD>
|
<TD valign="middle" align="center">7</TD>
|
<TD valign="middle" align="center"></TD>
|
<TD valign="middle" align="center"></TD>
|
<TD valign="middle" align="center"></TD>
|
<TD valign="middle" align="center"></TD>
|
<TD valign="middle" align="center" width="240"></TD>
|
<TD valign="middle" align="center" width="240"></TD>
|
<TD valign="middle" align="center" width="46"></TD>
|
<TD valign="middle" align="center" width="46"></TD>
|
<TD valign="middle" align="center" bgcolor="#cccccc" width="185">WB</TD>
|
<TD valign="middle" align="center" bgcolor="#cccccc" width="185">WB</TD>
|
</TR>
|
</TR>
|
<TR>
|
<TR>
|
<TD valign="middle" align="center">8</TD>
|
<TD valign="middle" align="center">8</TD>
|
<TD valign="middle" align="center"></TD>
|
<TD valign="middle" align="center"></TD>
|
<TD valign="middle" align="center"></TD>
|
<TD valign="middle" align="center"></TD>
|
<TD valign="middle" align="center" width="240"></TD>
|
<TD valign="middle" align="center" width="240"></TD>
|
<TD valign="middle" align="center" width="46"></TD>
|
<TD valign="middle" align="center" width="46"></TD>
|
<TD valign="middle" align="center" width="185"></TD>
|
<TD valign="middle" align="center" width="185"></TD>
|
</TR>
|
</TR>
|
</TBODY>
|
</TBODY>
|
</TABLE>
|
</TABLE>
|
<P><BR>
|
<P><BR>
|
<BR>
|
<BR>
|
<IMG src="yacc12.jpg" width="1280" height="1024" border="0"></P>
|
<IMG src="yacc12.jpg" width="1280" height="1024" border="0"></P>
|
<P><BR>
|
<P><BR>
|
<BR>
|
<BR>
|
<B>5.2 "Forwarding" Analysis</B><BR>
|
<B>5.2 "Forwarding" Analysis</B><BR>
|
<BR>
|
<BR>
|
Let's look at tool-tip displays "sw $z0, 0($a0)"<BR>
|
Let's look at tool-tip displays "sw $z0, 0($a0)"<BR>
|
This instruction causes RAM Write operation at the address of 0x928 followed
|
This instruction causes RAM Write operation at the address of 0x928 followed
|
by 2 clocks. However, 0x928(=$a0) has been set by the instruction ori $a0,$a0,0x928
|
by 2 clocks. However, 0x928(=$a0) has been set by the instruction ori $a0,$a0,0x928
|
prior to 5cycles. So this is the <B>forwarding</B> case.<BR>
|
prior to 5cycles. So this is the <B>forwarding</B> case.<BR>
|
<BR>
|
<BR>
|
Pipelined Registers carry 0x928 in <B>forwarding</B>.<BR>
|
Pipelined Registers carry 0x928 in <B>forwarding</B>.<BR>
|
Let' trace the situation back in following analysis.</P>
|
Let' trace the situation back in following analysis.</P>
|
<TABLE border="1">
|
<TABLE border="1">
|
<TBODY>
|
<TBODY>
|
<TR>
|
<TR>
|
<TH align="left" bgcolor="#d7ffff">
|
<TH align="left" bgcolor="#d7ffff">
|
<P>0: 3c1c0000 lui $gp,0x0 <BR>
|
<P>0: 3c1c0000 lui $gp,0x0 <BR>
|
4: 379c0000 ori $gp,$gp,0x88a0 <BR>
|
4: 379c0000 ori $gp,$gp,0x88a0 <BR>
|
8: 3c040000 lui $a0,0x0 <I><BR>
|
8: 3c040000 lui $a0,0x0 <I><BR>
|
<B><U><FONT color="#ff0000">c: 34840000 ori $a0,$a0,0x928</FONT></U></B></I> <BR>
|
<B><U><FONT color="#ff0000">c: 34840000 ori $a0,$a0,0x928</FONT></U></B></I> <BR>
|
10: 3c050000 lui $a1,0x0 <BR>
|
10: 3c050000 lui $a1,0x0 <BR>
|
14: 34a50000 ori $a1,$a1,0x934 <BR>
|
14: 34a50000 ori $a1,$a1,0x934 <BR>
|
18: 3c1d0000 lui $sp,0x0 <BR>
|
18: 3c1d0000 lui $sp,0x0 <BR>
|
1c: 37bdfff0 ori $sp,$sp,0x3f80 <FONT color="#ff0000"><U><B><BR>
|
1c: 37bdfff0 ori $sp,$sp,0x3f80 <FONT color="#ff0000"><U><B><BR>
|
20: ac800000 sw $zero,0($a0)</B></U></FONT> <BR>
|
20: ac800000 sw $zero,0($a0)</B></U></FONT> <BR>
|
24: 0085182a slt $v1,$a0,$a1 <BR>
|
24: 0085182a slt $v1,$a0,$a1 <BR>
|
28: 1460fffd bnez $v1,0x20 <BR>
|
28: 1460fffd bnez $v1,0x20 <BR>
|
2c: 24840004 addiu $a0,$a0,4 <BR>
|
2c: 24840004 addiu $a0,$a0,4 <BR>
|
30: 0c00019d jal 0x674 </P>
|
30: 0c00019d jal 0x674 </P>
|
</TH>
|
</TH>
|
</TR>
|
</TR>
|
</TBODY>
|
</TBODY>
|
</TABLE>
|
</TABLE>
|
<P><IMG src="yacc2.png" width="1280" height="1024" border="0"></P>
|
<P><IMG src="yacc2.png" width="1280" height="1024" border="0"></P>
|
<P><BR>
|
<P><BR>
|
To investigate what is driving the Daddress 0x928, Jump to tag file,<BR>
|
To investigate what is driving the Daddress 0x928, Jump to tag file,<BR>
|
<IMG src="yacc_trace1.png" width="1199" height="934" border="0"><BR>
|
<IMG src="yacc_trace1.png" width="1199" height="934" border="0"><BR>
|
<BR>
|
<BR>
|
Then jump to the tag file which describes entire structure of design by
|
Then jump to the tag file which describes entire structure of design by
|
text file.<BR>
|
text file.<BR>
|
<BR>
|
<BR>
|
<IMG src="yacc_trace2.png" width="1210" height="967" border="0"><BR>
|
<IMG src="yacc_trace2.png" width="1210" height="967" border="0"><BR>
|
<BR>
|
<BR>
|
Move to <FONT color="#ff00ff">SourceDriver</FONT> =><FONT color="#ff00ff">Assigned</FONT>:<BR>
|
Move to <FONT color="#ff00ff">SourceDriver</FONT> =><FONT color="#ff00ff">Assigned</FONT>:<BR>
|
Select the signal,and DBLCLICK<BR>
|
Select the signal,and DBLCLICK<BR>
|
<IMG src="yacc_trace3.png" width="1210" height="967" border="0"><BR>
|
<IMG src="yacc_trace3.png" width="1210" height="967" border="0"><BR>
|
<BR>
|
<BR>
|
Jumps to the source code where DAddress is assigned.<BR>
|
Jumps to the source code where DAddress is assigned.<BR>
|
We realize that DAddress is result of ( not time consuming) add operation
|
We realize that DAddress is result of ( not time consuming) add operation
|
between alu_source and IRD2 concerned.<BR>
|
between alu_source and IRD2 concerned.<BR>
|
<IMG src="yacc_trace4.png" width="1210" height="967" border="0"><BR>
|
<IMG src="yacc_trace4.png" width="1210" height="967" border="0"><BR>
|
<BR>
|
<BR>
|
There is another way to jump to the driver.<BR>
|
There is another way to jump to the driver.<BR>
|
You can jump to the source code by "Jump to Driver" directly.<BR>Set T1 cursor at write strobe time, select the signal ,and Jump to Driver..<BR>
|
You can jump to the source code by "Jump to Driver" directly.<BR>Set T1 cursor at write strobe time, select the signal ,and Jump to Driver..<BR>
|
<IMG src="yacc_trace5.png" width="1210" height="967" border="0"><BR>
|
<IMG src="yacc_trace5.png" width="1210" height="967" border="0"><BR>
|
<BR>
|
<BR>
|
Same result as tag-jump.<BR>
|
Same result as tag-jump.<BR>
|
<IMG src="yacc_trace6.png" width="1210" height="967" border="0"><BR>
|
<IMG src="yacc_trace6.png" width="1210" height="967" border="0"><BR>
|
<BR>
|
<BR>
|
<BR>
|
<BR>
|
Since this assignment is combinational logic, you can view the value by
|
Since this assignment is combinational logic, you can view the value by
|
tool tip.<BR>
|
tool tip.<BR>
|
<IMG src="yacc_trace7.png" width="1210" height="967" border="0"><BR>
|
<IMG src="yacc_trace7.png" width="1210" height="967" border="0"><BR>
|
<BR>
|
<BR>
|
Now, we realize that "alu_source" is 32'h928 which is next target
|
Now, we realize that "alu_source" is 32'h928 which is next target
|
for further analysis.<BR>
|
for further analysis.<BR>
|
<IMG src="yacc_trace8.png" width="1210" height="967" border="0"><BR>
|
<IMG src="yacc_trace8.png" width="1210" height="967" border="0"><BR>
|
<BR>
|
<BR>
|
Add "alu_source " to WaveformView for further analysis.<BR>
|
Add "alu_source " to WaveformView for further analysis.<BR>
|
<IMG src="yacc_trace9.png" width="1210" height="967" border="0"><BR>
|
<IMG src="yacc_trace9.png" width="1210" height="967" border="0"><BR>
|
<BR>
|
<BR>
|
<BR>
|
<BR>
|
Jump to Driver for "alu_source"<BR>
|
Jump to Driver for "alu_source"<BR>
|
<IMG src="yacc_trace10.png" width="1210" height="967" border="0"><BR>
|
<IMG src="yacc_trace10.png" width="1210" height="967" border="0"><BR>
|
<BR>
|
<BR>
|
<BR>
|
<BR>
|
Warning Displayed.<BR>
|
Warning Displayed.<BR>
|
<IMG src="yacc_trace11.png" width="1210" height="967" border="0"><BR>
|
<IMG src="yacc_trace11.png" width="1210" height="967" border="0"><BR>
|
<BR>
|
<BR>
|
<BR>
|
<BR>
|
Expand the signal to bits.<BR>
|
Expand the signal to bits.<BR>
|
<IMG src="yacc_trace12.png" width="1210" height="967" border="0"><BR>
|
<IMG src="yacc_trace12.png" width="1210" height="967" border="0"><BR>
|
<BR>
|
<BR>
|
<BR>
|
<BR>
|
Then jump to driver by any signal activated.<BR>
|
Then jump to driver by any signal activated.<BR>
|
<IMG src="yacc_trace13.png" width="1210" height="967" border="0"><BR>
|
<IMG src="yacc_trace13.png" width="1210" height="967" border="0"><BR>
|
<BR>
|
<BR>
|
Then jumps to the position. This is combinational circuit which has no
|
Then jumps to the position. This is combinational circuit which has no
|
time-consumption. We can tool-tip the value in this case.<BR>
|
time-consumption. We can tool-tip the value in this case.<BR>
|
<IMG src="yacc_trace14.png" width="1210" height="967" border="0"><BR>
|
<IMG src="yacc_trace14.png" width="1210" height="967" border="0"><BR>
|
<BR>
|
<BR>
|
<BR>
|
<BR>
|
Add "alu_left_latch " to the WaveformView for further analysis.<BR>
|
Add "alu_left_latch " to the WaveformView for further analysis.<BR>
|
<IMG src="yacc_trace15.png" width="1210" height="967" border="0"><BR>
|
<IMG src="yacc_trace15.png" width="1210" height="967" border="0"><BR>
|
<BR>
|
<BR>
|
<BR>
|
<BR>
|
Jump to Driver..<BR>
|
Jump to Driver..<BR>
|
<IMG src="yacc_trace16.png" width="1210" height="967" border="0"><BR>
|
<IMG src="yacc_trace16.png" width="1210" height="967" border="0"><BR>
|
<BR>
|
<BR>
|
<BR>
|
<BR>
|
Jumps to the position where "alu_left_latch" is assigned by non-blocking
|
Jumps to the position where "alu_left_latch" is assigned by non-blocking
|
statement<BR>
|
statement<BR>
|
<IMG src="yacc_trace17.png" width="1210" height="967" border="0"><BR>
|
<IMG src="yacc_trace17.png" width="1210" height="967" border="0"><BR>
|
</P>
|
</P>
|
<P>Jump to Driver by "DReg" at T1 cursor.<BR>
|
<P>Jump to Driver by "DReg" at T1 cursor.<BR>
|
<IMG src="yacc_trace18.png" width="1210" height="967" border="0"><BR>
|
<IMG src="yacc_trace18.png" width="1210" height="967" border="0"><BR>
|
</P>
|
</P>
|
<P>We realize "DReg " is just pipelined register</P>
|
<P>We realize "DReg " is just pipelined register</P>
|
<P><IMG src="yacc_trace19.png" width="1210" height="967" border="0"></P>
|
<P><IMG src="yacc_trace19.png" width="1210" height="967" border="0"></P>
|
<P><BR>
|
<P><BR>
|
Let's investigate what is driving "RReg".</P>
|
Let's investigate what is driving "RReg".</P>
|
<P><IMG src="yacc_trace20.png" width="1210" height="967" border="0"><BR>
|
<P><IMG src="yacc_trace20.png" width="1210" height="967" border="0"><BR>
|
<BR>
|
<BR>
|
<BR>
|
<BR>
|
NReg is Driving.<BR>
|
NReg is Driving.<BR>
|
<IMG src="yacc_trace21.png" width="1210" height="967" border="0"><BR>
|
<IMG src="yacc_trace21.png" width="1210" height="967" border="0"><BR>
|
<BR>
|
<BR>
|
<BR>
|
<BR>
|
What is driving "NReg" ?<BR>
|
What is driving "NReg" ?<BR>
|
<IMG src="yacc_trace22.png" width="1210" height="967" border="0"><BR>
|
<IMG src="yacc_trace22.png" width="1210" height="967" border="0"><BR>
|
<BR>
|
<BR>
|
"AReg" is driving.<BR>
|
"AReg" is driving.<BR>
|
<IMG src="yacc_trace23.png" width="1210" height="967" border="0"><BR>
|
<IMG src="yacc_trace23.png" width="1210" height="967" border="0"><BR>
|
<BR>
|
<BR>
|
<BR>
|
<BR>
|
What is driving "AReg"?<BR>
|
What is driving "AReg"?<BR>
|
<IMG src="yacc_trace24.png" width="1210" height="967" border="0"><BR>
|
<IMG src="yacc_trace24.png" width="1210" height="967" border="0"><BR>
|
<BR>
|
<BR>
|
<BR>
|
<BR>
|
"alu_out " is driving.<BR>
|
"alu_out " is driving.<BR>
|
<IMG src="yacc_trace25.png" width="1210" height="967" border="0"><BR>
|
<IMG src="yacc_trace25.png" width="1210" height="967" border="0"><BR>
|
<BR>
|
<BR>
|
Then investigate the driver of "alu_out".<BR>
|
Then investigate the driver of "alu_out".<BR>
|
<IMG src="yacc_trace27.png" width="1210" height="967" border="0"><BR>
|
<IMG src="yacc_trace27.png" width="1210" height="967" border="0"><BR>
|
<BR>
|
<BR>
|
<BR>
|
<BR>
|
We realize alu_out=a | b;<BR>
|
We realize alu_out=a | b;<BR>
|
<IMG src="yacc_trace28.png" width="1210" height="967" border="0"><BR>
|
<IMG src="yacc_trace28.png" width="1210" height="967" border="0"><BR>
|
<BR>
|
<BR>
|
<BR>
|
<BR>
|
<BR>
|
<BR>
|
Finally We understand "the value 0x928 is derived from the instruction
|
Finally We understand "the value 0x928 is derived from the instruction
|
" ori $a0, $a0,#$928" through pipelined registers ,not from register
|
" ori $a0, $a0,#$928" through pipelined registers ,not from register
|
file's output<B></B>. You can see <A href="pipelined_reg.gif">block diagram</A> I wrote ,which is a sketch in early design stage.<BR>
|
file's output<B></B>. You can see <A href="pipelined_reg.gif">block diagram</A> I wrote ,which is a sketch in early design stage.<BR>
|
<IMG src="yacc_trace29.png" width="1210" height="967" border="0"><BR>
|
<IMG src="yacc_trace29.png" width="1210" height="967" border="0"><BR>
|
<BR>
|
<BR>
|
<BR>
|
<BR>
|
<BR>
|
<BR>
|
</P>
|
</P>
|
</BODY>
|
</BODY>
|
|
|