This preview shows page 1-2-3-4-5-6-7-8-9-60-61-62-63-64-65-66-67-121-122-123-124-125-126-127-128-129 out of 129 pages.
LCSL Logic Circuit Simulation Language Bogdan Caprita, Julian Maller, Sachin Nene, Chaue Shen December 19, 20031 Chapter 1......................................................................................................................................... 4 Introduction.................................................................................................................................... 4 1.1 Introduction ......................................................................................................................... 4 1.2 Background .......................................................................................................................... 4 1.3 Related Work....................................................................................................................... 5 1.4 Goals ..................................................................................................................................... 6 1.4.1 Simplicity...................................................................................................................... 6 1.4.2 Portability..................................................................................................................... 6 1.4.3 Modularity.................................................................................................................... 6 1.4.4 Flexibility ...................................................................................................................... 6 1.4.5 Error Avoidance .......................................................................................................... 6 1.5 Features ................................................................................................................................6 1.5.1 Components.................................................................................................................. 6 1.5.2 Recursion ...................................................................................................................... 7 1.5.3 Overloading .................................................................................................................. 7 Chapter 2......................................................................................................................................... 8 Tutorial............................................................................................................................................ 8 2.1 Simple Example ................................................................................................................... 8 2.2 Compilation/Simulation of Simple Example ..................................................................... 9 2.3 A more complex example… with recursion! ................................................................... 10 Chapter 3....................................................................................................................................... 12 Reference Manual ........................................................................................................................ 12 3.1 Lexical Conventions .......................................................................................................... 12 3.1.1 Comments................................................................................................................... 12 3.1.2 Variables..................................................................................................................... 12 3.1.3 Keywords.................................................................................................................... 12 3.1.4 Operators.................................................................................................................... 12 3.1.5 Strings and Vectors.................................................................................................... 12 3.2 Types................................................................................................................................... 12 3.2.1 Integers ....................................................................................................................... 13 3.2.2 Booleans...................................................................................................................... 13 3.2.3 Vectors ........................................................................................................................ 13 3.2.4 Strings ......................................................................................................................... 13 3.2.5 Components................................................................................................................ 13 3.2.6 Systems........................................................................................................................ 13 3.3 Type Operators.................................................................................................................. 13 3.3.1 Integer Operators ...................................................................................................... 14 3.3.2 Boolean Operators ..................................................................................................... 14 3.4 Expressions......................................................................................................................... 15 3.4.1 Expression Syntax...................................................................................................... 15 3.4.2 Basic Expressions....................................................................................................... 15 3.4.3 Source Expressions .................................................................................................... 16 3.4.3 Sink Expressions ........................................................................................................ 16 3.5 Statements .......................................................................................................................... 16 3.5.1 Connections ................................................................................................................ 17 3.5.2 Conditionals................................................................................................................ 17 3.5.2
View Full Document