genlib_macro(3) - Linux man page

Name

GENLIB_MACRO - Interface with all MACRO generators.

Synopsis

#include <genlib.h>

void GENLIB_MACRO (long function, char *modelname, long flags, long N, long drive, long regNumber, char *constVal);

Description

The GENLIB_MACRO() fonction call is the generic interface to all genlib macro generators. As all generators do not have the sames arguments it takes a variable number of arguments.

Arguments are of two kinds :

Arguments

  1. ..
  2. long function : (mandatory) specify which macro-generator is to be invoked. For example, to create a two entry multiplexer gives GENLIB_MUX2..
  3. char* modelname : (mandatory) specify the name of the model to be generated. For example : "model_mux2_32bits"..
  4. long flags : (mandatory) tells which views are to be generated. It is a logical combination of the following values : (ORed) .
  5. F_PLACE : generate physical view (placement only)..
  6. F_BEHAV : generate behavioral view (VHDL view)..
  7. F_LSB_FIRST : the terminal of index zero is matched to the LSB, thus a 32 bits vector will be written : "signal[31:0]".
  8. F_MSB_FIRST : the terminal of index zero is matched to the MSB, thus a 32 bits vector will be written : "signal[0:31]" (aka. IBM notation).
  1. ..
  2. long N : (mandatory) width of the model's bus to be generated..
  3. long drive : (optional) output power drive..
  4. long regNumber : (optional) number of registers or depth of for a FIFO macro-generator.
  5. char* constval : (optional) a character string holding a constant. For example : "0xFFFF0000".

Available Macro-generators

See Also

mbk(1),