虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

eng<b>In</b>eer<b>In</b>g

  • it is a verilog code written for FIFO in modelsim simulator and it will synthesize in xinlix ise 8

    it is a verilog code written for FIFO in modelsim simulator and it will synthesize in xinlix ise 8.2i.i have tested it om my kit.[i mae my own kit for spartan2 device].you can use this code in any DSP project in which data entry is required.

    标签: synthesize simulator modelsim verilog

    上传时间: 2014-06-26

    上传用户:zhuyibin

  • list is a data dtructure. this is a data structure type implemantation and it is implemented in C pr

    list is a data dtructure. this is a data structure type implemantation and it is implemented in C prgramming language. General header contains pointer to object so list.c in c is implemented in generic way.

    标签: data implemantation implemented dtructure

    上传时间: 2017-03-27

    上传用户:LIKE

  • 一道程序编译顺序的考题

    一道程序编译顺序的考题,涉及到函数调用的先后顺序及运算符号的优先级等问题。下面我展开给你讲。 C的程序编译总是从main函数开始的,这道题的重点在“fun((int)fun(a+c,b),a-c)) ”语句。 系统首先要确定最外层 fun()函数的实参,第一个参数的确定需要递归调用fun()函数(不妨称其为内层函数)。内层函数的两个参数分别为x=a+b=2+8=10、y=b=5,执行函数体x+y=10+5=15,于是得外层函数的参数x=15。其另一个参数y=a-c=2-b=-6,再次执行函数体,得最终返回值x+y=15+(-6)=9。

    标签: 程序编译

    上传时间: 2014-12-03

    上传用户:徐孺

  • 找一个最小的自然数

    找一个最小的自然数,使它等于不同的两组三个自然数的三次幂之和,即找最小的x,使得:x=a*a*a+b*b*b+c*c*c = d*d*d+e*e*e+f*f*f 其中,a,b,c,d,e,f都是自然数,a<=b<=c, d<=e<=f [a,b,c]!=[d,e,f] 进一步,是否还存在另外一个自然数满足上述条件,可能的话请输出其结果

    标签:

    上传时间: 2017-05-16

    上传用户:vodssv

  • 建立两个任务AB

    建立两个任务AB,A可以挂起B,同时也可以恢复B

    标签:

    上传时间: 2017-06-02

    上传用户:han_zh

  • Tic tac toe is (exactly what re your thinking) and it s the first game I made. Made it in one whole

    Tic tac toe is (exactly what re your thinking) and it s the first game I made. Made it in one whole day in Turbo C. It uses primitive graphics drawing and also demonstrates how to output an image. Written in C, also uses a library I got from the net (included) for image output.

    标签: thinking exactly first whole

    上传时间: 2017-08-13

    上传用户:xhz1993

  • wavelet transform for the prediction of the colorant in food product, wavelet transform in chemestry

    wavelet transform for the prediction of the colorant in food product, wavelet transform in chemestry, theshold,CWT in electrochemestry signal

    标签: transform wavelet prediction chemestry

    上传时间: 2017-08-24

    上传用户:xg262122

  • 学生管理啊

    #include <iostream.h> #include <string.h> #include <iomanip.h> #include "Stud.h" Stud::Stud(){} char *Stud::getno()              //获取学号 { return no; } char *Stud::getname()            //获取姓名 { return name; } char *Stud::getsex()             //获取性别 { return sex; } char *Stud::getminzu()           //获取民族 { return minzu; } char *Stud::getaddress()         //获取出生地 { return address; } char *Stud::getbirth()           //获取出生年月 { return birth; } int Stud::gettag()               //获取姓名 { return tag; } void Stud::changeno(char n[])                 //设置学号 { strcpy(no,n); } void Stud::changename(char na[])              //设置姓名 { strcpy(name,na); } void Stud::changesex(char s[])                //设置性别 { strcpy(sex,s); } void Stud::changeminzu(char m[])               //设置民族 { strcpy(minzu,m); } void Stud::changeaddress(char a[])             //设置出生地 { strcpy(address,a); } void Stud::changebirth(char b[])               //设置出生年月 { strcpy(birth,b); } void Stud::addstudent(char *rn,char *rna)      //增加学生 {     strcpy(no,rn); strcpy(name,rna); } void Stud::addstudent(char *rn,char *rna,char *rs,char *rm,char *ra,char *rb)    //增加学生 { tag=0; strcpy(no,rn); strcpy(name,rna); strcpy(sex,rs); strcpy(minzu,rm); strcpy(address,ra); strcpy(birth,rb); } void Stud::delstud()                         //设置删除标记 { tag=1; } void Stud::disp()                            //输出学生信息 { cout<<setw(15)<<no<<setw(10)<<name<<setw(10)<<sex<<setw(10)<<minzu<<setw(10)<<address<<setw(10)<<birth<<endl; } void Stud::display()                         //输出学生信息 {     cout<<setw(15)<<no<<setw(10)<<name; }

    标签: 学生

    上传时间: 2016-12-29

    上传用户:767483511

  • 数字图像处理技术 图像的基本运算

    1. 编写M程序,利用图像点运算的线性函数:G = aF + b, 给出a、b的不同值,改变图像的对比度、亮度以及图像反相的效果。 2.  利用“二值图像与原图像做点乘,得到子图像”的原理.,编写M程序,构造特殊的二值图像,最终得到需要的子图像。 3.  编写M程序,实现两个大小不同图像的叠加。 4,(提高题)编写M程序,实现图像的动态平移。

    标签: 数字图像 处理技术 图像 运算

    上传时间: 2017-05-10

    上传用户:mouroutao

  • 道理特分解法

    #include "iostream" using namespace std; class Matrix { private: double** A; //矩阵A double *b; //向量b public: int size; Matrix(int ); ~Matrix(); friend double* Dooli(Matrix& ); void Input(); void Disp(); }; Matrix::Matrix(int x) { size=x; //为向量b分配空间并初始化为0 b=new double [x]; for(int j=0;j<x;j++) b[j]=0; //为向量A分配空间并初始化为0 A=new double* [x]; for(int i=0;i<x;i++) A[i]=new double [x]; for(int m=0;m<x;m++) for(int n=0;n<x;n++) A[m][n]=0; } Matrix::~Matrix() { cout<<"正在析构中~~~~"<<endl; delete b; for(int i=0;i<size;i++) delete A[i]; delete A; } void Matrix::Disp() { for(int i=0;i<size;i++) { for(int j=0;j<size;j++) cout<<A[i][j]<<" "; cout<<endl; } } void Matrix::Input() { cout<<"请输入A:"<<endl; for(int i=0;i<size;i++) for(int j=0;j<size;j++){ cout<<"第"<<i+1<<"行"<<"第"<<j+1<<"列:"<<endl; cin>>A[i][j]; } cout<<"请输入b:"<<endl; for(int j=0;j<size;j++){ cout<<"第"<<j+1<<"个:"<<endl; cin>>b[j]; } } double* Dooli(Matrix& A) { double *Xn=new double [A.size]; Matrix L(A.size),U(A.size); //分别求得U,L的第一行与第一列 for(int i=0;i<A.size;i++) U.A[0][i]=A.A[0][i]; for(int j=1;j<A.size;j++) L.A[j][0]=A.A[j][0]/U.A[0][0]; //分别求得U,L的第r行,第r列 double temp1=0,temp2=0; for(int r=1;r<A.size;r++){ //U for(int i=r;i<A.size;i++){ for(int k=0;k<r-1;k++) temp1=temp1+L.A[r][k]*U.A[k][i]; U.A[r][i]=A.A[r][i]-temp1; } //L for(int i=r+1;i<A.size;i++){ for(int k=0;k<r-1;k++) temp2=temp2+L.A[i][k]*U.A[k][r]; L.A[i][r]=(A.A[i][r]-temp2)/U.A[r][r]; } } cout<<"计算U得:"<<endl; U.Disp(); cout<<"计算L的:"<<endl; L.Disp(); double *Y=new double [A.size]; Y[0]=A.b[0]; for(int i=1;i<A.size;i++ ){ double temp3=0; for(int k=0;k<i-1;k++) temp3=temp3+L.A[i][k]*Y[k]; Y[i]=A.b[i]-temp3; } Xn[A.size-1]=Y[A.size-1]/U.A[A.size-1][A.size-1]; for(int i=A.size-1;i>=0;i--){ double temp4=0; for(int k=i+1;k<A.size;k++) temp4=temp4+U.A[i][k]*Xn[k]; Xn[i]=(Y[i]-temp4)/U.A[i][i]; } return Xn; } int main() { Matrix B(4); B.Input(); double *X; X=Dooli(B); cout<<"~~~~解得:"<<endl; for(int i=0;i<B.size;i++) cout<<"X["<<i<<"]:"<<X[i]<<" "; cout<<endl<<"呵呵呵呵呵"; return 0; } 

    标签: 道理特分解法

    上传时间: 2018-05-20

    上传用户:Aa123456789