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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? play_logic_state_machine.vhd

?? MP3 for XPLA3 XILINX.CPLD,必須在XILINX的FPGA芯片下使用,因?yàn)镮P核是xilinx
?? VHD
字號(hào):
-- **************************************************************
-- File:  		play_logic_state_machine.vhd
--
-- Purpose: 	This file implements the Play Logic state machine
--			which performs the necessary handshaking to perform
--			the parallel data transfer of MP3 data to the MAS3507D.
--
--			When the MAS3507D is ready and negates end-of-data (EOD),
--			this state machine gets data from the flash and asserts PR.
--			It then waits for RTR to assert and then negate. PR is then
--			negated. When PR is negated, the READ signal to the flash is negated
--			and the Flash Read State Machine increments the flash address and 
--			gets the next data word. 
--
--			When SONG_END asserts indicating the end of MP3 data in the song flash,
--			this state machine resets the MAS3507D and returns to the IDLE state.
--
-- Created:		10/20/99	ALS
--
-- Revised:		11/5/99 	ALS
-- Revised:		01/13/00 	ALS
-- Revised:		01/17/00	ALS
-- Revised:		01/19/00	ALS 
-- Revised:		01/20/00 	ALS
-- Revised:		02/03/00	ALS
-- **************************************************************

library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.std_logic_arith.all;

entity play_logic_state_machine is
  
  port(
	-- Main Control Logic State Machine Interface Signals
	play		: in		std_logic;	-- indicates a play operation is enabled

	-- Flash Control Logic Interface Signals
	read 		: out 	std_logic;	-- read data from flash
	song_end	: in		std_logic;  -- indicates end of song data in song flash

	-- MAS3507D Interface Signals
	--wrdy		: in		std_logic;	-- indicates that MAS3507D is ready
	eod		: in		std_logic;	-- active low signal indicating end of data from MAS3507D
	rtr		: in		std_logic;	-- active low signal indicating MAS3507D obtained data
	pr		: out		std_logic;	-- active high signal indicating new data is available

	-- clock and reset	
      clock		: in		std_logic;	-- 2 MHz system clock
	reset 	: in 		std_logic	-- system reset
);

end play_logic_state_machine;

library IEEE;
use IEEE.std_logic_1164.all;

architecture behave of play_logic_state_machine is

-- ******************** CONSTANT DECLARATIONS ***********************
-- Reset Value
constant RESET_ACTIVE	: 	std_logic := '1';

-- ********************* SIGNAL DECLARATIONS ************************

--type state_type is (IDLE, FLASH_DATA, ASSERT_PR, WAIT_RTR, NEGATE_PR);
type state_type is (IDLE, FLASH_DATA, ASSERT_PR, NEGATE_PR);

signal state, next_state : state_type;

signal pr_com		: std_logic;	-- combinatorial pr from state machine
signal rtr_low		: std_logic;	-- =1 when falling edge of RTR occurs
signal rtr_reg_reset	: std_logic;	-- resets the register that captures RTR falling edge


begin

-- ************************  RTR Low Processes ************************
-- This process contains a register clocked by the falling edge of RTR to
-- indicate that RTR is low
rtr_low_proc: process(rtr, rtr_reg_reset)
begin
	if rtr_reg_reset = RESET_ACTIVE then
		rtr_low <= '0';
	elsif rtr'event and rtr = '0' then
		rtr_low <= '1';
	end if;
end process;

-- ************************  Play Logic State Machine Processes ************************
-- This process contains the combinatorial portion of the state machine
-- This state machine performs the handshaking for the parallel DMA data transfer to the
-- MAS3507D

play_logic_comb: process (state, eod, song_end, rtr, rtr_low, play)
begin

-- state machine defaults
	read <= '0';
	pr_com <= '0';
	next_state <= state;
	rtr_reg_reset <= not(RESET_ACTIVE);

		case state is 
			--******************** IDLE State **************
			when IDLE =>

				-- reset the RTR falling edge register
				rtr_reg_reset <= RESET_ACTIVE;

				-- leave this state when MAS3507D is ready, EOD is	
				-- negated, and play is asserted and song_end is negated
				if eod = '1'  and play = '1'  and song_end = '0' then
					next_state <= FLASH_DATA;
				end if;
			
			--******************** FLASH_DATA State ***************
			when FLASH_DATA =>
				-- this state asserts the READ signal to the Flash
				-- Control Logic state machine
				if song_end = '0' and play = '1' then
					read <= '1';
				end if;
				
				if play = '0' then 
					next_state <= IDLE;
				elsif eod = '1' then 
					next_state <= ASSERT_PR;
				end if;


			--******************** ASSERT_PR State ******************
			when ASSERT_PR =>
				-- this state aserts the PR signal and waits for RTR to assert
				pr_com <= '1';
				-- keep read asserted so that flash data does not change
				read <= '1';

				-- If eod asserts, return to FLASH_DATA state
				-- else if rtr has gone low and is now high, negate PR
				-- RTR_LOW indicates that a RTR falling edge has occurred
				if eod = '0' then
					next_state <= FLASH_DATA;
				elsif rtr_low = '1' and rtr = '1' then
					next_state <= NEGATE_PR;
				end if;			
		
			--******************** WAIT_RTR State ******************
			--when WAIT_RTR =>
				-- wait in this state for RTR to negate indicating that
				-- the MAS3507D has received the data
				-- keep pr and read asserted
			--	pr_com <= '1';
			--	read <= '1';

			--	if rtr = '1' then
					-- rtr negated, go to negate_pr state
			--		next_state <= NEGATE_PR;
			--	end if;


			--******************** NEGATE_PR State ******************
			when NEGATE_PR =>
				-- negate PR and READ signal
				-- negation of the READ signal transitions the READ flash
				-- state machine to the INC_ADDR state and gets new data ready
				--pr_com <= '0';
				--read <= '0';
				next_state <= IDLE; 

			
			--********************* DEFAULT **************************
			when others =>
				next_state <= IDLE;	
	
		end case;
end process;

play_logic_state_machine_regs: process (clock, reset)
begin
	if reset = RESET_ACTIVE then
		state <= IDLE;
	elsif clock'event and clock='1' then
		state <= next_state;
	end if;
end process;

pr_fallingedge_regs: process (clock, reset)
begin
	if reset = RESET_ACTIVE then
		pr <= '0';
	elsif clock'event and clock='0' then
		pr <= pr_com;
	end if;
end process;

