CFUN

NAME
SYNOPSIS
OPTIONS
DESCRIPTION
EXAMPLE
FILES
SEE ALSO

NAME

cfun - function block database creating program

SYNOPSIS

cfun [-dkps][-Cc_options] infile

OPTIONS

The following options can be specified:

-d

Generate dummy circuit object with equivalence to created functional object. Will overwrite an existing working version of the circuit cell.

-k

The '.p' file and the '.c' file that are generated by the program are not removed.

-p

The C pre-processor will not first be run on the input file.

-s

Messages about the actions taken by the program will not be printed.

-C

The characters directly following this option are used as options for the C compiler.

DESCRIPTION

Cfun can be used to place a description of a function block into the database. As a description of a function block is contained by the database, instances of the function block can be included in a network description and an appropriate sls simulator can be generated. The latter is done by running the program sls_exp. The description of the function block is stored in the 'functional' view of the database, and this view should therefore be present when running cfun.

Cfun will generate a '.c' file from the input description and it will use the C compiler to translate this file into an object file that can be linked to sls. When no options are specified, first the C pre-processor will be run on the input file and the intermediate result will be placed in a file with the extension '.p'.

The input file may contain only one description of a function block. In addition, it may contain all other text that is allowed in a C file.

EXAMPLE

$ cfun -Cg ram.fun
cc -E ram.fun > ram.p
Parsing ram.p ; making ram.c
cc -c -g ram.c
Moving 'sls.o' into database for cell 'ram'

FILES

file.fun

input file

file.p

temporary file

file.c

temporary file

file.o

object file that will be stored in the database

SEE ALSO

O. Hol, "Functional Simulation User's Manual", Delft University of Technology.
cc(1), rmdb(1ICD), sls(1ICD), sls_exp(1ICD), csls(1ICD).