[HDLBits] Dff8p

Create 8 D flip-flops with active high synchronous reset. The flip-flops must be reset to 0x34 rather than zero. All DFFs should be triggered by the negative edge of clk.

module top_module (
    input clk,
    input reset,
    input [7:0] d,
    output [7:0] q
);
    always@(negedge clk) begin
        if(reset)
            q<=8'h34;
        else
            q<=d;
    end
endmodule
相关推荐
博览鸿蒙2 小时前
FPGA前端设计适合哪些人学?该怎么学?
fpga开发
北京阿尔泰科技厂家7 小时前
2路模拟量同步输出卡、任意波形发生器卡—PCIe9100数据采集卡
fpga开发·工业自动化·数据采集卡·任意波形发生器·模拟量输出卡
szxinmai主板定制专家9 小时前
基于ARM+FPGA的高端伺服驱动与运动控制解决方案
大数据·arm开发·人工智能·fpga开发·架构
通信小小昕19 小时前
FPGA|Verilog-SPI驱动
fpga开发·蓝桥杯·优化·verilog·spi·竞赛
TJ_Dream21 小时前
clk_prepare函数详细解析
驱动开发·fpga开发
起床学FPGA1 天前
IBUF和BUFG
fpga开发
_Hello_Panda_1 天前
基于AMD AU15P FPGA的SLVS-EC桥PCIe设计方案分享
fpga开发
数字芯片实验室1 天前
3-2 深入解析数字电路设计中的竞争条件及解决策略
fpga开发
c-u-r-ry302 天前
009---基于Verilog HDL的单比特信号边沿检测
嵌入式硬件·fpga开发
数字芯片实验室2 天前
【AI速读】突破形式验证的极限:数据包协议验证实战指南
fpga开发