FPGA复习题(5)

2019-08-17 14:13

if(flag==4'h8) begin flag<=4'h0; control_out<=1'b0; end

else flag<=flag+1'b1; end else begin

state_bing_in<=bing_in; control_out<=1'b0; end end endmodule

/////串并转换

module chuanbing_in(clock,reset_n,chuan_in,bing_out,control_in); input clock,reset_n,chuan_in,control_in; output[7:0] bing_out;

reg [7:0] bing_out;

always @ (negedge clock or negedge reset_n) begin if(!reset_n) begin bing_out<=8'hxx; end

else if(control_in==1'b1) begin

bing_out<={bing_out[6:0],chuan_in}; end

else bing_out<=8'hxx; end endmodule


FPGA复习题(5).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:spss数据分析教程之SPSS信度分析和效度分析

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: