[HDLBits] Exams/ece241 2013 q7

A JK flip-flop has the below truth table. Implement a JK flip-flop with only a D-type flip-flop and gates. Note: Qold is the output of the D flip-flop before the positive clock edge.

J K Q
0 0 Qold
0 1 0
1 0 1
1 1 ~Qold
复制代码
module top_module (
    input clk,
    input j,
    input k,
    output Q); 
    //Q(~j)(~k)+
    wire d;
    assign d=(Q&(~j)&(~k))|(j&(~k))|(j&k&(~Q));
    always@(posedge clk) begin
        Q<=d;
    end
endmodule
相关推荐
忙什么果7 小时前
上位机、下位机、FPGA、算法放在哪层合适?
算法·fpga开发
环能jvav大师11 小时前
在Proteus中仿真PLD元器件(WinCupl及WinSim基础使用)
硬件架构·proteus·fpga
博览鸿蒙13 小时前
从迷茫自学到稳定入行:我的 FPGA 上岸全过程
fpga开发
芯门17 小时前
FPGA商用级ISP(二):镜头阴影校正(LSC)的网格增益插值与并行硬件架构实现
图像处理·fpga开发·isp
Felven18 小时前
corundum 40G开源网卡测试结果
fpga开发·性能测试·dds·开源网卡·mqnic
顾知行19 小时前
ABB PC D230 3BHE022291R0101 励磁CCM测量板
fpga开发·abb·abb励磁
芯门19 小时前
FPGA商用级ISP:动态坏点校正(DPCC)的滑窗架构与并行判决实现
图像处理·fpga开发·isp
碎碎思2 天前
双管齐下筑优势 AMD 扩容中端 FPGA 阵营并延至 2045 + 长期供货
fpga开发
绿算技术2 天前
【无标题】
数据库·人工智能·科技·算法·fpga开发·硬件架构
FPGA技术联盟2 天前
DO‑254 物理测试到底在“测什么”?
fpga开发