Home News People Research Study Search

Institute for Computing Systems Architecture

Computer Architecture Simulation & Visualisation

How does JavaHASE work ?

JavaHASE converts full HASE simulation models into SimJava applets. During the first execution of a simulation with the initial data, the SimJava simulation engine is used to generate, log and display trace information. Then, for other executions of the same data, the logged information is used to run the simulation again. The results are obviously the same, but only information added into the trace file (either with a specific sim_trace or automatically when the autotrace mode is set) are displayed in later simulations.

Running a simulation with different data

During a SimJava execution, parameter values are read from entities. These parameter values can be modified before running a new simulation by right-clicking on the entity to be modified and selecting the show parameters pop-up menu. This opens a display window showing the name and value(s) of each parameter (note that enum parameters are displayed as integers starting from 0). As an example, the left-hand image displayed below shows the parameters of the DLX memory, i.e. the instructions and data it contains, and the memory sizes.
memory parameters display box These parameters can be changed by first pressing new simulation.
and then left double-clicking on the list where the parameters are displayed. In the case of the Data Memory, for example, the editable TextArea shown below left will appear:

data memory display box     data memory display box
By changing the 0 to 2000, for example, as shown in the right hand image, pressing OK and then re-running the simulation using step button image or play button image the new value of 2000 will be used instead of the original value of 0.

Copy & paste editing will work provided an appropriate security management option has been set up.

Once the first simulation has been run, another simulation can be run with different inputs. Pressing the "New simulation" button will re-initialised all entities and all parameters will be restored to their initial values. The inputs can now be modified again and a new simulation run using "Step" or "Play".

Return to JavaHASE home page

Return to HASE home page

HASE Project
Institute for Computing Systems Architecture, School of Informatics, University of Edinburgh
Last change 20/03/2003


Home : Research : Groups : Hase : Javahase : Docs 

Please contact our webadmin with any comments or changes.
Unless explicitly stated otherwise, all material is copyright © The University of Edinburgh.