Table of Contents

Origin

This software belongs to the ALLIANCE CAD system from the CAO-VLSI team at ASIM/LIP6/UPMC laboratory.
LIP6/ASIM
University P. et M. Curie 4, place Jussieu 75252 PARIS Cedex 05 FRANCE
Fax : {33/0} 1.44.27.62.86
E-mail support : alliance-support@asim.lip6.fr

Name

beh_addbepor , beh_delbepor , beh_rmvbepor , beh_frebepor

Synopsys

struct bepor *beh_addbepor (list, name, dir, type) struct bepor *list;
char *name;
char dir;
char type;

struct bepor *beh_delbepor (list, pnt)
struct bepor *list;
struct bepor *pnt;

struct bepor *beh_rmvbepor (list, name) struct bepor *list;
char *name;

void beh_frebepor (list)
struct bepor *list;

Parameters

list
pointer of a list of bepor structures
name
name of the port to be added to or removed from the list
dir
direction of the port :
I
for a simple input port
O
for a simple output port
B
for a simple input-output port
Z
for an output port drived by a tri-state emitter
T
for an input-output port drived by a tri-state emitter
type
type of the port :
B
for a BIT
W
for a WOR_BIT
M
for a MUX_BIT
pnt
pointer of the bepor structure to be removed from the list

Description

A bepor is a data structure representing a one-bit port. A bepor list must be ordered in the reverse order of port declarations.

beh_addbepor() adds a bepor structure at the top of a list of bepor structures. The name registred in the bepor structure is produced by namealloc(). The function returns the pointer of the new list. No checks are made by this function.

beh_delbepor() deletes a bepor structure (pointed by pnt) from a list of bepor structures. The function returns the pointer of the new list. No action is made if the structure pointed by pnt doesn't belong to the list.

beh_rmvbepor() deletes a bepor structure (named name) from a list of bepor structures. name is supposed to be produced by namealloc(). The function returns the pointer of the new list. No action is made if no structure named name has been found in the list.

beh_frebepor() deletes a list of bepor structures (pointed by list). No action is made if list is an empty list (NULL pointer). No checks are made by this function.

Example

#include <beh108.h>

struct bepor *list;
char *name;

name = namealloc ("slave_clock");
list = beh_addbepor (list,"master_clock",'I','B'); list = beh_rmvbepor (list,name);

See Also

beh(3) , bepor(3) , namealloc(3)

Bug Report

This tool is under development at the ASIM/LIP6/UPMC laboratory, cao-vlsi research team.
We need your feedbak to improve documentation and tools. If you find bugs, please fill-in the form at http://asim.lip6.fr/alliance/support/bug-report/ Thanks for doing this.

Bug Report

This tool is under development at the ASIM/LIP6/UPMC laboratory, cao-vlsi research team.
We need your feedbak to improve documentation and tools. If you find bugs, please fill-in the form at http://asim.lip6.fr/alliance/support/bug-report/ Thanks for doing this.


Table of Contents

 



Alliance Web Site © 1997, 2002 ASIM/LIP6/UPMC, page maintained by Czo [Olivier Sirol] , last updated on 26 May 2000.