小罗的刷题日记
文章平均质量分 73
数字电路太难了
github: Hewie-Glaire
展开
-
【小罗的hdlbits刷题笔记5】基于fifo思想的fsm设计(Exams/2014 q3fsm)
在写状态机时,经常会有检测输入信号波形的情况,这种情况下,如果采用三段式状态机书写,则需要通过穷举法把输入信号所有可能存在的情况书写出来,在检测一到两个周期的输入信号时工作量不会很大,但是在检测多于三个信号时,工作量将会几何倍数增长,空说的话会很抽象,不如参考下这个例子:Consider a finite state machine with inputs s and w. Assume that the FSM begins in a reset state called A, as depicted原创 2021-04-24 13:54:14 · 664 阅读 · 0 评论 -
【小罗的hdlbits刷题笔记4】从lemming4中的有限状态机debug过程中的一些感悟
心累,debug过程就是很烦,废话不多说先上问题这里是引用原创 2021-04-16 11:17:47 · 273 阅读 · 1 评论 -
【小罗的hdlbits刷题笔记3】从Edgedetect对阻塞赋值和非阻塞赋值的思考
今天题目刷到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 tran原创 2021-04-04 21:39:15 · 288 阅读 · 0 评论 -
【小罗的hdlbits刷题笔记2】补码运算中溢出的问题(Exams/ece241 2014 q1c)
关于补码运算中进位溢出的问题及延伸,hdlbits中Exams/ece241 2014 q1c给出了很好的解释,首先来看问题:Assume that you have two 8-bit 2’s complement numbers, a[7:0] and b[7:0]. These numbers are added to produce s[7:0]. Also compute whether a (signed) overflow has occurred.译文:*假设你有两个8位2的补码,a[原创 2021-04-02 10:59:23 · 2597 阅读 · 2 评论 -
【小罗的hdlbits刷题笔记1】从hdlbits中popcount问题中引发的generate for和单纯用for区别的思考
目前在hdlbits刷题,在处理popcount时使用generate for实现该功能时,无论怎样都不可以实现,但是使用for却轻易的实现了,因此让我有了一些对两种语法的思考。那么废话少说,先上这个问题的题目:A “population count” circuit counts the number of '1’s in an input vector. Build a population count circuit for a 3-bit input vector.使用for语句对每个输入原创 2021-04-01 16:01:39 · 666 阅读 · 1 评论