
When you create your PLA you may include the PLA preprocessor code in the same file as your FHDL code. The PLA preprocessor code must begin with a statement of the following form.
my_pla: pla
The PLA preprocessor code must end with the following statement.
endpla
The "pla" and "endpla" statements replace the "circuit" and "endcircuit" statements used in FHDL code. The PLA preprocessor expects all input to be supplied from the standard input and produces all output on the standard output. Furthermore, all non-rom code is passed unchanged from the input to the output, so PLA preprocessor code can be mixed with FHDL in the same file. More than one PLA may be specified in the same file. The following command invokes the PLA preprocessor. (This command is invoked automatically when the fhdl command with the "-n" option is used.)
plasm <testit.pla >testit.ckt
The output of the PLA preprocessor may also be directly piped into the FHDL compiler as follows.
plasm <testit.pla | fhdl >testit.c
If an include library is required, specify it as follows (pla.stuff is the name of a directory containing your include files).
plasm pla.stuff <testit.pla | fhdl >testit.c