⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 entity.cpp

📁 采用VHDL语言设计一个4通道的数据采集控制模块。系统的功能描述如下: 1.系统主时钟为100 MHz。 2.数据为16位-数据线上连续2次00FF后数据传输开始。 3.系统内部总线宽度为8位。
💻 CPP
字号:
////////////////////////////////////////////////////////////////////////////////
//   ____  ____   
//  /   /\/   /  
// /___/  \  /   
// \   \   \/  
//  \   \        Copyright (c) 2003-2004 Xilinx, Inc.
//  /   /        All Right Reserved. 
// /___/   /      
// \   \  /  \  
//  \___\/\___\
////////////////////////////////////////////////////////////////////////////////


#include "ieee/std_logic_unsigned/std_logic_unsigned.h"
#include "ieee/std_logic_arith/std_logic_arith.h"
#include "ieee/std_logic_1164/std_logic_1164.h"
#include "work/l_eight_01/entity.h"

static const char *entFileName = "E:/大三学习资料/期末报告/DAQ_pengfu/L_eight_01.vhd";
#ifdef _MSC_VER
#pragma warning(disable: 4355)
#endif

Work_l_eight_01::Work_l_eight_01(const char *name, const char* ArchName, const char* fileName, int numOfLine): HSim__s6(false,name,"L_eight_01", ArchName, fileName, HSim::VhdlDesignEntity, numOfLine + 9)

{
  SE[0].initialize("data", &IeeeStd_logic_1164->Std_logic, this, HSim::PortSigIn);
  ;
  SE[0].setDefaultValue((char *)0);
;
  SE[1].initialize("clk", &IeeeStd_logic_1164->Std_logic, this, HSim::PortSigIn);
  ;
  SE[1].setDefaultValue((char *)0);
;
  SE[2].initialize("ce", &IeeeStd_logic_1164->Std_logic, this, HSim::PortSigIn);
  ;
  SE[2].setDefaultValue((char *)0);
;
  SE[3].initialize("rst", &IeeeStd_logic_1164->Std_logic, this, HSim::PortSigIn);
  ;
  SE[3].setDefaultValue((char *)0);
;
  SE[4].initialize("q", &IeeeStd_logic_1164->Std_logic, this, HSim::PortSigOut, HSimSA::charToMem(2));
  ;
  ;
  SetPorts();
 
}

Work_l_eight_01::~Work_l_eight_01()
{
}

void Work_l_eight_01::SetPorts()
{
}

void Work_l_eight_01::constructEntityObject()
{
;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -