multgen.h
来自「產生你所需要的FIR濾波器」· C头文件 代码 · 共 43 行
H
43 行
#ifndef MultGen_H
#define MultGen_H
#include <iostream>
#include <stdio.h>
#include <vector>
#include <string>
#include <stdlib.h>
#include "GenMultScript.h"
#include "GenMultCode.h"
#include "MathVHDL_var.h"
using namespace std;
class MultGen {
private :
GenMultCode *m_genCode;
vector<MathVHDL_var*> mult_out_vector;
public:
// Constructor (File Name, Input Data Width, Multiplication Vector)
MultGen(string fname,int inDataWidth,vector<int> multVector,int ClkEn,int Async,string comments);
void MultGen_construct(string fname,int inDataWidth,vector<int> multVector,int ClkEn,int Async,string comments);
~MultGen();
vector<MathVHDL_var*> GetOutVector();
//vector<int> GetOutBitsize(); // Multiply output bit size
//vector<string> GetComponent(); // Get Component Implementation Header
// Get Component Implementation Header
// Return string
string GetComponent();
// Get connection to port map
// return string
string GetPortMapCon(string ImplementName,string ClkName, MathVHDL_var* DIn, vector<MathVHDL_var*> MultOut);
string GetPortMapCon_ClkEn(string ImplementName,string ClkName,string ClkEnName,MathVHDL_var* DIn, vector<MathVHDL_var*> MultOut);
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?