Showing posts with label Introduction. Show all posts
Showing posts with label Introduction. Show all posts

25 May 2013

Running DLX Simulator


1,Command to execute simulator
java -jar Dsim.jar

2,DLX Simulator















3,Loading DLX file into DSIM simulator
















4,Registers view, DLX Cpu >>Register








5, Ram View, Ram >Viewer


















6,Lights view, Lights>Lights






7,Switches view ,Switches >switches






Ram,Lights,Switches depends on DSIM.cfg file.

Tags:Running DLX Simulator ,DLX GUI, DLX Switches,DLX Lights,DLX Ram,DLX Switches,DLX Registers

DLS file and DLX file and commands

DLS file is Source file
File created by user and Input of Assembler DSAM

DLX file is Executable file
File created by Assembler if the file assemble. It can be run from DLX simulator

>>java -jar dasm.jar  try.dls -a
-a Program follows absolute address

>>java -jar dasm.jar  try.dls -a -l
-l List down the error & assembly of your program

>>java -jar Dsim.jar
To run simulator

Assembly and running your program

1,Create new folder ,example: dlx in D ,D:\dlx
2,Copy dasm.jar,dsim.jar,dsim.cfg to dlx folder
3,Create dls program, Ex try.dls
4,Assemble your program using this command
java -jar dasm.jar -a try.dls
5,After executing this command,It will create try.dlx on dlx folder
6,Run this dlx file using this command
java -jar Dsim.jar


Introduction to DLX Machine

DLX Machine architecture




















  • DLX machine consists of 32 registers from r0 to r31
r0 always 0
r31 Jr Register
r1 to r30 can be used for program

  • DLX machine RAM depends on dsim.cfg file
dsim.cfg file contains.

dsim new bus dsim.bus.Bus 

dsim new cpu dsim.dlxcpu.Dlxcpu
dsim connect bus$slot0 cpu$dlxbus

dsim new ram dsim.ram.Ram 00000 4000
dsim connect bus$slot2 ram$dlxbus

In this case, DLX machine consist of Ram upto 4000 from 0 (Ex 0,4,8,12..4000)


  • DLX machine consists of IO Devices includes switches and lights
Address of lights and switches depends on dsim.cfg file


dsim new lights dsim.lights.Lights FFFFFFF8
dsim connect bus$slot1 lights$dlxbus

dsim new switches dsim.switches.Switches FFFFFFFC
dsim connect bus$slot3 switches$dlxbus


Address for lights      :FFFFFFF8
Address for switches:FFFFFFFC


Popular Posts