
数字电路
李十一11
数字芯片学习者
展开
-
数字电路:常见的锁存器浅析
由于S-R/S'-R'锁存器在所有时间内对输入都是敏感的,我们期望有一种器件,它只有在使能输入C有效时,才对输入敏感,具有使能端的S-R锁存器(S-R latch with enable)应运而生。总之,作者认为,只要掌握了S-R锁存器,S'-R'锁存器只不过是将输入信号进行反转,我们通过相应的分析即可得出S'-R'锁存器的输出。总结,本次我们介绍了S-R锁存器,S'-R'锁存器,具有使能端的S'-R'锁存器,D锁存器。①S,R均为0,S-R锁存器相当于双稳态元件,通过反馈回路维持电路之前的状态。...原创 2022-08-17 12:58:27 · 4801 阅读 · 1 评论 -
【数电】【verilog】加法器
串行全加器是上面这样,但是这种结构的缺点是,必须要等到上一片的结果算出来之后下一片才能进行工作,当级数很高的时候计算的时间将是每一片时间的n倍,会出现组合逻辑延时过长的问题。此时另一种进位方法——超前进位加法器就可以解决这一延时过高的问题。这里实在看不懂可以翻一番数电的超前进位加法器的内容。超前进位加法器就是用电路的复杂度来换时间。3.4位串行加法器(全加器)verilog代码如下:0。1.2输入1bit半加器。2.2输入1bit全加器。4.4位超前进位加法器。...原创 2022-08-11 22:02:11 · 12257 阅读 · 0 评论 -
【HDLBits刷题】Countslow.
设计一个0~9的计数器,共10个周期。该计数器采用同步复位且复位为0。但是本题是希望该计数器并不是随着clk的变化而递增,而是随着一个slowena使能信号来控制增加。原创 2022-07-19 23:13:18 · 1470 阅读 · 0 评论 -
【HDLBits刷题】Count1to10.
还是1~10的计数器,唯一不同是同步复位为1.原创 2022-07-19 22:14:36 · 933 阅读 · 0 评论 -
【HDLBits刷题】Count10.
代码】【HDLBits刷题】Count10..原创 2022-07-18 23:11:10 · 741 阅读 · 0 评论 -
【HDLBits刷题】Count15.
设计一个4bit的计数器,从0~15,共16个周期。reset是同步复位且复位为0。原创 2022-07-18 22:38:00 · 713 阅读 · 0 评论 -
【HDLBits刷题】Dualedge..
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-flop is triggered on both edges of the clock. However, FPGAs don't have dual-edge triggered flip-flops, and alwa原创 2022-07-12 22:54:59 · 984 阅读 · 0 评论 -
【HDLBits刷题】Edgecapture..
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 will remain 1 until the register is reset (synchronous reset).Each output bit behaves like a SR flip-flop: The o原创 2022-07-06 20:35:31 · 1269 阅读 · 1 评论 -
【HDLBits刷题】Edgedetect2.
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 be set the cycle after a 0 to 1 transition occurs.Here are some examples. For clarity, in[1] and anyedge[1] are原创 2022-07-06 12:14:28 · 1201 阅读 · 0 评论 -
【HDLBits刷题】Edgedetect.
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 detection). The output bit should be set the cycle after a 0 to 1 transition occurs.Here are some examples. For clarity,原创 2022-07-05 12:18:05 · 1402 阅读 · 0 评论 -
【HDLBits刷题】Exams/ece241 2013 q7.
A JK flip-flop has the below truth table. Implement a JK flip-flop with only a D-type flip-flop and gates. Note: Qold is the output of the D flip-flop before the positive clock edge.module top_module ( input clk, input j, input k, output Q原创 2022-07-04 21:33:34 · 1493 阅读 · 0 评论 -
【数字电路】D锁存器和D触发器的区别
我们在数字电路中经常使用到D触发器,有时候还会听到D锁存器这种电路,那么这两种电路到底有什么关系?又存在什么区别?方法一:功能的文字叙述 1)D锁存器: 功能分析文字描述:C = 0时,输出状态保持不变;C = 1时,输出随输入状态而改变。 2)D触发器: 功能分析文字描述: CLK=0时,主锁存器工作,接收输入信号Qm = D;从锁存器不工作,输出 Q 保持不变。 CLK=1时,主锁存器不工作,Qm保持不变;从锁存器工作,将Qm传送到输出端。原创 2022-04-24 08:28:33 · 20499 阅读 · 0 评论 -
【HDLBits刷题】Exams/m2014 q4a.
Implement the following circuit:Note that this is a latch, so a Quartus warning about having inferred a latch is expected.做一个D触发器module top_module ( input d, input ena, output q); always @(*)begin if(ena) q = d原创 2022-04-24 08:00:12 · 2426 阅读 · 0 评论 -
【HDLBits刷题】Dff16e..
Create 16 D flip-flops. It's sometimes useful to only modify parts of a group of flip-flops. The byte-enable inputs control whether each byte of the 16 registers should be written to on that cycle. byteena[1] controls the upper byte d[15:8], while byteena[原创 2022-04-23 23:14:02 · 2574 阅读 · 3 评论 -
【HDLBits刷题】Dff8ar..
Create 8 D flip-flops with active high asynchronous reset. All DFFs should be triggered by the positive edge of clk.要求创建一个异步清零端的D触发器module top_module ( input clk, input areset, // active high asynchronous reset input [7:0] d, output原创 2022-04-22 19:36:17 · 2717 阅读 · 3 评论 -
【HDLBits刷题】Dff8p.
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 the negative edge of clk.实现具有高电平同步复位的8个D触发器,同时复位值为0x34,下降沿触发。module top_module ( input clk, input原创 2022-04-22 18:45:54 · 1196 阅读 · 0 评论 -
【HDLBits刷题】Dff8r
Create 8 D flip-flops with active high synchronous reset. All DFFs should be triggered by the positive edge of clk.写一个带reset高电平有效复位的D触发器(时钟是上升沿触发)另外最好把在过程语句中的变量设置成reg格式,比如此处的q。(赋值语句左边的)module top_module ( input clk, input reset, /原创 2022-04-21 22:45:19 · 1432 阅读 · 1 评论 -
【HDLBits刷题】Dff8
Create 8 D flip-flops. All DFFs should be triggered by the positive edge ofclk.module top_module ( input clk, input [7:0] d, output [7:0] q); always @(posedge clk) q <= d;endmodule原创 2022-04-21 22:24:09 · 333 阅读 · 0 评论 -
【HDLBits刷题】Dff.
A D flip-flop is a circuit that stores a bit and is updated periodically, at the (usually) positive edge of a clock signal.D flip-flops are created by the logic synthesizer when aclocked always blockis used (Seealwaysblock2). A D flip-flop is the si...原创 2022-04-21 22:22:33 · 552 阅读 · 0 评论 -
数字逻辑电路——原码,反码,补码
https://blog.youkuaiyun.com/qq_45838676/article/details/106146093原创 2022-04-18 22:17:32 · 1808 阅读 · 0 评论