Taken from ECE253 2015 midterm question 5
Consider the sequential circuit below:

module top_module (
input clk,
input L,
input r_in,
input q_in,
output reg Q);
wire w1;
Mux2_1 ins1(q_in, r_in,L,w1);
flip_flop ins2(w1,clk,Q);
endmodule
module flip_flop(input D, input clk, output Q);
always @(posedge clk)
Q <= D;
endmodule
module Mux2_1(input a, input b, input choose, output D);
always @(*)
if (choose)
D = b;
else
D = a;
endmodule
最后
以上就是缓慢砖头最近收集整理的关于Mt2015 muxdff的全部内容,更多相关Mt2015内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复