Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dpgen_shift(3) [debian man page]

DPGEN_SHIFT(3)						  Alliance - genlib User's Manual					    DPGEN_SHIFT(3)

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 : o if the op[0] signal is set to '1' performs a right shift, performs a left shift otherwise. o if the op[1] signal is set to '1' performs an arithmetic shift (only meaningful in case of a right shift). o shamt : specifies the shift amount. The width of this signal (Y) is computed from the operator's width : Y = ceil(log2(N)) - 1. TERMINAL NAMES 1. op : select the kind of shift (input, 2 bit). 2. shamt : the shift amount (input, Y bits). 3. i : value to shift (input, N bits). 4. o : output (N bits). 5. vdd : power. 6. 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) ASIM
/LIP6 30 July 2004 DPGEN_SHIFT(3)

Check Out this Related Man Page

DPGEN_XNOR2MASK(3)					  Alliance - genlib User's Manual					DPGEN_XNOR2MASK(3)

NAME
DPGEN_XNOR2MASK - Programmable Mask Macro-Generator SYNOPSIS
#include <genlib.h> void GENLIB_MACRO (DPGEN_XNOR2MASK, char *modelname, long flags, long N, char *constVal); DESCRIPTION
Generate a N bits conditionnal XNOR mask named modelname. How it works : o if the cmd signal is set to '0', the mask is NOT applied, so the whole operator behave like an inverter. o if the cmd signal is set to '1', the mask IS applied, the output is the complemented result of the input value XORed with the mask (suplied by constVal). The constant constVal is given to the macro-generator call, therefore the value cannot be changed afterward : it's hard wired in the opera- tor. A common error is to give a real C constant for the constVal argument. Be aware that it is a character string. TERMINAL NAMES 1. cmd : mask control (1 bit). 2. i0 : input (N bits). 3. q : output (N bits). 4. vdd : power. 5. vss : ground. BEHAVIOR nq <= WITH cmd SELECT not(i0) WHEN '0', not(i0 xor X"0000FFFF") WHEN '1'; EXAMPLE
GENLIB_MACRO(DPGEN_XNOR2MASK, "model_xnor2mask_0000FFFF_32" , F_BEHAV|F_PLACE , 32 , "0x0000FFFF" /* A string! */ ); GENLIB_LOINS( "model_xnor2mask_0000FFFF_32" , "instance1_xnor2mask_32" , "cmd" , "i0[31:0]" , "q[31:0]" , "vdd", "vss", NULL ); SEE ALSO
GENLIB_MACRO(3), genlib(1) ASIM
/LIP6 30 July 2004 DPGEN_XNOR2MASK(3)
Man Page