CGRA-ME
Functions
Control.cpp File Reference
#include <CGRA/Control.h>
#include <math.h>
#include <cmath>

Go to the source code of this file.

Functions

void buildComp (ofstream &myfile, std::vector< std::string > ports, int mem_size)
 
void buildControl (ofstream &myfile, vector< vector< string >> io_port, vector< vector< string >> mem_port, string *parameter, string *input, string *logic, int mem_index)
 
void buildRam (ofstream &myfile, int mem_num, string *parameter, string *input, string *logic, int mem_size)
 
bool IsPowerOfTwo (int x)
 
void buildHybridHeader (ofstream &header, vector< string > memPort, vector< string > ioPort)
 

Function Documentation

◆ buildComp()

void buildComp ( ofstream &  myfile,
std::vector< std::string >  ports,
int  mem_size 
)

Definition at line 10 of file Control.cpp.

◆ buildControl()

void buildControl ( ofstream &  myfile,
vector< vector< string >>  io_port,
vector< vector< string >>  mem_port,
string *  parameter,
string *  input,
string *  logic,
int  mem_index 
)

Definition at line 96 of file Control.cpp.

◆ buildHybridHeader()

void buildHybridHeader ( ofstream &  header,
vector< string >  memPort,
vector< string >  ioPort 
)

Definition at line 745 of file Control.cpp.

◆ buildRam()

void buildRam ( ofstream &  myfile,
int  mem_num,
string *  parameter,
string *  input,
string *  logic,
int  mem_size 
)

Definition at line 413 of file Control.cpp.

◆ IsPowerOfTwo()

bool IsPowerOfTwo ( int  x)

Definition at line 740 of file Control.cpp.