Exams/m2014 q4k

Implement the following circuit:

cpp 复制代码
module top_module (
    input clk,
    input resetn,   // synchronous reset
    input in,
    output out);

    reg[2:0] temp;
    always @ (posedge clk)
        if(resetn == 0) begin
            out <= 1'b0;
        temp <= 3'b0;
        end    
    else
        begin
            temp[0] <= in;
            temp[1] <= temp[0];
            temp[2] <= temp[1];
            out <= temp[2];
        end
endmodule
相关推荐
啄缘之间4 天前
10.【学习】SPI & UART 验证环境与测试用例
开发语言·经验分享·学习·fpga开发·测试用例·verilog
kaizq12 天前
MuleRun助力MakerChip-FPGA在线编程模拟仿真操练
fpga开发·verilog·龙虾机器人·mulerun·makerchip·在线模拟仿真
m0_46644103詹湛21 天前
FPGA时序优化与高速接口实战手册
笔记·学习·fpga开发·硬件架构·verilog
FPGA小迷弟25 天前
FPGA工程师常见面试问题,有参考答案,必学!!!
fpga开发·面试·职场和发展·verilog·fpga·modelsim
m0_46644103詹湛1 个月前
(一)FPGA :基础概念详解(Xilinx平台)
笔记·学习·fpga开发·verilog
FPGA小迷弟2 个月前
FPGA工程师面试题汇总(二十五)
网络协议·tcp/ip·fpga开发·verilog·fpga
FPGA小迷弟2 个月前
FPGA工程师面试题汇总(二十四)
网络协议·tcp/ip·fpga开发·verilog·fpga
FPGA小迷弟2 个月前
FPGA工程师面试题汇总(九)
网络协议·tcp/ip·fpga开发·面试·verilog·fpga
星华云2 个月前
[FPGA]Spartan6 Uart可变波特率读写JY901P惯导模块
fpga开发·verilog·jy901p·spartan6·惯导
星华云2 个月前
[FPGA]Spartan6 Uart固定波特率读写JY901P惯导模块
fpga开发·verilog·jy901p·惯导模块