DPGEN_NAND2MASK - Online Linux Manual PageSection : 3
Updated : 30 July 2004
Source : ASIM/LIP6
Note : Alliance - genlib User's Manual
NAMEDPGEN_NAND2MASK − Programmable Mask Macro-Generator
SYNOPSIS#include <genlib.h> void GENLIB_MACRO (DPGEN_NAND2MASK, char *modelname, long flags, long N, char *constVal);
DESCRIPTIONGenerate a N bits conditionnal NAND mask named modelname. How it works : • if the cmd signal is set to '0', the mask is NOT applied, so the whole operator behave like an inverter. • if the cmd signal is set to '1', the mask IS applied, the output is the complemented result of the input value ANDed with the mask (supplied 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 operator. A common error is to give a real C constant for the constVal argument. Be aware that it is a character string.
TERMINAL NAMES1. cmd : mask control (1 bit). 2. i0 : input (N bits). 3. q : output (N bits). 4. vdd : power. 5. vss : ground.
BEHAVIORnq <= WITH cmd SELECT not(i0) WHEN '0',
not(i0 and X"0000FFFF") WHEN '1';
EXAMPLEGENLIB_MACRO(DPGEN_NAND2MASK, "model_nand2mask_0000FFFF_32"
, F_BEHAV|F_PLACE
, 32
, "0x0000FFFF" /* A string! */
);
GENLIB_LOINS( "model_nand2mask_0000FFFF_32"
, "instance1_nand2mask_32"
, "cmd"
, "i0[31:0]"
, "q[31:0]"
, "vdd", "vss", NULL
);
SEE ALSOGENLIB_MACRO(3), genlib(1) 0
Johanes Gumabo
Data Size : 8,571 byte
man-DPGEN_NAND2MASK.3alcBuild : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 6 / 166,340
Visitor ID : :
Visitor IP : 3.147.86.104 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.