freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于vhdl的交通燈控制器的設計與實現(xiàn)-在線瀏覽

2024-10-28 14:07本頁面
  

【正文】 道紅燈 S2 狀態(tài):支干道綠燈、主干道紅燈 S3 狀態(tài):支干道左轉(zhuǎn)、主干道紅燈 S 0時 間 為 0 ?S 1YN時 間 為 0 ?N YS 2時 間 為 0 ?時 間 為 0 ?YS 3YNN 三.各模塊代碼以及仿真波形 ? 分頻模塊代碼 因為 1HZ 波形太長,不易仿真,故仿真波形采用 100HZ 的 輸入 clk : 50MHZ 輸出 clk1: 100HZ ? 時間設置模塊部分代碼 以上是直行時間設置代碼。 ? 狀態(tài)轉(zhuǎn)換模塊 波形仿真 分別給主干道,支干道個顏色燈持續(xù)時間賦值,再給定,當前亮燈的剩余時間,然后又進行仿真,結(jié)果符合預期 ? LED 模塊代碼 波形仿真 分別給予輸入不同周期的高低點評 ,相互疊加的結(jié)果符合預期。 use 。 use 。 rst_n : in STD_LOGIC。 counter_play2h, counter_play2l : in STD_LOGIC_VECTOR(3 downto 0)。 SF_D : out STD_LOGIC_VECTOR(3 downto 0)。 end LCD。 signal tx_state : tx_sequence := done。 signal tx_init : std_logic := 39。 type init_sequence is (idle, fifteenms, one, two, three, four, five, six, seven, eight, done)。 signal init_init, init_done : std_logic := 39。 signal i : integer range 0 to 750000 := 0。 signal i3 : integer range 0 to 82020 := 0。 signal LCD_E0, LCD_E1 : std_logic。???? type display_state is (init, function_set, entry_set, set_display, clr_display, pause, set_addr, max_degree_1,max_degree_2,temperature_1,temperature_2,degree_1,degree_2,blank1,blank2,blank3)。 begin LED = tx_byte。139。039。039。139。 control the bus with cur_state select mux = 39。 when init, 39。 when others。139。039。 register select with cur_state select LCD_RS = 39。 when function_set|entry_set|set_display|clr_display|set_addr, 39。 when others。counter_play1h when max_degree_1, 0011amp。counter_play2h when temperature_1, 0011amp。 main state machine display: process(clk, rst_n) begin if(rst_n=39。) then cur_state = function_set。139。event) then case cur_state is refer to intialize state machine below when init = if(init_done = 39。) then cur_state = function_set。 end if。 else cur_state = function_set。 when entry_set = if(i2 = 2020) then cur_state = set_display。 end if。 else cur_state = set_display。 when clr_display = i3 = 0。 else cur_state = clr_display。 when pause = if(i3 = 82020) then cur_state = set_addr。 else cur_state = pause。 end if。 else cur_state = set_addr。 when max_degree_1 = if(i2 = 2020) then cur_state = max_degree_2。 end if。 else cur_state = max_degree_2。 when blank1 = if(i2 = 2020) then cur_state = temperature_1。 end if。 else cur_state = temperature_1。 when temperature_2 = if(i2 = 2020) then cur_state = blank2。 end if。 el
點擊復制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1