CGRA-ME
Control.h
Go to the documentation of this file.
1 #include <iostream>
2 #include <fstream>
3 #include <vector>
4 
5 void buildComp(std::ofstream &myfile, std::vector<std::string> ports, int mem_size);
6 void buildControl(std::ofstream &myfile, std::vector<std::vector<std::string>> io_port, std::vector<std::vector<std::string>> mem_port,
7 std::string *parameter, std::string *input, std::string *logic, int mem_index);
8 void buildRam(std::ofstream &myfile, int mem_num, std::string *parameter, std::string *input, std::string *logic, int mem_size);
9 void buildHybridHeader(std::ofstream &header, std::vector<std::string> memPort, std::vector<std::string> ioPort);
10 bool IsPowerOfTwo(int x);
buildRam
void buildRam(std::ofstream &myfile, int mem_num, std::string *parameter, std::string *input, std::string *logic, int mem_size)
IsPowerOfTwo
bool IsPowerOfTwo(int x)
Definition: Control.cpp:740
buildComp
void buildComp(std::ofstream &myfile, std::vector< std::string > ports, int mem_size)
buildHybridHeader
void buildHybridHeader(std::ofstream &header, std::vector< std::string > memPort, std::vector< std::string > ioPort)
buildControl
void buildControl(std::ofstream &myfile, std::vector< std::vector< std::string >> io_port, std::vector< std::vector< std::string >> mem_port, std::string *parameter, std::string *input, std::string *logic, int mem_index)