next up previous contents
Next: 3.3 RAM-NS Kernel Up: 3 ADS Firmware Previous: 3.1 Modelling SA/SD   Contents

Subsections

3.2 Forth Layout Standard

For easyer reading and consistency we use the MPE Forth Layout Standard. This standard is described in MPE Forth Layout Standard. This document is included in the MPE compiler package. In contrast to those standards we use 4 spaces for indention. The numbers are decimal by default.

3.2.1 Naming Convention Words (Colon Definitions)

The MPE Forth compiler is case-insensitive. We use all upper case for the already defined words (e.g. DROP, IF etc.).

Compound word names are mixed case and the words have a dash as delimiter. Example: Do-App, Stop-Sampling etc.

3.2.2 Naming Convention Constants

Constant word names are all upper case with an underscore as word delimiter. Examples: STRT_ADC, TC_START_SAMP etc.

3.2.3 Naming Convention Variables and Arrays

Variable word names are mixedr case with an underscore as word delimiter. Examples: Reg_Ctrl, Mux_Adr etc. Binary variables have a trailing question mark (e.g. ADC_Ready?)



Peter Schmid 2001-05-18