[HDLBits] Mt2015 muxdff

Taken from ECE253 2015 midterm question 5

Consider the sequential circuit below:

Assume that you want to implement hierarchical Verilog code for this circuit, using three instantiations of a submodule that has a flip-flop and multiplexer in it. Write a Verilog module (containing one flip-flop and multiplexer) named top_module for this submodule.

复制代码
module top_module (
	input clk,
	input L,
	input r_in,
	input q_in,
	output reg Q);
	wire D;
    assign D = L ? r_in : q_in;
    always@(posedge clk) Q<=D;
endmodule

这里体现出来,必须分开分步写各个器件。

相关推荐
豆包公子7 小时前
虚拟机配置共享文件&烧录FPGA bit文件
fpga开发
c-u-r-ry309 小时前
pll/mmcm输入时钟配置页面警告
经验分享·fpga开发
逻辑诗篇11 小时前
硬核算力集结!TMS320C6678、XC7K690T等、匠行科技SBC819模拟信号采集处理板,解锁高端测控新标杆
科技·fpga开发
狂奔蜗牛(bradley)13 小时前
FPGA基础知识:深度剖析异步复位同步释放
fpga开发
发发就是发16 小时前
USB系统架构概述:从一次诡异的枚举失败说起
驱动开发·单片机·嵌入式硬件·算法·fpga开发
Shang180989357262 天前
T31ZX 君正/INGENIC智能视频处理器T31ZX可提供软硬件资料T31Z采用先进的低功耗设计
嵌入式硬件·fpga开发·音视频·t31zx智能视频处理器
通信小呆呆2 天前
各具神通——Vivado中不同系列的IP核差异详解
网络协议·tcp/ip·fpga开发
做一个快乐的小傻瓜2 天前
XCKU5P引脚约束
fpga开发
水云桐程序员2 天前
FPGA开发需要的环境配置
fpga开发
LCMICRO-133108477462 天前
长芯微LPS6288完全P2P替代TPS61288,是一款具有 15A 开关电流的全集成同步升压转换器
stm32·单片机·嵌入式硬件·fpga开发·硬件工程·同步升压转换器