廣告廣告
  加入我的最愛 設為首頁 風格修改
首頁 首尾
 手機版   訂閱   地圖  簡體 
您是第 3319 個閱讀者
 
發表文章 發表投票 回覆文章
  可列印版   加為IE收藏   收藏主題   上一主題 | 下一主題   
22862827
數位造型
個人文章 個人相簿 個人日記 個人地圖
路人甲
級別: 路人甲 該用戶目前不上站
推文 x0 鮮花 x1
分享: 轉寄此文章 Facebook Plurk Twitter 複製連結到剪貼簿 轉換為繁體 轉換為簡體 載入圖片
推文 x0
[求助] [VHDL]請教 電子鐘矩陣運用 5分變一次圖語法用法
請教一下 上面是電子鐘與矩陣的2小段程式

上半部是我想控制5分鐘矩陣會變一次圖

但是上半部寫法是學別的人寫不出來元整5分鐘變一次 
5 10 15 20 25 30。。。50分都沒問題

但是55跟00這2邊搞不定 數到 55分 跟 00分都沒反應跳不過去

下半部份是控制5分跳一次的顯示圖

上面的寫法上半部這種語法不知道是否能請高手解釋一下
timer(15 downto 8)>x"54" and timer(15 downto 8)<x"00" then


或者是5分鐘跳一次矩陣圖有更好的寫法?請高手幫忙一下~ ~


if
timer(15 downto 8)>x"4" and timer(15 downto 8)<x"10" then
ct<=x"0";
elsif timer(15 downto 8)>x"9" and timer(15 downto 8)<x"15" then
ct<=x"1";
elsif timer(15 downto 8)>x"14" and timer(15 downto 8)<x"20" then
ct<=x"2";
elsif timer(15 downto 8)>x"19" and timer(15 downto 8)<x"25" then
ct<=x"3";
elsif timer(15 downto 8)>x"24" and timer(15 downto 8)<x"30" then
ct<=x"4";
elsif timer(15 downto 8)>x"29" and timer(15 downto 8)<x"35" then
ct<=x"5";
elsif timer(1 ..

訪客只能看到部份內容,免費 加入會員 或由臉書 Google 可以看到全部內容




獻花 x0 回到頂端 [樓 主] From:歐洲 | Posted:2008-06-12 22:48 |

首頁  發表文章 發表投票 回覆文章
Powered by PHPWind v1.3.6
Copyright © 2003-04 PHPWind
Processed in 0.013232 second(s),query:15 Gzip disabled
本站由 瀛睿律師事務所 擔任常年法律顧問 | 免責聲明 | 本網站已依台灣網站內容分級規定處理 | 連絡我們 | 訪客留言