24#ifndef __ACT_PASS_STATE_H__
25#define __ACT_PASS_STATE_H__
30#include <act/passes/booleanize.h>
31#include <common/hash.h>
32#include <common/array.h>
147 int *offset,
int *type,
int *width);
150 int *offset_i,
int *offset_b);
155 int *offset,
int *type,
int *width) {
170 if (off >= 0) {
return 0; }
172 if (off & 1) {
return 0; }
177 if (off >= 0) {
return 0; }
179 if (off & 1) {
return 1; }
186 return (off + 1)/2 - 1;
This pass is used to pre-process information about languages and variables within the design....
Definition: booleanize.h:271
act_boolean_netlist_t * getBNL(Process *p)
The main Act class used to read in an ACT file and create basic data structures. All design informati...
Definition: act.h:334
This class is used to store Act identifiers that correspond to instances. Identifiers have an optiona...
Definition: act_id.h:56
The main ActPass class used to implement an ACT analysis/synthesis pass. All the core tools use this ...
Definition: act.h:791
Act * a
Definition: act.h:810
Definition: statepass.h:131
state_counts _globals
Definition: statepass.h:213
void printLocal(FILE *fp, Process *p)
int checkIdExists(ActId *id)
int _inst_offsets
Definition: statepass.h:210
act_boolean_netlist_t * getBNL(Process *p)
Definition: statepass.h:141
int instOffsets()
Definition: statepass.h:195
int _black_box_mode
Definition: statepass.h:209
int portIdx(int off)
Definition: statepass.h:183
ActBooleanizePass * bp
Definition: statepass.h:215
void * local_op(Process *p, int mode=0)
stateinfo_t * rootStateInfo()
Definition: statepass.h:167
act_connection * getConnFromOffset(stateinfo_t *si, int offset, int type, int *dy)
bool connExists(stateinfo_t *si, act_connection *c)
FILE * _fp
Definition: statepass.h:216
state_counts getGlobals()
Definition: statepass.h:165
int getTypeDynamicStructOffset(stateinfo_t *si, act_connection *c, int *offset_i, int *offset_b)
stateinfo_t * _root_si
Definition: statepass.h:212
int isPortOffset(int off)
Definition: statepass.h:176
int getTypeOffset(stateinfo_t *si, act_connection *c, int *offset, int *type, int *width)
void Print(FILE *fp, Process *p=NULL)
stateinfo_t * getStateInfo(Process *p)
ActStatePass(Act *a, int inst_offset=0)
int isGlobalOffset(int off)
Definition: statepass.h:169
stateinfo_t * countLocalState(Process *p)
static void getStructCount(Data *d, state_counts *sc)
int globalIdx(int off)
Definition: statepass.h:189
int globalBoolOffset(ActId *id)
int getTypeOffset(Process *p, act_connection *c, int *offset, int *type, int *width)
Definition: statepass.h:154
act_connection * getConnFromOffset(Process *p, int offset, int type, int *dy)
Definition: statepass.h:161
A user-defined data types.
Definition: types.h:1062
User-defined processes.
Definition: types.h:750
Connections.
Definition: value.h:113
Definition: statepass.h:41
int chans
Definition: statepass.h:45
void addBool(int v=1)
Definition: statepass.h:52
state_counts()
Definition: statepass.h:72
int numCHPVars()
Definition: statepass.h:62
void addInt(int v=1)
Definition: statepass.h:49
void addVar(state_counts &s, int sz=1)
Definition: statepass.h:65
int bools
Definition: statepass.h:42
int numBools()
Definition: statepass.h:53
void addCHPBool(int v=1)
Definition: statepass.h:58
int numAllBools()
Definition: statepass.h:60
int numInts()
Definition: statepass.h:50
int numCHPBools()
Definition: statepass.h:59
int ints
Definition: statepass.h:46
void addChan(int v=1)
Definition: statepass.h:55
int numChans()
Definition: statepass.h:56
int xbools
Definition: statepass.h:44
int numAllVars()
Definition: statepass.h:63
This contains the implementation of a number of C++ iterators to make it easier to walk through an AC...
This structure is computed for each process by the Booleanize pass. It summarizes the information abo...
Definition: booleanize.h:187
Definition: statepass.h:75
int ismulti
Definition: statepass.h:99
state_counts all
Definition: statepass.h:84
struct pHashtable * map
Definition: statepass.h:102
bitset_t * multi
Definition: statepass.h:91
int chp_ismulti
Definition: statepass.h:125
struct pHashtable * inst
Definition: statepass.h:127
act_boolean_netlist_t * bnl
Definition: statepass.h:76