[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
相关推荐
碎碎思1 小时前
开源雷达做到20km?一个PLFM雷达项目的FPGA实现拆解
fpga开发
Saniffer_SH2 小时前
【市场洞察】一叶知秋 - 从2026年开年Quarch公司PCIe 6.0测试工具销售状况说起
服务器·人工智能·嵌入式硬件·测试工具·fpga开发·自动化·压力测试
何如呢5 小时前
FIFO的IP核学习
学习·fpga开发
我爱C编程5 小时前
【3.3】FFT变换的FPGA实现整体概述以及模块划分
fpga开发·fft·多级fft·二维分治fft
星华云5 小时前
[FPGA] Spartan6 单总线协议 (One-Wire) 读取DS18B20温度传感器
fpga开发·温度传感器·ds18b20·单总线协议·one-wire bus
s09071367 小时前
ZYNQ 软硬件协同踩坑日记:PS写BRAM后,PL端连续4个地址读出相同数据的原因与解决办法
fpga开发·zynq·硬件设计
tiger1191 天前
FPGA独立实现LLM推理方案——FlighLLM
fpga开发·llm·fpga·ai推理
fei_sun1 天前
Systemverilog和Verilog区别
fpga开发
史蒂芬_丁1 天前
TI F28P65 使用 ePWM 模块模拟 SPI 时钟的详细方法
单片机·嵌入式硬件·fpga开发
fei_sun1 天前
HDLBits-Verilog Practice
fpga开发