文章分类 -  Hdlbits的Verilog学习

摘要:[Mux](https://hdlbits.01xz.net/wiki/Bugs_mux2) ```module top_module ( input sel, input [7:0] a, input [7:0] b, output [7:0]out ); assign out = sel?a:b 阅读全文
posted @ 2023-06-11 15:22 江左子固 阅读(18) 评论(0) 推荐(0)
摘要:这篇开始More Verilog Features的学习,也是Verilog Language的最后一节。 # 学习: [Conditional ternary operator](https://hdlbits.01xz.net/wiki/Conditional) ``` module top_m 阅读全文
posted @ 2023-05-27 17:54 江左子固 阅读(10) 评论(0) 推荐(0)
摘要:[Always Blocks](https://hdlbits.01xz.net/wiki/Alwaysblock1) ``` // synthesis verilog_input_version verilog_2001 module top_module( input a, input b, o 阅读全文
posted @ 2023-05-25 14:25 江左子固 阅读(12) 评论(0) 推荐(0)
摘要:写在前面: Hdlbits是学习Verilog的优秀网站,作为刚刚入门的“小菜鸟”,在一刷Hdlbits之后,深感仍有许多知识值得深挖,故而希望在结合其他的优秀资源和安路科技的SparkRoad板子,二刷Hdlbits,达到对Verilog更进一步的理解。 对于Getting Started和Ver 阅读全文
posted @ 2023-05-21 21:03 江左子固 阅读(37) 评论(0) 推荐(0)
摘要:考试/ece241 2013 Q8 - HDLBits (01xz.net) 这就是一个序列检测器,并且是一个连续的检测器 1 module top_module ( 2 input clk, 3 input aresetn, // Asynchronous active-low reset 4 i 阅读全文
posted @ 2023-05-06 23:17 江左子固 阅读(59) 评论(0) 推荐(0)
摘要:Fsm hdlc - HDLBits (01xz.net) 对于状态机,真的是不理解,需要从相关书籍再重头学起,而且看csdn中有提到官方答案,也要去查查 (30条消息) HDLBits答案(19)_Verilog有限状态机(6)_能导致@(posedge)_日拱一卒_未来可期的博客-CSDN博客 阅读全文
posted @ 2023-05-06 23:02 江左子固 阅读(84) 评论(0) 推荐(0)
摘要:module top_module( input clk, input in, input reset, // Synchronous reset output done ); parameter [3:0] START = 4'd0; parameter [3:0] ONE = 4'd1; par 阅读全文
posted @ 2023-05-01 18:35 江左子固 阅读(16) 评论(0) 推荐(0)
摘要:The PS/2 mouse protocol sends messages that are three bytes long. However, within a continuous byte stream, it's not obvious where messages start and 阅读全文
posted @ 2023-04-30 21:16 江左子固 阅读(37) 评论(0) 推荐(0)
摘要:Given the following state machine with 1 input and 2 outputs: 题目网站 module top_module( input in, input [9:0] state, output [9:0] next_state, output out 阅读全文
posted @ 2023-04-30 21:02 江左子固 阅读(19) 评论(0) 推荐(0)
摘要:See also: Lemmings1, Lemmings2, and Lemmings3. Although Lemmings can walk, fall, and dig, Lemmings aren't invulnerable. If a Lemming falls for too lon 阅读全文
posted @ 2023-04-30 00:19 江左子固 阅读(16) 评论(0) 推荐(0)
摘要:See also: Lemmings1 and Lemmings2. In addition to walking and falling, Lemmings can sometimes be told to do useful things, like dig (it starts digging 阅读全文
posted @ 2023-04-30 00:13 江左子固 阅读(10) 评论(0) 推荐(0)
摘要:See also: Lemmings1. In addition to walking left and right, Lemmings will fall (and presumably go "aaah!") if the ground disappears underneath them. I 阅读全文
posted @ 2023-04-30 00:07 江左子固 阅读(26) 评论(0) 推荐(0)
摘要:The game Lemmings involves critters with fairly simple brains. So simple that we are going to model it using a finite state machine. In the Lemmings' 阅读全文
posted @ 2023-04-30 00:02 江左子固 阅读(26) 评论(0) 推荐(0)
摘要:题目网站 1 module top_module ( 2 input clk, 3 input reset, 4 input [3:1] s, 5 output fr3, 6 output fr2, 7 output fr1, 8 output dfr 9 ); 10 parameter A2=3' 阅读全文
posted @ 2023-04-27 22:01 江左子固 阅读(11) 评论(0) 推荐(0)
摘要:module top_module( input clk, input in, input reset, output out); // parameter A=2'b00,B=2'b01,C=2'b10,D=2'b11; reg [1:0]state,next_state; // State tr 阅读全文
posted @ 2023-04-27 21:52 江左子固 阅读(10) 评论(0) 推荐(0)
摘要:See also: State transition logic for this FSM The following is the state transition table for a Moore state machine with one input, one output, and fo 阅读全文
posted @ 2023-04-27 21:43 江左子固 阅读(26) 评论(0) 推荐(0)
摘要:The following is the state transition table for a Moore state machine with one input, one output, and four states. Use the following one-hot state enc 阅读全文
posted @ 2023-04-27 19:04 江左子固 阅读(66) 评论(0) 推荐(0)
摘要:module top_module( input in, input [1:0] state, output [1:0] next_state, output out); // parameter A=0, B=1, C=2, D=3; always@(*)begin case(state) A:b 阅读全文
posted @ 2023-04-27 19:00 江左子固 阅读(15) 评论(0) 推荐(0)
摘要:This is a Moore state machine with two states, two inputs, and one output. Implement this state machine. This exercise is the same as fsm2, but using 阅读全文
posted @ 2023-04-27 18:54 江左子固 阅读(8) 评论(0) 推荐(0)
摘要:This is a Moore state machine with two states, two inputs, and one output. Implement this state machine. This exercise is the same as fsm2s, but using 阅读全文
posted @ 2023-04-27 18:46 江左子固 阅读(15) 评论(0) 推荐(0)