技术栈

[HDLBits] Sim/circuit9

向盟约宣誓2024-05-07 9:46

This is a sequential circuit. Read the simulation waveforms to determine what the circuit does, then implement it.

2030405060708090100110120130140150160170180190200210clkaq4560123456014560

复制代码
module top_module (
    input clk,
    input a,
    output [3:0] q );
    always@(posedge clk)begin
        if(a)
            q <= 'd4;
        else if(q == 6)
            q <= 4'b0;
        else
            q <= q + 1;   
    end
endmodule
上一篇:C#中的委托是什么?事件是不是一种委托?
下一篇:C++学习第十一天(模版进阶)
相关推荐
Js_cold
5 小时前
Verilog函数function
开发语言·fpga开发·verilog
Js_cold
8 小时前
Verilog任务task
开发语言·fpga开发·verilog
brave and determined
10 小时前
可编程逻辑器件学习(day3):FPGA设计方法、开发流程与基于FPGA的SOC设计详解
嵌入式硬件·fpga开发·soc·仿真·电路·时序·可编程逻辑器件
Lee_yayayayaya
13 小时前
锁相环技术及FPGA实现
fpga开发
Js_cold
18 小时前
Verilog局部参数localparam
开发语言·fpga开发·verilog
promising-w
18 小时前
【FPGA】使用移位实现LED流水灯
fpga开发
爱吃汽的小橘
19 小时前
ZYNQ介绍
fpga开发
ThreeYear_s
1 天前
电力电子技术学习路径与FPGA/DSP技术结合方向(gemini生成)
学习·fpga开发
奋斗的牛马
1 天前
FPGA—ZYNQ学习spi(六)
单片机·嵌入式硬件·学习·fpga开发·信息与通信
GateWorld
1 天前
FPGA核心约束类型与语法
fpga开发
热门推荐
01GitHub 镜像站点02UV安装并设置国内源03BongoCat - 跨平台键盘猫动画工具04综合整理:pdf预览显示:你尝试预览的文件可能对你的计算机有害。如果你信任此文件以及其来源,请打开此文件以看其内容,如何解决以正常预览文件05Linux下V2Ray安装配置指南06jdk21下载、安装(Windows、Linux、macOS)07安娜的档案(Anna’s Archive) 镜像网站/国内最新可访问入口(持续更新)08npm使用国内淘宝镜像的方法09PyCharm 社区版全平台安装指南10NVIDIA显卡驱动、CUDA、cuDNN 和 TensorRT 版本匹配指南