【文件属性】:
文件名称:基于VHDL的VGA彩条显示
文件大小:1KB
文件格式:VHD
更新时间:2015-08-24 09:13:23
彩条
竖条显示
process(hcnt,vcnt)
begin
if hcnt>=143 and hcnt<=223 then GRB<="000";
elsif hcnt>223 and hcnt<=303 then GRB<="001";
elsif hcnt>303 and hcnt<=383 then GRB<="010";
elsif hcnt>383 and hcnt<=463 then GRB<="011";
elsif hcnt>463 and hcnt<=543 then GRB<="100";
elsif hcnt>543 and hcnt<=623 then GRB<="101";
elsif hcnt>623 and hcnt<=703 then GRB<="110";
elsif hcnt>703 and hcnt<=783 then GRB<="111";
end if;
end process;
网友评论
- 怎么运行不了?
- 还不错,有参考的价值。