⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mycount.vhd

📁 利用Ti公司的TMSvc320c6711开发板的基础上搭建的移动视频电话系统。程序中主要实现3个功能:实时捕捉视频和音频数据;能够对视频和音频数据进行解码和存储;能够通过GPRS通信口传输音/视频压缩
💻 VHD
字号:
-- Author: Elliot Hill
--
-- Description: This file is the base counter module for the MVP
-- (Mobile VideoPhone) thesis project. It is used
-- to count up to a certain number and then reset
-- to zero.
library ieee;
use ieee.std_logic_1164.all;
entity counter is port
(clkin, reset: in BIT;
total: in INTEGER;
OE: out BIT);
end;
architecture counter_arch of counter is
begin
-- We want the process to update everytime there is
-- a change on the clock or hsync signals.
process (clkin, reset)
variable count : INTEGER := 0;
begin
if (reset = '0' and reset'STABLE) then
if (clkin = '1' and clkin'EVENT) then
-- If the clk triggers and hsync is not asserted,
-- then increment the count. Note that OE is only
-- asserted when the counter reaches the number
-- specified by total. After that, it is 0.
count := count + 1;
if count = total then
OE <= '1', '0' after 20 ns;
end if;
end if;
elsif (reset = '1' and reset'EVENT) then
-- The reset input is asserted, so we want to reset
-- the counter.
count := 0;
end if;
end process;
end counter_arch;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -