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

📄 cpp1.cpp

📁 在quartus软件下用VHDL语言实现DDS
💻 CPP
字号:
#include<iostream.h>
#include<fstream.h>
#include<math.h>

void main()
{  
ofstream outfile;
outfile.open("juxing.mif");
outfile<<"--juxing.mif--"<<endl;
outfile<<"depth=4096;"<<endl;
outfile<<"width=10;"<<endl;
outfile<<"address_radix=dec;"<<endl;
outfile<<"data_radix=hex;"<<endl;
outfile<<"content begin"<<endl;
for(int i=0;i<2048;i++)
{outfile<<dec<<i<<"  :  "<<hex<<1024<<";"<<endl;
}
for(int j=2048;j<4096;j++)
{outfile<<dec<<j<<"  :  "<<hex<<0<<";"<<endl;
}
outfile<<"end;";
}





⌨️ 快捷键说明

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