dpgen_shift(3) - Linux man page

Name

DPGEN_SHIFT - Shifter Macro-Generator

Synopsis

#include <genlib.h>

void GENLIB_MACRO (DPGEN_SHIFT, char *modelname, long flags, long N);

Description

Generate a N bits shifter with name modelname.

How it works :

Terminal Names

  1. ..
  2. op : select the kind of shift (input, 2 bit)..
  3. shamt : the shift amount (input, Y bits)..
  4. i : value to shift (input, N bits)..
  5. o : output (N bits)..
  6. vdd : power.
  7. vss : ground.

Example

GENLIB_MACRO(DPGEN_SHIFT, "model_shift_32",
                          F_BEHAV|F_PLACE,
                          32);
GENLIB_LOINS("model_shift_32",
             "instance1_shift_32",
             "op[1:0]",
             "shamt[4:0]",
             "x[31:0]",
             "y[31:0]",
             "vdd", "vss", NULL);

See Also

genlib_macro(3), genlib(1)