文章分类 -  Hdlbits的Verilog学习

1 2 3 4 5 ··· 7 下一页
摘要:See also: Serial receiver Now that you have a finite state machine that can identify when bytes are correctly received in a serial bitstream, add a da 阅读全文
posted @ 2024-04-15 20:38 江左子固 阅读(35) 评论(0) 推荐(0)
摘要:See also: PS/2 packet parser. Now that you have a state machine that will identify three-byte messages in a PS/2 byte stream, add a datapath that will 阅读全文
posted @ 2024-04-15 17:58 江左子固 阅读(18) 评论(0) 推荐(0)
摘要:Build a 4-digit BCD (binary-coded decimal) counter. Each decimal digit is encoded using 4 bits: q[3:0] is the ones digit, q[7:4] is the tens digit, et 阅读全文
posted @ 2024-04-10 14:29 江左子固 阅读(47) 评论(0) 推荐(0)
摘要:题目如下: You're familiar with flip-flops that are triggered on the positive edge of the clock, or negative edge of the clock. A dual-edge triggered flip- 阅读全文
posted @ 2024-03-14 23:35 江左子固 阅读(12) 评论(0) 推荐(0)
摘要:题目如下: For each bit in a 32-bit vector, capture when the input signal changes from 1 in one clock cycle to 0 the next. "Capture" means that the output 阅读全文
posted @ 2024-03-14 22:47 江左子固 阅读(45) 评论(0) 推荐(0)
摘要:题目如下: For each bit in an 8-bit vector, detect when the input signal changes from one clock cycle to the next (detect any edge). The output bit should 阅读全文
posted @ 2024-03-14 22:18 江左子固 阅读(11) 评论(0) 推荐(0)
摘要:题目如下: For each bit in an 8-bit vector, detect when the input signal changes from 0 in one clock cycle to 1 the next (similar to positive edge detectio 阅读全文
posted @ 2024-03-14 22:09 江左子固 阅读(15) 评论(0) 推荐(0)
摘要:题目如下: Implement the following circuit: 代码如下: module top_module ( input d, input ena, output q); always@(*)begin if(ena)begin q=d; end end endmodule 电平 阅读全文
posted @ 2024-03-14 21:21 江左子固 阅读(6) 评论(0) 推荐(0)
摘要:题目如下: Create 8 D flip-flops with active high asynchronous reset. All DFFs should be triggered by the positive edge of clk. 代码如下: module top_module ( i 阅读全文
posted @ 2024-03-14 21:09 江左子固 阅读(17) 评论(0) 推荐(0)
摘要:题目如下: Create 8 D flip-flops with active high synchronous reset. The flip-flops must be reset to 0x34 rather than zero. All DFFs should be triggered by 阅读全文
posted @ 2024-03-14 21:03 江左子固 阅读(14) 评论(0) 推荐(0)
摘要:题目如下: A D flip-flop is a circuit that stores a bit and is updated periodically, at the (usually) positive edge of a clock signal. 代码如下: module top_mod 阅读全文
posted @ 2024-03-14 20:42 江左子固 阅读(10) 评论(0) 推荐(0)
摘要:题目如下: For the following Karnaugh map, give the circuit implementation using one 4-to-1 multiplexer and as many 2-to-1 multiplexers as required, but us 阅读全文
posted @ 2024-03-14 02:04 江左子固 阅读(17) 评论(0) 推荐(0)
摘要:题目如下: Consider the function f shown in the Karnaugh map below. Consider the function f shown in the Karnaugh map below. Implement this function. (The 阅读全文
posted @ 2024-03-14 01:46 江左子固 阅读(9) 评论(0) 推荐(0)
摘要:题目如下: A single-output digital system with four inputs (a,b,c,d) generates a logic-1 when 2, 7, or 15 appears on the inputs, and a logic-0 when 0, 1, 4 阅读全文
posted @ 2024-03-14 01:44 江左子固 阅读(39) 评论(0) 推荐(0)
摘要:题目如下: Implement the circuit described by the Karnaugh map below. Implement the circuit described by the Karnaugh map below. Implement the circuit desc 阅读全文
posted @ 2024-03-14 01:31 江左子固 阅读(7) 评论(0) 推荐(0)
摘要:题目如下: Implement the circuit described by the Karnaugh map below. 代码如下: module top_module( input a, input b, input c, output out ); assign out=a|b|c; e 阅读全文
posted @ 2024-03-14 01:25 江左子固 阅读(6) 评论(0) 推荐(0)
摘要:题目如下: You are provided with a BCD (binary-coded decimal) one-digit adder named bcd_fadd that adds two BCD digits and carry-in, and produces a sum and 阅读全文
posted @ 2024-03-12 17:34 江左子固 阅读(41) 评论(0) 推荐(0)
摘要:题目如下: Create a 100-bit binary adder. The adder adds two 100-bit numbers and a carry-in to produce a 100-bit sum and carry out. 代码如下: module top_module 阅读全文
posted @ 2024-03-12 17:32 江左子固 阅读(13) 评论(0) 推荐(0)
摘要:题目如下: Create a 1-bit wide, 256-to-1 multiplexer. The 256 inputs are all packed into a single 256-bit input vector. sel=0 should select in[0], sel=1 se 阅读全文
posted @ 2024-03-12 16:48 江左子固 阅读(10) 评论(0) 推荐(0)
摘要:题目如下: Create a 100-bit wide, 2-to-1 multiplexer. When sel=0, choose a. When sel=1, choose b. 代码如下: module top_module( input [99:0] a, b, input sel, ou 阅读全文
posted @ 2024-03-12 15:46 江左子固 阅读(9) 评论(0) 推荐(0)

1 2 3 4 5 ··· 7 下一页