Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dpgen_adsb2f(3) [debian man page]

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

NAME
DPGEN_ADSB2F - Adder/Substractor Macro-Generator SYNOPSIS
#include <genlib.h> void GENLIB_MACRO (DPGEN_ADSB2F, char *modelname, long flags, long N); DESCRIPTION
Generate a N bits adder/substractor named modelname. How it works : o if the add_sub signal is set to '0' an addition is performed, otherwise it's a substraction. o Operation can be either signed or unsigned. In unsigned mode c31 is the overflow, in unsigned mode you have to compute overflow by XORing c31 and c30. TERMINAL NAMES 1. add_sub : select addition or substraction (input, 1 bit). 2. c31 : carry out. In unsigned mode, this is the overflow (output, 1 bits). 3. c30 : used to compute overflow in signed mode : overflow := c31 xor c30 (output, 1 bits). 4. i1 : first operand (input, N bits). 5. i0 : second operand (input, N bits). 6. q : output (N bits). 7. vdd : power. 8. vss : ground. EXAMPLE
GENLIB_MACRO(DPGEN_ADSB2F, "model_adsb2f_32" , F_BEHAV|F_PLACE , 32 ); GENLIB_LOINS( "model_adsb2f_32" , "instance1_adsb2f_32" , "add_sub" , "c32" , "c31" , "i1[31:0]" , "i0[31:0]" , "q[31:0]" , "vdd", "vss", NULL ); SEE ALSO
GENLIB_MACRO(3), genlib(1) ASIM
/LIP6 30 July 2004 DPGEN_ADSB2F(3)

Check Out this Related Man Page

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

NAME
DPGEN_SFFT - Static Flip-Flop with Scan-Path Macro-Generator SYNOPSIS
#include <genlib.h> void GENLIB_MACRO (DPGEN_SFFT, char *modelname, long flags, long N); DESCRIPTION
Generate a N bits static flip-flop with scan-path named modelname. The two latches of this flip-flop are i.e. each one is made of two interters looped togethers. How it works : o scan when set to '1' enables the scan-path mode. Note that in scan-path mode, the wen signal is not effective. o scin : the input of the scan-path. This terminal is different from i0[0]. The scout is q[N-1] (in the following example this is q[31]). o wen when set to '1' enables the writing of the flip-flop. TERMINAL NAMES 1. scan : scan-path mode (input, 1 bit). 2. scin : scan path in (input, 1 bit). 3. wen : write enable (input, 1 bit). 4. ck : clock signal (input, 1 bit). 5. i0 : data input (N bits). 6. q : output (N bits). 7. vdd : power. 8. vss : ground. EXAMPLE
GENLIB_MACRO(DPGEN_SFFT, "model_sfft_32" , F_BEHAV|F_PLACE , 32 ); GENLIB_LOINS( "model_sfft_32" , "instance1_sfft_32" , "scan" , "scin" , "wen" , "ck" , "i0[31:0]" , "q[31:0]" /* a[31] is "scout". */ , "vdd", "vss", NULL ); SEE ALSO
GENLIB_MACRO(3), genlib(1) ASIM
/LIP6 30 July 2004 DPGEN_SFFT(3)
Man Page

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Using variables in funcion substr.

Hello.. every body... i hope you can helo me with this small code. I need to substraction a one part of the string...i try to do with this code: cat $TSMINCLUDE | while read c do l=${#c} if ]; then long=$((l-5)) else long=$((l-6)) fi fs=`echo $c | awk... (5 Replies)
Discussion started by: odette.delfin
5 Replies

2. Shell Programming and Scripting

awk with tsv & csv

Hi! HELP! I have a few issues... I have a tsv with headers time, binary time, bytes, and bits. I'm trying to extract only time & bits. (Trying to graph throughput) Using: awk -F"\t" '{print $1, "\t"$4}' infile.tsv > outfile.tsv Output is only the headers: time bits Thinking it... (2 Replies)
Discussion started by: calitiggr
2 Replies

3. Programming

Comparing unsigned char bits.

/******************************************************************************/ /* Printing an unsigned character in bits */ #include <stdio.h> void display_bits ( unsigned char ); int main() { unsigned char x; /*... (15 Replies)
Discussion started by: robin_simple
15 Replies

4. Programming

Help with bit vector and setting its bits?

void shuffle (card_t cards, card_t cards2, char *bitvec) { int i; unsigned char temp, r; srand(time(NULL)); for (i = 0; i < 52; i++) { r = rand() % 52; temp = bitvec; if (!(temp & (1 << (8- (r % 8))))) { temp |= (1 << (8- (r % 8)));------->is this my problem? } } } ok so I am... (1 Reply)
Discussion started by: bjhum33
1 Replies

Featured Tech Videos