Assignment 5

I/O Handling

Extending cache in blocksim

Exception Handling in BlockSim

For exception handling assignments, you are suppose to do the following- Exception handling Subroutine For Memory Parity Exception
Parity bit can be stored in a different memory file (As we are constrained with 32 bit width of memory) Address X of memory file contains the data while address X of parity memory contain parity bit corresponding to data at X address. While loading data (using load instruction), this

Input/Output

Input output will be shown in saperate registers, which can be checked during simulation. For input devices, input will be given by hand (simulator support giving input to any register by hand during simulation). If you need to model ready signal that also can be modeled as registers whose input will be given by hand.
Polled Input
Hardware Part
Software Part
Polled Output
Polled Output is similar to polled input, except status is read at address A1, and output is written at address A2. The loops and structure would be similar to polled input case.
Interrupt driven I/O

Cache