Download Getting Started with LSE

Transcript
Table of Contents
Preface......................................................................................................................................................................vi
Typographical conventions used in this book..................................................................................................vi
1. Installation ............................................................................................................................................................1
Getting the Liberty Simulation Environment ...................................................................................................1
Software Prerequisites ......................................................................................................................................1
Java..........................................................................................................................................................1
g++ ..........................................................................................................................................................1
Ant...........................................................................................................................................................2
Python .....................................................................................................................................................2
Perl ..........................................................................................................................................................2
GNU binutils...........................................................................................................................................2
Operating system notes.....................................................................................................................................3
Ubuntu Linux ..........................................................................................................................................3
Solaris 10 (SPARC) ................................................................................................................................3
Cygwin....................................................................................................................................................4
Installing the LSE Bundle ................................................................................................................................4
Installing Individual LSE Packages..................................................................................................................4
Preparing Your Environment ............................................................................................................................5
Getting help ......................................................................................................................................................5
2. A First Machine Specification .............................................................................................................................6
The Initial Specification ...................................................................................................................................6
Visualization .....................................................................................................................................................7
Building and Running a Simulator ...................................................................................................................8
Instrumentation.................................................................................................................................................9
Collecting Data .....................................................................................................................................10
Events....................................................................................................................................................11
Parameters and Userpoints .............................................................................................................................12
Full Specification............................................................................................................................................12
3. An LFSR Specification.......................................................................................................................................14
The Specification ............................................................................................................................................14
New Modules..................................................................................................................................................16
Multiports .......................................................................................................................................................16
Initial Values and Dynamic Identifiers ...........................................................................................................16
Initial Value...........................................................................................................................................17
Dynamic Identifiers...............................................................................................................................17
Examining the Output.....................................................................................................................................17
Running the simulator ....................................................................................................................................17
Control, Data, Enable, and Ack......................................................................................................................18
Control Points.................................................................................................................................................19
Input Control Points..............................................................................................................................20
Output Control Points ...........................................................................................................................20
Breaking the Loop.................................................................................................................................21
Full Code...............................................................................................................................................22
The xor_gate Module.....................................................................................................................................23
iii