end behave;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产品国语在线不卡| 国产成人8x视频一区二区| 91啪九色porn原创视频在线观看| 亚洲国产成人一区二区三区| eeuss国产一区二区三区| 国产精品国产三级国产三级人妇| www.亚洲在线| 亚洲综合精品自拍| 欧美剧在线免费观看网站 | 亚洲人成伊人成综合网小说| 91蜜桃免费观看视频| 亚洲一区国产视频| 欧美精品三级日韩久久| 精品无码三级在线观看视频 | 一本到高清视频免费精品| 一区二区三区精品久久久| 91精品综合久久久久久| 捆绑变态av一区二区三区| 国产色产综合色产在线视频| av电影一区二区| 亚洲一区二区三区自拍| 日韩欧美区一区二| 粉嫩在线一区二区三区视频| 亚洲乱码日产精品bd| 欧美精品国产精品| 国产米奇在线777精品观看| 亚洲三级理论片| 91精品国产综合久久久蜜臀粉嫩| 国产精选一区二区三区| 亚洲一二三级电影| 精品国产污网站| aaa亚洲精品| 日韩高清在线一区| 国产精品国产a级| 正在播放一区二区| 91在线观看地址| 美女视频网站黄色亚洲| 国产精品网曝门| 日韩三级电影网址| 91亚洲午夜精品久久久久久| 毛片不卡一区二区| 亚洲日本在线a| 精品国产一区二区国模嫣然| 91精品福利视频| 国产成人高清视频| 五月婷婷久久综合| 中文字幕一区二区三区不卡 | 97aⅴ精品视频一二三区| 日本中文一区二区三区| 中文字幕制服丝袜一区二区三区| 337p亚洲精品色噜噜噜| 99久久er热在这里只有精品66| 日韩国产成人精品| 亚洲男同1069视频| 久久久欧美精品sm网站| 91精品国产一区二区三区香蕉| av不卡免费在线观看| 激情欧美日韩一区二区| 天天综合色天天综合| 亚洲色图制服诱惑| 日本一区二区电影| 欧美第一区第二区| 欧美日韩午夜影院| 色婷婷激情久久| 成人av电影在线| 国产精品99久久久久久似苏梦涵 | 国产精品美女久久久久久久网站| 日韩限制级电影在线观看| 在线视频欧美精品| 色综合久久久久网| 91视视频在线观看入口直接观看www | 欧美一级在线免费| 777xxx欧美| 制服丝袜亚洲网站| 制服丝袜成人动漫| 欧美一区二区在线视频| 欧美三级韩国三级日本三斤| 色欧美片视频在线观看在线视频| 不卡一卡二卡三乱码免费网站| 国产·精品毛片| 国产成人免费在线观看不卡| 国产黄人亚洲片| 懂色av一区二区在线播放| 国产精品一二三区在线| 国产二区国产一区在线观看| 国产传媒欧美日韩成人| 国产激情一区二区三区桃花岛亚洲| 国产一区二区久久| 成人综合在线视频| av在线综合网| 色婷婷精品大视频在线蜜桃视频| 色综合av在线| 欧美日本乱大交xxxxx| 欧美日本在线播放| 欧美成人一区二区三区在线观看| 久久综合色婷婷| 中文字幕乱码久久午夜不卡 | 91一区二区三区在线观看| 91在线观看美女| 欧美日韩一区三区| 欧美大片国产精品| 久久精品网站免费观看| 亚洲欧洲日产国码二区| 亚洲一区免费在线观看| 青草国产精品久久久久久| 国产在线播放一区| 99精品一区二区三区| 欧美视频在线一区| 欧美岛国在线观看| 中文字幕一区二区视频| 五月天久久比比资源色| 国产在线一区二区| 91首页免费视频| 制服丝袜在线91| 日本一区二区三区高清不卡| 亚洲女人小视频在线观看| 青青青伊人色综合久久| 高清不卡在线观看| 欧美日韩在线一区二区| 26uuu国产日韩综合| 自拍偷拍国产亚洲| 奇米影视在线99精品| 成人精品高清在线| 欧美性生活久久| 精品国产乱码久久久久久闺蜜| 亚洲欧美中日韩| 麻豆精品国产91久久久久久| 99久久精品久久久久久清纯| 在线观看91av| 国产精品另类一区| 免费久久99精品国产| 91麻豆精品一区二区三区| 日韩免费观看高清完整版| 综合精品久久久| 国产自产v一区二区三区c| 91丨九色丨蝌蚪丨老版| 精品久久人人做人人爰| 亚洲国产视频一区二区| 成人美女视频在线看| 日韩欧美国产三级| 亚洲午夜免费视频| 成人美女在线视频| 久久亚洲一区二区三区四区| 亚洲电影一区二区| 99久久精品费精品国产一区二区| wwww国产精品欧美| 天天爽夜夜爽夜夜爽精品视频| 99九九99九九九视频精品| 久久―日本道色综合久久| 日韩av中文字幕一区二区| 色综合天天在线| 欧美国产丝袜视频| 国产一区二区三区免费播放| 5566中文字幕一区二区电影| 亚洲黄色小视频| 成人丝袜18视频在线观看| 久久久噜噜噜久久中文字幕色伊伊| 午夜欧美大尺度福利影院在线看 | 91香蕉视频在线| 国产午夜久久久久| 国内成人精品2018免费看| 日韩精品中文字幕一区| 日产精品久久久久久久性色| 欧美在线播放高清精品| 又紧又大又爽精品一区二区| 99久久777色| 中文字幕制服丝袜成人av| 99久久久精品免费观看国产蜜| 国产精品网曝门| 99久免费精品视频在线观看| 国产精品美女久久福利网站| 成人午夜在线免费| 中文字幕日韩av资源站| av不卡在线播放| 亚洲欧洲性图库| 色婷婷亚洲综合| 亚洲小说欧美激情另类| 欧美午夜视频网站| 视频一区二区三区中文字幕| 欧美丰满美乳xxx高潮www| 日韩1区2区日韩1区2区| 欧美大胆一级视频| 国产精品一区二区在线播放 | 日韩国产在线一| 4438x成人网最大色成网站| 美女在线一区二区| 久久久国产午夜精品| 国产精品18久久久| 亚洲人午夜精品天堂一二香蕉| 色偷偷成人一区二区三区91| 亚洲一区免费在线观看| 欧美成人性战久久| 国产精品888| 亚洲乱码精品一二三四区日韩在线| 91福利精品视频| 肉色丝袜一区二区| 精品国产乱码久久久久久闺蜜| 丁香桃色午夜亚洲一区二区三区| 亚洲图片欧美激情| 欧美一区二区久久久|