Section 1 Introduction to Simics Henry Cook CS152 Spring 2008 Familiarity survey C Python gdb Unix Linux Solaris 1 28 2008 Henry Cook UCBerkeley 2 What are we doing in labs Giving you an environment to Run code on a variety of platforms Benchmark and experiment Change things about the hardware Not all of which are actually available to us Access to multiple abstraction layers See how architectural mechanisms work in practice on real software 1 28 2008 Henry Cook UCBerkeley 3 What is Simics Efficient instrumented system level instruction set simulator 1 28 2008 Run as fast or faster than target machine Gather detailed information at run time Model target at level at which OS acts ISA aware simulates each instruction Runs unmodified OSes and workloads Henry Cook UCBerkeley 4 Why are we using Simics Scripting capabilities Academic licensing Can run real software quickly Intro to functional timing simulators Outside relevance Program analysis computer architecture research and kernel debugging 1 28 2008 Henry Cook UCBerkeley 5 Terminology Host machine Target machine Machine OS on which Simics is running Machine OS which Simics is simulating Neither the architecture nor the OS of either machine need be the same Steps vs cycles vs instructions 1 28 2008 Henry Cook UCBerkeley 6 Environment Similar to gdb command line interface Simics CLI has built in scripting Can also write scripts in Python Checkpointing Different modes of execution Fast stalls MAI Speed vs accuracy 1 28 2008 Henry Cook UCBerkeley 7 Major Components Functional Modules Written in C Python DML Devices components boards machines Attached by Simics or Python scripts Timing 1 28 2008 Memory caches Simics MAI Declare or calculate delay of modules Henry Cook UCBerkeley 8 Demo 1 28 2008 Henry Cook UCBerkeley 9 Gritty details Might compile code in separate environment Need X11 at client machine E g compile on Solaris SPARC run on Linux http inst eecs berkeley edu connecting html xwindows Instructional servers 1 28 2008 http inst eecs berkeley edu cgi bin clients cgi choice 13 Henry Cook UCBerkeley 10 Office Hours Monday 9 30 10 30 Monday 1 30 2 30 Friday 10 30 11 30 Friday 2 00 3 00 1 28 2008 Henry Cook UCBerkeley 11
View Full Document
Unlocking...