paini(2)

ORIGIN

This software belongs to the ALLIANCE CAD system from the
CAO-VLSI team at MASI laboratory, Universite P. et M. Curie
4, place Jussieu ; 75252 PARIS Cedex 05 ; FRANCE
Fax: (33-1) 44.27.62.86 ; E-mail: cao-vlsi@masi.ibp.fr

NAME

pat_addpaini, pat_frepaini

SYNOPSIS

struct paini *pat_addpaini (lastpaini, name, value)
struct paini *lastpaini;
char         *name;
char          value;
void pat_frepaini (listpaini)
struct paini *listpaini;

PARAMETERS

lastpaini
    pointer on the last paini structure

name
    register's name

value
    value to be forced into the register

listpaini
    list of paini structures to be deleted

DESCRIPTION

A paini is a data structure representing the initialization of a one-bit register.

pat_addpaini() adds a paini structure at the top of a list of paini structures. The name registered in the paini is produced by namealloc(). The function returns the pointer of the new list. No check is made by this function.

pat_frepaini() deletes a list of paini structures. If the list to be deleted is an empty list (NULL pointer), no action is produced. No check is made by this function.

EXAMPLE

#include <pat104.h>
struct paini *list;
list = pat_addpaini (list, "general_register", '1');
pat_frepaini (list);

SEE ALSO

libpat(2), paini(2), namealloc(2)

BUGS

Please e-mail to cao-vlsi@masi.ibp.fr for bug report and suggestions.