Programming- Mealy machine的verilog(作業)

匿 匿名 601 次瀏覽 0 個回答

各位好

我們有一個題目是寫
Please design a circuit to detect the sequence 1101. A sequence detector
produces out = 1 if the consecutive input signals are 1101; otherwise, out =
0.For example,

example 1
-----------|.....|-------|.....|-------
in : 0,0,0,1,1,0,1,1,0,0,1,1,0,1,0,0...
out: 0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0...
.................^.............^.........


example 2
-----|.....|.....|-------------
in : 1,1,0,1,1,0,1,0,0,0,1,0,0...
out: 0,0,0,1,0,0,1,0,0,0,0,0,0...
...........^.....^...............


助教給的wave圖長這樣
https://imgur.com/gallery/HqGtA5M我想問的是下面這張圖,有符合上面這個題目的敘述嗎?
https://imgur.com/gallery/iGcWcjV因為設計成正緣觸發,兩張圖的差異就變成了在最後一個1時
一個是0 -> 1,另一個是1 -> 0

讓我搞不太清楚應該是怎麼做

剛學verilog
如果問題很模糊的話,我會再解釋更清楚一點的,謝謝:)

--

我要回答

0 個回答

還沒有人回答,你知道答案嗎?

我要回答

登入會員後即可回答問題。

免費註冊