[問題] Mealy machine的verilog(作業)
各位好
我們有一個題目是寫
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
如果問題很模糊的話,我會再解釋更清楚一點的,謝謝:)
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.114.217.37 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/Programming/M.1590916565.A.226.html
→
06/03 09:39,
4年前
, 1F
06/03 09:39, 1F
Programming 近期熱門文章
PTT數位生活區 即時熱門文章