[HDLBits] Exams/2014 q4a

Consider the n-bit shift register circuit shown below:

Write a Verilog module named top_module for one stage of this circuit, including both the flip-flop and multiplexers.

复制代码
module top_module (
    input clk,
    input w, R, E, L,
    output Q
);
	wire d;
    assign d=L? R:(E ? w:Q);
    always@(posedge clk) begin
       Q<=d;
    end
endmodule
相关推荐
minglie111 分钟前
嵌入式协程AlarmProtothread
mcu·fpga开发
Godspeed Zhao1 小时前
自动驾驶中的传感器技术79——Sensor Fusion(2)
人工智能·fpga开发·自动驾驶
ShiMetaPi2 小时前
GM-3568JHF丨ARM+FPGA异构开发板系列教程:外设教程 07 音频
arm开发·fpga开发·音视频·fpga·rk3568
bitQ11 小时前
ZBoot-MP:ZYNQ 多介质 Linux 启动与升级解决方案
fpga开发
我爱C编程21 小时前
【1.22】基于FPGA的Costas环开发课程学习总结
学习·fpga开发·costas环
FPGA_无线通信1 天前
USB3.0 GPIF II接口
fpga开发
Terasic友晶科技1 天前
5-DE10-Nano的HDMI方块移动案例——基于FPGA的I2C控制模块设计
单片机·嵌入式硬件·fpga开发·时钟分频·hdmi方块移动·i2c控制模块设计·配置寄存器
Joshua-a1 天前
AGM FPGA AG10K 使用Supra新建Quartus工程开发教程
fpga开发
西安同步高经理1 天前
脉冲信号发生器时序控制核心、延迟信号发生器、时间间隔发生器
fpga开发
FPGA_小田老师1 天前
FPGA基础知识(二十一):xilinx FPGA中常用的原语
fpga开发·bufg·ibufds·obufds·iobuf·差分转单端·inout选择