[HDLBits] Exams/ece241 2014 q4

Given the finite state machine circuit as shown, assume that the D flip-flops are initially reset to zero before the machine begins.

Build this circuit.

复制代码
module top_module (
    input clk,
    input x,
    output z
); 
	wire d1,d2,d3,q1,q2,q3;
    assign d1=x^q1;
    assign d2=x&(~q2);
    assign d3=x|(!q3);
    always@(posedge clk) begin
    	q1<=d1;
        q2<=d2;
        q3<=d3;
    end
    assign z=~(q1|q2|q3);
endmodule
相关推荐
学习永无止境@5 小时前
Vivado FPGA程序压缩
fpga开发
daxi15010 小时前
Verilog入门实战——第2讲:核心语法基础(数据类型+赋值语句)
fpga开发·fpga
嵌入式-老费14 小时前
Linux camera驱动开发(vivado hls不能导出ip的问题)
图像处理·fpga开发
Eloudy16 小时前
NetFPGA 快速入门指南
量子计算·fpga·nvqlink
CoderIsArt18 小时前
FPGA量子计算教学平台设计方案与实现步骤
fpga开发·量子计算
学习永无止境@18 小时前
Vivado FPGA输入时钟约束
开发语言·fpga开发·fpga
上班最快乐1 天前
基于FPGA的APS6404L-3SQR QSPI PSRAM驱动设计(1)
fpga开发
国科安芯2 天前
抗辐照加固CAN FD芯片的商业航天与车规级应用解析
科技·嵌入式硬件·安全·fpga开发·安全威胁分析
简宸~2 天前
FPGA(十一)DataMover 自编辑IP
网络协议·tcp/ip·fpga开发·开源
Eloudy2 天前
Quartus Prime Lite Edition 25.1 安装备忘
fpga