epYme documentation |
ASM++: a modern Algorithmic State Machine methodology for RTL designs
Compiler directives
Compiler variables
Designers may use "signals" or "wires" to describe the behavior of the circuit and, thus, to build digital logic.
In addition, they may use compiler variables, valid only at compilation time, to help on the description of those signals,
usually on complex designs. Nowadays there are variables of two kinds, and they are identified by a dollar ('$') sign:
String |
$one = "Hello"; $two := $one + " World!"; |
Stores a text string on a variable. Verilog designers must use the '=' operand, but VHDL designers must use ':=' instead. |
Integer |
$five := 5; $sixty = 30 + 6 * $five; |
Stores an integer number on a variable. Verilog designers must use the '=' operand, but VHDL designers must use ':=' instead. |
The main difference between 'signals' and 'variables' is that 'signals' describe operations of the digital circuit,
executed by the circuit when running, while 'variables' describe compiler operations, executed at compilation time.
Compiler command line mode
ASM++ Compiler can be executed using the graphical possibilities of Windows XP, but it also can be executed through command line orders, thus a 'makefile' may use this compiler to generate HDL code. The syntax for this command is shown following:
drive:\path> asmCompiler [-verbose] [-no_verbose] [-build_all] [-no_build_all] <file_name.vdx>
The meaning of its options is shown following:
-verbose |
By default |
Specifies that ASM++ Compiler must generate log information through a file named file_name.log. |
-no_verbose |
Optional |
Specifies that ASM++ Compiler must not generate any log information. |
-build_all |
Optional |
Specifies that ASM++ Compiler must regenerate all intermadiate and final files. |
-no_build_all |
By default |
Specifies that ASM++ Compiler must avoid compilation of previously processed untouched files. |
file_name.vdx |
Required |
Specifies the path and name of one VDX file to process it (and all children files it includes). |
Index · Previous: Compiler syntax · Next: Rules of ASM++ language
|
|