Simple Computer Project
The Simple Computer project consists of a Processor and a Memory. The Memory contains two arrays to hold instructions and data (instr_mem and data_mem), while the Processor contains a single array forming the programmable registers (main_reg). The Processor instruction set, defined in s-comp.edl, contains simple load/store and register-register arithmetic instructions together with a Jump Immediate, a Jump Register and a Branch instruction. The outcome of the branch instruction is determined by a Condition Code (CC) register set according to the result of one of six possible comparisons between two register values. There is also a No Operation (NOP) instruction and a STOP instruction.

Along with the Condition Code register, the Program Counter (PC) and Instruction Register (IR) are displayed in the Project View panel. The Program Counter has two fields, a label (main in the figure) and an offset (0 in the figure), because the instruction array in the Memory is declared using the ARRAYI construct.

The project is made up of the files listed below. These files illustrate many of the features of HASE described in the User Guide. The full set of files for the project can be downloaded from s-comp.zip.

Definition files (HASE-III)

Entity Behaviour files Global Function files Register/Memory content files The full set of files for the model can be downloaded from s-comp.zip