300 likes | 458 Views
SMD137 SyncSim – Introduction. Jimmie Wiklander Room: A2309 Lab Assistance: dtlabs@sm.luth.se ASK QUESTIONS!. Tarball. syncsim designs mips.xml mips_program_objdump programs Makefile script.sh fibonacci.c/fibonacci.s simulator_designs MIPS java classfiles SyncSim_v2_0.jar.
E N D
SMD137SyncSim – Introduction Jimmie Wiklander Room: A2309 Lab Assistance: dtlabs@sm.luth.se ASK QUESTIONS!
Tarball • syncsim • designs • mips.xml • mips_program_objdump • programs • Makefile • script.sh • fibonacci.c/fibonacci.s • simulator_designs • MIPS java classfiles SyncSim_v2_0.jar
Start SyncSim >cd syncsim > java –jar SyncSim_v2_0.jar &
Design file (mips.xml) • Describes which components to use in simulation • Connections between components
Design file (mips.xml) Name = A init = 3 A B Name = B Apart .class C Name = C Bpart .class B = A C = B X Cpart .class Xcomp.class
Tarball • syncsim • designs • mips.xml (design file) • mips_program_objdump • programs • Makefile • script.sh • fibonacci.c/fibonacci.s • simulator_designs • MIPS java classfiles SyncSim_v2_0.jar
Makefile >cd programs >make as
Tarball • syncsim • designs • mips.xml (design file) • mips_program_objdump • programs • Makefile • script.sh • fibonacci.c/fibonacci.s • simulator_designs • MIPS java classfiles SyncSim_v2_0.jar
Tarball • syncsim • designs • mips.xml (design file) • mips_program_objdump • programs • Makefile • script.sh • fibonacci.c/fibonacci.s • simulator_designs • MIPS java classfiles SyncSim_v2_0.jar
script.sh • Replaces the main address • Replaces $gp
Tarball • syncsim • designs • mips.xml (design file) • mips_program_objdump • programs • Makefile • script.sh • fibonacci.c/fibonacci.s • simulator_designs • MIPS java classfiles SyncSim_v2_0.jar
fibonacci • 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144 …