技术栈

[HDLBits] Exams/ece241 2013 q7

向盟约宣誓2023-09-11 16:57

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
上一篇:解疑答惑:独立部署类型的商城系统有哪些优势?
下一篇:博客之QQ登录功能(一)
相关推荐
点灯大师李
1 天前
Zynq FPGA UART程序固化完整流程文档
fpga开发
坤驰科技
1 天前
测风激光雷达数据采集解决方案
fpga开发
博览鸿蒙
1 天前
FPGA 可以转 IC 设计吗?需要具备哪些条件
fpga开发
GateWorld
1 天前
真双端口RAM在FPGA中使用
fpga开发·ram·实战经验·tdp-ram使用
stars-he
1 天前
FPGA学习笔记(9)以太网UDP数据报文发送电路设计(三)
笔记·学习·fpga开发
stars-he
1 天前
FPGA学习笔记-拔河游戏电路设计
笔记·学习·fpga开发
minglie1
2 天前
myhdl
fpga开发
cycf
2 天前
PCIE BAR空间解读(六)
fpga开发
FPGA小迷弟
2 天前
ModelSim操作教程 详细操作手册【一】
fpga开发·fpga·modelsim·fpga仿真·rtl仿真
minglie1
3 天前
cocotb 配合 iverilog 搭建 Verilog 仿真工程
fpga开发
热门推荐
01GitHub 镜像站点02安娜的档案(Anna’s Archive) 镜像网站/国内最新可访问入口(持续更新)03手把手教你通过Gemini3 pro 学生认证,白用一年,手慢无!04Linux下V2Ray安装配置指南05Labelme从安装到标注:零基础完整指南06GitLab 零基础入门指南:从安装到项目管理全流程07jdk21下载、安装(Windows、Linux、macOS)08UV安装并设置国内源09【踩坑笔记】50系显卡适配的 PyTorch 安装102025-04-03 Latex学习1——本地配置Latex + VScode环境