[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
相关推荐
星华云1 小时前
[FPGA]Spartan6 Uart可变波特率读写JY901P惯导模块
fpga开发·verilog·jy901p·spartan6·惯导
碎碎思1 小时前
基于 Gowin FPGA 的 SDR 开源方案:从硬件到射频全栈打通
fpga开发
S&Z346313 小时前
[SZ901]高级功能:远程调试
fpga开发
醇氧14 小时前
【学习】冯诺依曼架构和哈弗架构
fpga开发
尤老师FPGA16 小时前
HDMI数据的接收发送实验(七)
fpga开发
学习永无止境@16 小时前
FPGA设计中,主时钟与虚拟时钟的定义
fpga开发
进击的横打16 小时前
【车载开发系列】系统时钟与定时器
stm32·单片机·fpga开发
Nobody3317 小时前
Avalon® 接口规范知识文档(v2018.09.26)
fpga开发
GateWorld18 小时前
FPGA内部模块详解之六 FPGA的“心跳”与“神经网络”——时钟网络与布线资源深度解析
fpga开发·fpga内部时钟网络·fpga布线资源
lit_wei21 小时前
【ZYNQ的DMA获取FPGA数据处理,零拷贝,DMA方式】
fpga开发