如何用4个与非门将d触发器变为jk触发器

如题所述

第1个回答  2011-05-06
上学期才刚考过,忘了。。。路过。 用HDL这么搞 module count4(clk,reset,co); input clk,reset; output co; reg[1:0] count; always@(posedge
第2个回答  2011-05-07
上学期才刚考过,忘了。。。路过。

用HDL这么搞
module count4(clk,reset,co);
input clk,reset;
output co;

reg[1:0] count;
always@(posedge clk or negedge reset)
if(~reset)
count<=0;
else if(count==3)
count<=0;
else
count<=count+1;
assign co=(count==3);
endmodule本回答被提问者采纳
相似回答