随笔分类 -  Digital Design

Digital Design related. Modules design, verification and implementation.
mealy machine和moore machine
摘要:一般问这个问题,简答的回答就是一个和输入有关,一个和输出无关;两个状态机的状态转移方程是一样的。好处坏处就是mealy machine 会有glitch问题,而moore machine没有这问题。1. 为什么会这样?两个machine的状态公式都是一样的,但是mealy machine的输出因为和input和state都有关系,所以输出会是在clock edge event上。和moore machine的关系是mealy的输出一个clk period before 与moore的输出。但如果是moore machine,输出只会和state有关系,即状态稳定之后,才会有输出。Recall: 阅读全文

posted @ 2012-12-11 07:19 单向度的人 阅读(3363) 评论(0) 推荐(0)

All about FIFO
该文被密码保护。

posted @ 2012-10-20 06:27 单向度的人 阅读(0) 评论(0) 推荐(0)

NRZI encode
摘要:NRZI diagram[2]First part is encoder, second part is decoder. Small modification is in the bit_stream sampling part.Some comments:1. use DFF to buffer the input2. use 1'b1 instead of 1, because during synthesis, 1 will be viewed as integer type:example, like adder, cnt + 1'b1; 1'b1 will 阅读全文

posted @ 2012-04-05 12:14 单向度的人 阅读(655) 评论(0) 推荐(0)

Grey encoder and decoder
摘要:Author: RuiReference from the website and wikipediaSomething to mention:1.$display always to display the last sampled value,may cause some mismatch in the screen output2.parameterized module design help to scalingGrey encoder//greyencoder,frombinaryinputtogreyoutput//algorithm://fromrightmost,x[i]xo 阅读全文

posted @ 2012-04-05 09:43 单向度的人 阅读(359) 评论(0) 推荐(0)

导航