This preview shows page 1. Sign up to view the full content.
Unformatted text preview: d the regis ter file
is part of the datapath. If y ou c annot s ee the c ontrol, datapath, and memory c omponents , y ou c an ex pand the CPU des ign tree by
c lic k ing on the "+ " to the left of the word c pu. Add the "Clk " s ignal to y our waveform
Selec t the CPU c omponent in the W ork s pac e window to populate the s ignals window with the s ignals that are part of
Loc ate the "Clk " s ignal in the s ignals window and add it to y our waveform.
Add the "CARout" s ignal to y our waveform
Selec t the c ontrol c omponent in the W ork s pac e window to populate the s ignals window with the s ignals that are part
of the c ontrol unit.
Loc ate the CARout s ignal and add it to y our waveform.
Add the "ram" s ignal from the regis ter file to y our waveform
Ex pand the datapath c omponent
Loc ate and s elec t the RF c omponent in the datapath.
Loc ate the ram s ignal in the s ignal window and add it to y our waveform.
Clic k on the "+ " s ign to left of the "ram" s ignal on the waveform to s ee eac h regis ter's c ontents individually .
By default, the s imulator s hows the binary values of all of the s ignals . However, s inc e many of the s ignals s uc h as "CARout" are
multiple bits , it is eas ier to view the data in dec imal or hex .
Set CARout to appear as an uns igned dec imal.
Selec t the CARout s ignal in the waveform.
Us e the menus to s elec t Format-> Radix-> Uns igned
Set the c ontents of the regis ter file to appear in hex adec imal.
W hile holding down the c ontrol k ey on y our k ey board s elec t the ram s ignal and eac h of the regis ters s o that all of
them are highlighted (mak e s ure CARout is no longer s elec ted too).
Selec t Format-> Radix-> Hexadec imal Run the Simulator
W e have provided y ou with a ".do" file that initializ es the LC-3 arc hitec ture and begins the ex ec uting the program s tored at memory
addres s x 3000. The fetc...
View Full Document
This document was uploaded on 03/22/2014.
- Fall '14