Supplement to the hw6 main assignment.Basically, you want to create a new model that is derived from your HW5 solution by converting the
IF
component to anICache
and theMemoryInterface
component to aDCache
. Unfortunately,SMOK
won't let you convert components to completely different types, so you'll have to delete the old ones, add the new ones, and reconnect. When you're done, the machine should work (as well as it ever did), since the distributedICache
andDCache
implementations are exactly theIF
andMemoryInterace
functionality.I did the following to convert my model:
- Make a complete copy of the HW5 machine -- data path and associated PLAs. The new copy will become the HW6 machine.
- Run two copies of
SMOK
, one loaded with the HW5 machine and the other with the new HW6 machine.
- Delete the
IF
andMemoryInterace
components from the HW6 machine.
- Single-click on the
IF
in the HW5 machine to highlight its connections. Re-establish those connections in the HW6 machine.
- Do the same for the
MemoryController
.
- If any of the input ports on the
MemoryController
do not read the entire 32-bits of input, adjust the parameters of the corresponding input ports on theDCache
in the HW6 model.
- Et voilà.