广告广告
  加入我的最爱 设为首页 风格修改
首页 首尾
 手机版   订阅   地图  繁体 
您是第 3328 个阅读者
 
发表文章 发表投票 回覆文章
  可列印版   加为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.015244 second(s),query:15 Gzip disabled
本站由 瀛睿律师事务所 担任常年法律顾问 | 免责声明 | 本网站已依台湾网站内容分级规定处理 | 连络我们 | 访客留言