摘要: 题目网站 module top_module ( input clk, input reset, // Synchronous active-high reset input w, output z ); parameter A = 3'd0, B = 3'd1, C = 3'd2; paramet 阅读全文
posted @ 2024-04-16 03:13 江左子固 阅读(48) 评论(0) 推荐(0)
摘要: 题目网站 module top_module ( input clk, input reset, // Synchronous active-high reset input w, output z ); parameter A = 3'd0, B = 3'd1, C = 3'd2; paramet 阅读全文
posted @ 2024-04-16 03:11 江左子固 阅读(42) 评论(0) 推荐(0)
摘要: module top_module ( input [6:1] y, input w, output Y2, output Y4); assign Y2 = ~w & y[1]; assign Y4 = (w & y[2])|(w & y[3])|(w & y[5])|(w & y[6]); end 阅读全文
posted @ 2024-04-16 03:04 江左子固 阅读(41) 评论(0) 推荐(0)
摘要: 题目网站 画出卡诺图,可得: module top_module ( input [3:1] y, input w, output Y2); assign Y2 = (y == 3'b001 | y == 3'b101) & ~w | (y == 3'b001 | y == 3'b010 | y = 阅读全文
posted @ 2024-04-16 03:03 江左子固 阅读(53) 评论(0) 推荐(0)
摘要: 题目网站 module top_module ( input clk, input [2:0] y, input x, output Y0, output z ); assign Y0 = ((~y[2]&y[0])|(y==3'b100))&~x | (~y[2]&~y[0])&x; assign 阅读全文
posted @ 2024-04-16 03:00 江左子固 阅读(60) 评论(0) 推荐(0)
摘要: 题目网站 module top_module ( input clk, input reset, // Synchronous reset input x, output z ); parameter S0 = 3'b000, S1 = 3'b001, S2 = 3'b010; parameter 阅读全文
posted @ 2024-04-16 02:58 江左子固 阅读(45) 评论(0) 推荐(0)
摘要: Consider a finite state machine with inputs s and w. Assume that the FSM begins in a reset state called A, as depicted below. The FSM remains in state 阅读全文
posted @ 2024-04-16 02:56 江左子固 阅读(111) 评论(0) 推荐(0)
摘要: The following diagram is a Mealy machine implementation of the 2's complementer. Implement using one-hot encoding. module top_module ( input clk, inpu 阅读全文
posted @ 2024-04-16 02:04 江左子固 阅读(76) 评论(1) 推荐(0)
摘要: You are to design a one-input one-output serial 2's complementer Moore state machine. The input (x) is a series of bits (one per clock cycle) beginnin 阅读全文
posted @ 2024-04-16 02:02 江左子固 阅读(209) 评论(0) 推荐(1)
摘要: Implement a Mealy-type finite state machine that recognizes the sequence "101" on an input signal named x. Your FSM should have an output signal, z, t 阅读全文
posted @ 2024-04-16 01:38 江左子固 阅读(71) 评论(0) 推荐(0)