亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? timer_counter.vhd

?? vhdl語言編寫的AVR單片機IP核
?? VHD
?? 第 1 頁 / 共 3 頁
字號:
--**********************************************************************************************-- Timers/Counters Block Peripheral for the AVR Core-- Version 1.01 -- Modified 20.05.2003-- Synchronizer for EXT1/EXT2/Tosc1 inputs was added-- Designed by Ruslan Lepetenok--**********************************************************************************************library IEEE;use IEEE.std_logic_1164.all;use IEEE.std_logic_unsigned.all;use WORK.AVRuCPackage.all;entity Timer_Counter is port(	                   -- AVR Control               ireset         : in std_logic;               cp2	          : in std_logic;               adr            : in std_logic_vector(5 downto 0);               dbus_in        : in std_logic_vector(7 downto 0);               dbus_out       : out std_logic_vector(7 downto 0);               iore           : in std_logic;               iowe           : in std_logic;               out_en         : out std_logic;                        --Timer/Counters               EXT1           : in std_logic;               EXT2           : in std_logic;			   Tosc1	      : in std_logic;			   OC0_PWM0       : out std_logic;			   OC1A_PWM1A     : out std_logic;			   OC1B_PWM1B     : out std_logic;			   OC2_PWM2       : out std_logic;			   		   			           --IRQ               TC0OvfIRQ      : out std_logic;			   TC0OvfIRQ_Ack  : in std_logic;			   TC0CmpIRQ      : out std_logic;			   TC0CmpIRQ_Ack  : in std_logic;			   TC2OvfIRQ      : out std_logic;			   TC2OvfIRQ_Ack  : in std_logic;			   TC2CmpIRQ      : out std_logic;			   TC2CmpIRQ_Ack  : in std_logic;			   TC1OvfIRQ      : out std_logic;			   TC1OvfIRQ_Ack  : in std_logic;			   TC1CmpAIRQ     : out std_logic;			   TC1CmpAIRQ_Ack : in std_logic;			   TC1CmpBIRQ     : out std_logic;			   TC1CmpBIRQ_Ack : in std_logic;			   			   TC1ICIRQ       : out std_logic;			   TC1ICIRQ_Ack   : in std_logic);end Timer_Counter;architecture rtl of Timer_Counter is-- Copies of the external signalssignal OC0_PWM0_Int   :	std_logic := '0';signal OC2_PWM2_Int   :	std_logic := '0';-- Registerssignal TCCR0  : std_logic_vector(7 downto 0) := (others => '0');signal TCCR1A : std_logic_vector(7 downto 0) := (others => '0');signal TCCR1B : std_logic_vector(7 downto 0) := (others => '0');signal TCCR2  : std_logic_vector(7 downto 0) := (others => '0');signal ASSR   : std_logic_vector(7 downto 0) := (others => '0'); -- Asynchronous status register (for TCNT0)signal TIMSK  : std_logic_vector(7 downto 0) := (others => '0');signal TIFR   : std_logic_vector(7 downto 0) := (others => '0');signal TCNT0  : std_logic_vector(7 downto 0) := (others => '0');signal TCNT2  : std_logic_vector(7 downto 0) := (others => '0');signal OCR0   : std_logic_vector(7 downto 0) := (others => '0');signal OCR2   : std_logic_vector(7 downto 0) := (others => '0');signal TCNT1H : std_logic_vector(7 downto 0) := (others => '0');signal TCNT1L : std_logic_vector(7 downto 0) := (others => '0');signal OCR1AH : std_logic_vector(7 downto 0) := (others => '0');signal OCR1AL : std_logic_vector(7 downto 0) := (others => '0');signal OCR1BH : std_logic_vector(7 downto 0) := (others => '0');signal OCR1BL : std_logic_vector(7 downto 0) := (others => '0');signal ICR1AH : std_logic_vector(7 downto 0) := (others => '0');signal ICR1AL : std_logic_vector(7 downto 0) := (others => '0');signal TCCR0_Sel  : std_logic := '0';signal TCCR1A_Sel : std_logic := '0';signal TCCR1B_Sel : std_logic := '0';signal TCCR2_Sel  : std_logic := '0';signal ASSR_Sel   : std_logic := '0';signal TIMSK_Sel  : std_logic := '0';signal TIFR_Sel   : std_logic := '0';signal TCNT0_Sel  : std_logic := '0';signal TCNT2_Sel  : std_logic := '0';signal OCR0_Sel   : std_logic := '0';signal OCR2_Sel   : std_logic := '0';signal TCNT1H_Sel : std_logic := '0';signal TCNT1L_Sel : std_logic := '0';signal OCR1AH_Sel : std_logic := '0';signal OCR1AL_Sel : std_logic := '0';signal OCR1BH_Sel : std_logic := '0';signal OCR1BL_Sel : std_logic := '0';signal ICR1AH_Sel : std_logic := '0';signal ICR1AL_Sel : std_logic := '0';  -- TCCR0 Bitsalias CS00  : std_logic is TCCR0(0);alias CS01  : std_logic is TCCR0(1);alias CS02  : std_logic is TCCR0(2);alias CTC0  : std_logic is TCCR0(3);alias COM00 : std_logic is TCCR0(4);alias COM01 : std_logic is TCCR0(5);alias PWM0  : std_logic is TCCR0(6);  -- TCCR1A Bitsalias PWM10  : std_logic is TCCR1A(0);alias PWM11  : std_logic is TCCR1A(1);alias COM1B0 : std_logic is TCCR1A(4);alias COM1B1 : std_logic is TCCR1A(5);alias COM1A0 : std_logic is TCCR1A(4);alias COM1A1 : std_logic is TCCR1A(5);  -- TCCR1B Bitsalias CS10  : std_logic is TCCR1A(0);alias CS11  : std_logic is TCCR1A(1);alias CS12  : std_logic is TCCR1A(2);alias CTC1  : std_logic is TCCR1A(3);alias ICES1 : std_logic is TCCR1A(6);alias ICNC1 : std_logic is TCCR1A(7);  -- TCCR2 Bitsalias CS20  : std_logic is TCCR2(0);alias CS21  : std_logic is TCCR2(1);alias CS22  : std_logic is TCCR2(2);alias CTC2  : std_logic is TCCR2(3);alias COM20 : std_logic is TCCR2(4);alias COM21 : std_logic is TCCR2(5);alias PWM2  : std_logic is TCCR2(6);-- ASSR bitsalias TCR0UB  : std_logic is ASSR(0);alias OCR0UB  : std_logic is ASSR(1);alias TCN0UB  : std_logic is ASSR(2);alias AS0     : std_logic is ASSR(3);-- TIMSK bitsalias TOIE0     : std_logic is TIMSK(0);alias OCIE0     : std_logic is TIMSK(1);alias TOIE1     : std_logic is TIMSK(2);alias OCIE1B    : std_logic is TIMSK(3);alias OCIE1A    : std_logic is TIMSK(4);alias TICIE1    : std_logic is TIMSK(5);alias TOIE2     : std_logic is TIMSK(6);alias OCIE2     : std_logic is TIMSK(7);-- TIFR bitsalias TOV0     : std_logic is TIFR(0);alias OCF0     : std_logic is TIFR(1);alias TOV1     : std_logic is TIFR(2);alias OCF1B    : std_logic is TIFR(3);alias OCF1A    : std_logic is TIFR(4);alias ICF1     : std_logic is TIFR(5);alias TOV2     : std_logic is TIFR(6);alias OCF2     : std_logic is TIFR(7);-- Prescaler1 signalssignal CK8    : std_logic := '0';signal CK64   : std_logic := '0';signal CK256  : std_logic := '0';signal CK1024 : std_logic := '0';signal Pre1Cnt : std_logic_vector(9 downto 0) := (others => '0'); -- Prescaler 1 counter (10-bit)signal EXT1RE : std_logic := '0'; -- Rising edge of external input EXT1 (for TCNT1 only)signal EXT1FE : std_logic := '0'; -- Falling edge of external input EXT1 (for TCNT1 only)signal EXT2RE : std_logic := '0'; -- Rising edge of external input EXT2	(for TCNT2 only)signal EXT2FE : std_logic := '0'; -- Falling edge of external input EXT2 (for TCNT2 only)-- Risign/falling edge detectors	signal EXT1Latched : std_logic := '0';	signal EXT2Latched : std_logic := '0';	-- Prescalers outputs signal TCNT0_En : std_logic := '0'; -- Output of the prescaler 0signal TCNT1_En : std_logic := '0';	-- Output of the prescaler 1signal TCNT2_En : std_logic := '0';	-- Output of the prescaler 1-- Prescaler0 signals	signal PCK0     : std_logic := '0';signal PCK08    : std_logic := '0';signal PCK032   : std_logic := '0';signal PCK064   : std_logic := '0';signal PCK0128  : std_logic := '0';signal PCK0256  : std_logic := '0';signal PCK01024 : std_logic := '0';signal Tosc1RE      : std_logic := '0'; -- Rising edge detector for TOSC1 inputsignal Tosc1Latched : std_logic := '0';signal Pre0Cnt      : std_logic_vector(9 downto 0) := (others => '0'); -- Prescaler 0 counter (10-bit)signal PCK0_Del     : std_logic := '0';-- Timer/counter 0 signalssignal TCNT0_Tmp     : std_logic_vector(7 downto 0) := (others => '0');signal TCNT0_In      : std_logic_vector(7 downto 0) := (others => '0');signal TCNT0_Imm_In  : std_logic_vector(7 downto 0) := (others => '0'); -- Immediate data input signal TCCR0_Tmp     : std_logic_vector(7 downto 0) := (others => '0');signal TCCR0_In      : std_logic_vector(7 downto 0) := (others => '0');signal OCR0_Tmp      : std_logic_vector(7 downto 0) := (others => '0');signal OCR0_In       : std_logic_vector(7 downto 0) := (others => '0');signal TCNT0_Cnt_Dir : std_logic := '0'; -- Count up(0) down (1)signal TCNT0_Clr     : std_logic := '0'; -- Clear (syncronously) TCNT0signal TCNT0_Ld_Imm  : std_logic := '0'; -- Load immediate value (syncronously) TCNT0signal TCNT0_Cmp_Out : std_logic := '0'; -- Output of the comparatorsignal TCNT0_Inc     : std_logic := '0'; -- Increment (not load) took place-- For asynchronous mode onlysignal TCR0UB_Tmp     : std_logic := '0';signal OCR0UB_Tmp     : std_logic := '0';signal TCN0UB_Tmp     : std_logic := '0';-- Timer/counter 2 signalssignal TCNT2_In      : std_logic_vector(7 downto 0) := (others => '0');signal OCR2_Tmp      : std_logic_vector(7 downto 0) := (others => '0');signal TCNT2_Cnt_Dir : std_logic := '0'; -- Count up(0) down (1)signal TCNT2_Clr     : std_logic := '0'; -- Clear (syncronously) TCNT0signal TCNT2_Imm_In  : std_logic_vector(7 downto 0) := (others => '0'); -- Immediate data input signal TCCR2_Tmp     : std_logic_vector(7 downto 0) := (others => '0');signal OCR2_In       : std_logic_vector(7 downto 0) := (others => '0');signal TCNT2_Ld_Imm  : std_logic := '0'; -- Load immediate value (syncronously) TCNT2signal TCNT2_Cmp_Out : std_logic := '0'; -- Output of the comparatorsignal TCNT2_Inc     : std_logic := '0'; -- Increment (not load) took place-- Synchronizer signalssignal EXT1SA  : std_logic := '0';signal EXT1SB  : std_logic := '0'; -- Output of the synchronizer for EXT1signal EXT2SA  : std_logic := '0';signal EXT2SB  : std_logic := '0'; -- Output of the synchronizer for EXT1signal Tosc1SA : std_logic := '0';signal Tosc1SB : std_logic := '0'; -- Output of the synchronizer for Tosc1-- TBD-- Timer/counter 1 signals-- TBD-- Additonal signals (These signals are added in order to emulate the behaviour of the real chip )-- !!! TBD !!!--signal PORTB4_Out : std_logic := '0';--signal PORTB5_Out : std_logic := '0';--signal PORTB6_Out : std_logic := '0';--signal PORTB7_Out : std_logic := '0';begin	-- SynchronizersSyncDFFs:process(cp2,ireset)	begin	 if ireset='0' then      -- Reset  EXT1SA <= '0';    EXT1SB <= '0';     EXT2SA <= '0';     EXT2SB <= '0';     Tosc1SA <= '0';    Tosc1SB <= '0';     elsif cp2='1' and cp2'event then -- Clock    EXT1SA <= EXT1;      EXT1SB <= EXT1SA;       EXT2SA <= EXT2;       EXT2SB <= EXT2SA;       Tosc1SA <= Tosc1;      Tosc1SB <= Tosc1SA; end if;	 end process;	

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成年人影院| 精品国产a毛片| 午夜日韩在线电影| 91精品一区二区三区在线观看| 欧美aaa在线| 精品欧美一区二区久久| 国产a久久麻豆| 一二三四社区欧美黄| 欧美一级夜夜爽| 国产成人精品免费视频网站| 综合久久久久综合| 欧美老肥妇做.爰bbww| 国模娜娜一区二区三区| 亚洲男人的天堂av| 在线91免费看| 成人不卡免费av| 亚洲高清不卡在线观看| 久久日韩粉嫩一区二区三区| 99久久婷婷国产精品综合| 午夜伦欧美伦电影理论片| 国产午夜精品久久久久久久| 在线这里只有精品| 国产又粗又猛又爽又黄91精品| 综合电影一区二区三区 | 欧美v亚洲v综合ⅴ国产v| 国产精品自拍毛片| 亚洲国产精品久久久久秋霞影院| 精品嫩草影院久久| 欧美性xxxxxxxx| 国产麻豆成人传媒免费观看| 亚洲综合在线电影| 久久免费偷拍视频| 欧美网站一区二区| 国产成人福利片| 三级不卡在线观看| 1024成人网色www| 欧美tickling网站挠脚心| 色综合天天视频在线观看| 国精品**一区二区三区在线蜜桃| 成人av动漫网站| 免费成人av资源网| 亚洲一区视频在线| 国产精品乱人伦| 精品乱人伦一区二区三区| 在线亚洲免费视频| 成人精品鲁一区一区二区| 日本欧美大码aⅴ在线播放| 亚洲欧美一区二区三区国产精品 | 国产精品日产欧美久久久久| 欧美日韩国产一级| 色综合久久综合网97色综合| 国产剧情一区二区| 麻豆91精品91久久久的内涵| 亚洲综合免费观看高清完整版| 中文子幕无线码一区tr| 日韩欧美国产系列| 7777精品伊人久久久大香线蕉最新版| 972aa.com艺术欧美| 成人精品鲁一区一区二区| 久久电影网站中文字幕| 日韩电影在线看| 天天影视涩香欲综合网| 亚洲超碰精品一区二区| 一区二区三区在线影院| 国产精品久久久久久久浪潮网站| 国产亚洲精品bt天堂精选| 26uuu色噜噜精品一区| 欧美电视剧在线看免费| 欧美一级二级在线观看| 日韩一区二区三区免费看| 欧美精品一级二级| 欧美午夜片在线观看| 欧美午夜片在线观看| 欧美人妖巨大在线| 91精品国产欧美一区二区成人| 欧美精品一卡二卡| 欧美大片免费久久精品三p| 91精品国产黑色紧身裤美女| 欧美一区二区在线播放| 日韩欧美一级二级三级久久久| 欧美日韩国产高清一区二区 | 综合av第一页| 亚洲最大成人网4388xx| 亚洲v精品v日韩v欧美v专区 | 久99久精品视频免费观看| 激情国产一区二区| 成人永久aaa| 色成人在线视频| 91精品国产91久久综合桃花| 精品少妇一区二区三区在线播放 | 日本电影欧美片| 欧美日韩成人高清| 亚洲精品在线观| 中文字幕一区二区不卡| 亚洲制服丝袜在线| 蜜桃久久精品一区二区| 国产成人日日夜夜| 色欲综合视频天天天| 欧美日韩成人在线一区| 精品不卡在线视频| 日韩一区有码在线| 亚洲成av人片www| 国产精品91一区二区| 91麻豆视频网站| 91精品婷婷国产综合久久竹菊| 久久人人爽爽爽人久久久| 亚洲精品日韩专区silk| 青娱乐精品在线视频| 成人小视频免费观看| 欧美日韩一区成人| 久久久亚洲精品一区二区三区| 亚洲日本在线观看| 麻豆国产精品777777在线| 北岛玲一区二区三区四区| 777奇米四色成人影色区| 国产精品免费视频网站| 亚洲成人免费在线| 国产精品资源网| 欧美日韩国产乱码电影| 国产精品久久二区二区| 日本最新不卡在线| 色综合久久久久网| 2021国产精品久久精品| 亚洲无人区一区| 成人性色生活片| 精品成人佐山爱一区二区| 亚洲一区二区三区中文字幕在线| 国产一区二区三区在线观看免费视频| 91香蕉视频mp4| 精品88久久久久88久久久| 亚洲一级二级在线| 成人激情午夜影院| 精品久久久网站| 爽爽淫人综合网网站| 91猫先生在线| 国产精品久久久久久久久久久免费看| 久久不见久久见中文字幕免费| 在线视频综合导航| 国产精品第四页| 国产剧情一区二区三区| 欧美成人vr18sexvr| 婷婷成人激情在线网| 91浏览器入口在线观看| 国产精品九色蝌蚪自拍| 国产精品一二三四| 日韩精品影音先锋| 青青草一区二区三区| 欧美日本一道本| 午夜激情一区二区三区| 在线观看亚洲专区| 日韩一区在线免费观看| 成人午夜视频在线观看| 国产午夜精品久久| 国产激情视频一区二区在线观看 | 国产精品久久毛片av大全日韩| 国模冰冰炮一区二区| 精品国产乱码久久久久久久| 日本91福利区| 欧美大肚乱孕交hd孕妇| 极品销魂美女一区二区三区| 日韩美女在线视频| 久久国产精品色| 精品国产91亚洲一区二区三区婷婷| 免费成人在线网站| 精品久久久久久无| 国产老妇另类xxxxx| 国产欧美精品区一区二区三区 | 在线看日韩精品电影| 亚洲欧美偷拍另类a∨色屁股| 94色蜜桃网一区二区三区| 亚洲精品一二三四区| 色www精品视频在线观看| 亚洲国产欧美日韩另类综合 | 日韩一区二区电影| 美女一区二区三区| 2020国产精品自拍| 成人网在线播放| 亚洲乱码精品一二三四区日韩在线 | 欧美一区二区三区思思人| 日韩国产精品久久久久久亚洲| 日韩视频一区二区在线观看| 极品尤物av久久免费看| 亚洲国产精品成人综合| 色屁屁一区二区| 午夜视频在线观看一区| 欧美成人官网二区| 不卡一二三区首页| 性欧美疯狂xxxxbbbb| 精品三级在线观看| 成人免费高清视频在线观看| 亚洲一区免费观看| 精品国产一区二区精华| 色综合一个色综合亚洲| 日韩av二区在线播放| 国产午夜精品福利| 欧美无砖砖区免费| 国产在线国偷精品免费看| 亚洲乱码国产乱码精品精的特点| 欧美挠脚心视频网站| 国产91精品露脸国语对白|