b-1 appendix b - using arctools computer architecture and organization by m. murdocca and v. heuring...

16
B-1 Appendix B - Using ARCTools Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring Computer Architecture and Organization Miles Murdocca and Vincent Heuring Appendix B – Using ARCTools

Upload: ross-cole

Post on 16-Dec-2015

226 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: B-1 Appendix B - Using ARCTools Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring Computer Architecture

B-1 Appendix B - Using ARCTools

Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring

Computer Architecture and Organization

Miles Murdocca and Vincent Heuring

Appendix B – Using ARCTools

Page 2: B-1 Appendix B - Using ARCTools Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring Computer Architecture

B-2 Appendix B - Using ARCTools

Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring

Chapter Contents

B.1 Introduction

B.2 Accessing and Launching ARCTools

B.3 The ARC Assembler

B.4 The ARC Simulator

B.5 Instructions and Pseudo Instructions Recognized by ARCTools

B.6 The Macroprocessor

B.7 Measuring Program Performance

Page 3: B-1 Appendix B - Using ARCTools Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring Computer Architecture

B-3 Appendix B - Using ARCTools

Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring

Using ARCTools

The ARCTools toolset includes the following features:

• An integrated assembler and simulator for the ARC ISA.

• Extensions to the ISA described in Chapter 4 with several additional actual and synthetic instructions.

• A trap mechanism.

• A simple macroprocessing facility.

• Ability to specify instruction timings.

• A multi-level cache memory simulator.

• A number of example programs showing the features of the toolset.

Page 4: B-1 Appendix B - Using ARCTools Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring Computer Architecture

B-4 Appendix B - Using ARCTools

Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring

The ARCTools Simulator Window

Page 5: B-1 Appendix B - Using ARCTools Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring Computer Architecture

B-5 Appendix B - Using ARCTools

Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring

The ARCTools Edit Window

Page 6: B-1 Appendix B - Using ARCTools Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring Computer Architecture

B-6 Appendix B - Using ARCTools

Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring

The ARCTools Edit Window• The Edit window with an asm file and the file dialog

Page 7: B-1 Appendix B - Using ARCTools Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring Computer Architecture

B-7 Appendix B - Using ARCTools

Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring

Assembly• The arc4 program after assembly, showing arc4.lst, the listing file.

Page 8: B-1 Appendix B - Using ARCTools Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring Computer Architecture

B-8 Appendix B - Using ARCTools

Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring

Binary File• The arc4 bin file, displayed after pressing the Show Binary File button.

Page 9: B-1 Appendix B - Using ARCTools Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring Computer Architecture

B-9 Appendix B - Using ARCTools

Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring

Setting up ARCTools

• Contents of the ARCTools directory after unzipping.

Page 10: B-1 Appendix B - Using ARCTools Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring Computer Architecture

B-10 Appendix B - Using ARCTools

Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring

Simulation

• The ARCTools simulator window after pressing Bin -> Sim.

Page 11: B-1 Appendix B - Using ARCTools Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring Computer Architecture

B-11 Appendix B - Using ARCTools

Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring

Instructions Recognized by ARCTools

Page 12: B-1 Appendix B - Using ARCTools Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring Computer Architecture

B-12 Appendix B - Using ARCTools

Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring

Synthetic Instructions Recognized by ARCTools

Page 13: B-1 Appendix B - Using ARCTools Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring Computer Architecture

B-13 Appendix B - Using ARCTools

Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring

Pseudo-Ops Recognized by ARCTools

Page 14: B-1 Appendix B - Using ARCTools Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring Computer Architecture

B-14 Appendix B - Using ARCTools

Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring

Instruction Parameters Window

Page 15: B-1 Appendix B - Using ARCTools Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring Computer Architecture

B-15 Appendix B - Using ARCTools

Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring

Adjustable Parameters in the L1 Cache Window

Page 16: B-1 Appendix B - Using ARCTools Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring Computer Architecture

B-16 Appendix B - Using ARCTools

Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring

The Timing Statistics Window