当前位置:
首页 >
38--JK触发器
发布时间:2024/3/7
53
豆豆
JK触发器 ,J=1(K=0)的时候置1,K=1(J=0)的时候置0,J=K=0时保持不变,J=K=1时翻转。
module JK_FF(CLK,J,K,Q,RS,SET); input J,K,CLK,SET,RS; output Q; reg Q; always@(posedge CLK or negedge RS or negedge SET) beginif(!RS)Q<=1'b0;else if(!SET)Q<=1'b1;else case({J,K})2'b00:Q<=Q;2'b01:Q<=1'b0;2'b10:Q<=1'b1;2'b11:Q<=~Q;default:Q<=1'bx;endcase end endmodule总结
- 上一篇: 使用Template控制Editor显示
- 下一篇: PHS-P1酸度计