SMOK

Example SMOK PLA File

Last modified: April 12, 2005
Sloop Cebollita
  CSE Home  About Us    Search    Contact Info 
# White space is signficant only as a delimter.
# ALL data items are strings.  They can be quoted or unquoted.
# You must quote strings that have embedded whitespace.
# (Guess what the comment format is...)

# This is an abbreviated and expanded version of the table
# in Computer Organization & Design, Patterson and Hennessy,
# 2nd Edition, page C-7.

<smokplafile>

<decodetypes>                R-format       lw       sw       beq   </decodetypes>

<inputsignal>    Op5            0            1        1        0    </inputsignal>
<inputsignal>    Op4            0            0        0        0    </inputsignal>
<inputsignal>    Op3            0            0        1        0    </inputsignal>
<inputsignal>    Op2            0            0        0        1    </inputsignal>
<inputsignal>    Op1            0            1        1        0    </inputsignal>
<inputsignal>    Op0            0            1        1        0    </inputsignal>
<inputsignal>    Sample        XX           x1       11       00    </inputsignal>


<outputsignal>   RegDst         1            0        X        X    </outputsignal>
<outputsignal>   ALUSrc         0            1        1        0    </outputsignal>
<outputsignal>   Sample        XX           00       11       x0    </outputsignal>

</smokplafile>

Input fields may be as wide as the input port they represent (not just a single bit, as in the Hennessy-Patterson example). The table can be broken into multiple sections if it becomes too wide. Both changes are shown in the input file below, which is functionally equivalent to the one above.

# White space is signficant only as a delimter.
# ALL data items are strings.  They can be quoted or unquoted.
# You must quote strings that have embedded whitespace.
# (Guess what the comment format is...)

# This is an abbreviated and expanded version of the table
# in Computer Organization & Design, Patterson and Hennessy,
# 2nd Edition, page C-7.

<smokplafile>

<decodetypes>                R-format       lw      </decodetypes>

<inputsignal>    Op           000000      100011    </inputsignal>
<inputsignal>    Sample         XX          x1      </inputsignal>

<outputsignal>   RegDst          1           0      </outputsignal>
<outputsignal>   ALUSrc          0           1      </outputsignal>
<outputsignal>   Sample         XX          00      </outputsignal>



<decodetypes>                  sw       beq     </decodetypes>

<inputsignal>    Op          101011    000100   </inputsignal>
<inputsignal>    Sample        11        00     </inputsignal>

<outputsignal>   RegDst         X         X     </outputsignal>
<outputsignal>   ALUSrc         1         0     </outputsignal>
<outputsignal>   Sample        11        x0     </outputsignal>

</smokplafile>


Department of Computer Science & Engineering
University of Washington
Box 352350
Seattle, WA  98195-2350
(206) 543-1695 voice, (206) 543-2969 FAX
[comments to zahorjan@cs.washington.edu]