FPGA的小问题,急
modulemux_3bit_8to1(S,P,Q,U,V,W,X,Y,Z,M);input[2:0]S,P,Q,U,V,W,X,Y,Z;output[2:0]M;wir...
module mux_3bit_8to1(S,P,Q,U,V,W,X,Y,Z,M);
input[2:0]S,P,Q,U,V,W,X,Y,Z;
output[2:0]M;
wire[2:0]m0,m1,m2,m3,m4,m5;
// Leftmost 2 to 1 Multiplexers
//FIRST
assign m0[0] = (~S[0]&P[0])|(S[0]&Q[0]);
assign m0[1] = (~S[0]&P[1])|(S[0]&Q[1]);
assign m0[2] = (~S[0]&P[2])|(S[0]&Q[2]);
//SECOND
assign m1[0] = (~S[0]&U[0])|(S[0]&V[0]);
assign m1[1] = (~S[0]&U[1])|(S[0]&V[1]);
assign m1[2] = (~S[0]&U[2])|(S[0]&V[2]);
//THIRD
assign m2[0] = (~S[0]&W[0])|(S[0]&X[0]);
assign m2[1] = (~S[0]&W[1])|(S[0]&X[1]);
assign m2[2] = (~S[0]&W[2])|(S[0]&X[2]);
//FROTH
assign m3[0] = (~S[0]&Y[0])|(S[0]&Z[0]);
assign m3[1] = (~S[0]&Y[1])|(S[0]&Z[1]);
assign m3[2] = (~S[0]&Y[2])|(S[0]&Z[2]);
//MID FIRST
assign m4[0] = (~S[1]&m0[0])|(S[1]&m1[0]);
assign m4[1] = (~S[1]&m0[1])|(S[1]&m1[1]);
assign m4[2] = (~S[1]&m0[2])|(S[1]&m1[2]);
//MID SECOND
assign m5[0] = (~S[1]&m2[0])|(S[1]&m3[0]);
assign m5[1] = (~S[1]&m2[1])|(S[1]&m3[1]);
assign m5[2] = (~S[1]&m2[2])|(S[1]&m3[2]);
//LAST
assign M[0] = (~S[2]&m4[0])|(S[2]&m5[0]);
assign M[1] = (~S[2]&m4[1])|(S[2]&m5[1]);
assign M[2] = (~S[2]&m4[2])|(S[2]&m5[2]);
endmodule
这是一个三位八选一的程序,想问下其中S P Q U V...这些字母代表什么意思,比如在FPGA开发板上代表什么? 展开
input[2:0]S,P,Q,U,V,W,X,Y,Z;
output[2:0]M;
wire[2:0]m0,m1,m2,m3,m4,m5;
// Leftmost 2 to 1 Multiplexers
//FIRST
assign m0[0] = (~S[0]&P[0])|(S[0]&Q[0]);
assign m0[1] = (~S[0]&P[1])|(S[0]&Q[1]);
assign m0[2] = (~S[0]&P[2])|(S[0]&Q[2]);
//SECOND
assign m1[0] = (~S[0]&U[0])|(S[0]&V[0]);
assign m1[1] = (~S[0]&U[1])|(S[0]&V[1]);
assign m1[2] = (~S[0]&U[2])|(S[0]&V[2]);
//THIRD
assign m2[0] = (~S[0]&W[0])|(S[0]&X[0]);
assign m2[1] = (~S[0]&W[1])|(S[0]&X[1]);
assign m2[2] = (~S[0]&W[2])|(S[0]&X[2]);
//FROTH
assign m3[0] = (~S[0]&Y[0])|(S[0]&Z[0]);
assign m3[1] = (~S[0]&Y[1])|(S[0]&Z[1]);
assign m3[2] = (~S[0]&Y[2])|(S[0]&Z[2]);
//MID FIRST
assign m4[0] = (~S[1]&m0[0])|(S[1]&m1[0]);
assign m4[1] = (~S[1]&m0[1])|(S[1]&m1[1]);
assign m4[2] = (~S[1]&m0[2])|(S[1]&m1[2]);
//MID SECOND
assign m5[0] = (~S[1]&m2[0])|(S[1]&m3[0]);
assign m5[1] = (~S[1]&m2[1])|(S[1]&m3[1]);
assign m5[2] = (~S[1]&m2[2])|(S[1]&m3[2]);
//LAST
assign M[0] = (~S[2]&m4[0])|(S[2]&m5[0]);
assign M[1] = (~S[2]&m4[1])|(S[2]&m5[1]);
assign M[2] = (~S[2]&m4[2])|(S[2]&m5[2]);
endmodule
这是一个三位八选一的程序,想问下其中S P Q U V...这些字母代表什么意思,比如在FPGA开发板上代表什么? 展开
1个回答
北京康思
2018-09-20 广告
2018-09-20 广告
1、基本功能。市面上的电子负载均有基本的四项功能:恒流、恒压、恒阻和恒功率(安捷伦没有恒功率)。在功能基本相同,精确度相差不大的情况下,怎么判断是否符合要求呢?CHROMA和博计的电子负载只有一套工作电路,就是恒流功能。其他功能是根据欧姆定...
点击进入详情页
本回答由北京康思提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询