ACT Library
Loading...
Searching...
No Matches
Classes | Functions
body.h File Reference
#include <act/act_id.h>

Go to the source code of this file.

Classes

class  ActBody
 This class is used to hold the contents of the body of any user-defined type or namespace. This is the data structure created during parsing, and stored in the unexpanded versions of namespaces and user-defined types. More...
 
class  ActBody_Inst
 This class is used to hold information about an instance in the body of a namespace and/or user-defined type. More...
 
class  ActBody_Attribute
 This is used to record attributes associated with an instance name. More...
 
class  ActBody_Conn
 This is used to record a connection in the input design file. More...
 
class  ActBody_Loop
 This holds information about loops that has to be unrolled. Loops can be of different types. More...
 
class  ActBody_Select_gc
 This is used to represent the list of guards and statements for conditional circuit construction. More...
 
class  ActBody_Select
 This is used to contain the complete selection statement in the core ACT language. More...
 
class  ActBody_Genloop
 This is used to contain a generalized loop in the ACT body. More...
 
class  ActBody_Assertion
 This is used to store assertions in the body. There are two types of assertions: More...
 
class  ActBody_OverrideAssertion
 This is added for override checks that can be completed only during the expansion phase. The added complexity is that overrides may depend on the identifier being created (it may be conditionally created, for example). The name_check field is used to check that the identifier in fact exists before testing for overrides. More...
 
class  ActBody_Print
 This is used to display messages during expansion. More...
 
class  ActBody_Namespace
 This is used to switch namespaces during the expansion phase. More...
 
class  ActBody_Lang
 This is a language body. More...
 

Functions

void act_syn_loop_setup (ActNamespace *ns, Scope *s, const char *id, Expr *lo, Expr *hi, ValueIdx **vx, int *ilo, int *ihi)
 
void act_syn_loop_teardown (ActNamespace *ns, Scope *s, const char *id, ValueIdx *vx)
 

Function Documentation

◆ act_syn_loop_setup()

void act_syn_loop_setup ( ActNamespace ns,
Scope s,
const char *  id,
Expr lo,
Expr hi,
ValueIdx **  vx,
int *  ilo,
int *  ihi 
)

Standard function to setup loops for syntactic replication.

Parameters
nsis the namespace
sis the scope
idis the loop identifier
lois the start index (or NULL)
hiis the high index (which is hi-1 if lo is NULL)
vxis used to return the ValueIdx for the loop id
ilois used to return the actual low value of the range
ihiis used to return the actual high value of the range

◆ act_syn_loop_teardown()

void act_syn_loop_teardown ( ActNamespace ns,
Scope s,
const char *  id,
ValueIdx vx 
)

Standard function to tear down setup loops for syntactic replication.

Parameters
nsis the namespace
sis the scope
idis the loop identifier
vxis the ValueIdx for the loop id