用vhdl語言設計4位序列檢測器當檢測到0110時

2021-07-22 11:04:21 字數 832 閱讀 1064

1樓:匿名使用者

用狀態機吧,大致的思路應該是以下的方式吧。

.....

case(xx_state)

....

when s0 =>

if (seq_in = '0') thenxx_state <= s1;

else

xx_state <= s0;

end if;

seq_hit_o <= '0';

when s1 =>

if (seq_in = '1') thenxx_state <= s2;

else

xx_state <= s0;

end if;

seq_hit_o <= '0';

when s2 =>

if (seq_in = '1') thenxx_state <= s3;

else

xx_state <= s0;

end if;

seq_hit_o <= '0';

when s3 =>

if (seq_in = '0') thenseq_hit_o <= '1';

else

seq_hit_o <= '0';

end if;

xx_state <= s0;

end case;

.....

求大神幫忙用vhdl語言設計一個8位的比較器,a大於等於b時輸出1,否則輸出0。。急急急!!!!

2樓:h夾

求大神幫忙用vhdl語言設計一個8位的比較器確

比較好的的

用VerilogHDL設計4位串並轉換器,需要程式和

module s2p clk,rst n,sdi,pdo input clk clock signal for serial data input input rst n system reset signal,negative value input sdi serial data input,p...

用c語言設計課程資訊管理系統,用C語言設計一個課程資訊管理系統

include include include include using namespace std struct list typedef struct list node typedef node link 函式宣告 link create link head link search link...

用C語言程式設計,定義字串,chara

不是的char a 10 分配10個元素的空間,char a 和 char a 是一樣的,不分配空間。c語言字串問題,求正確答案和解釋 假設已定義char a 10 和char p a,下面的賦 正確答案是d a錯誤,因為a 10 代表一個字元是吧,不能賦值字串b錯誤是因為 陣列名不能當左值,也就是...