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

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

?? dec_func.vhd

?? 16B20B編碼轉換
?? VHD
字號:
-- **************************************************************************
-- Owner:		Xilinx Inc.
-- File:  		dec_func.vhd
--
-- Purpose: 		Main 8B/10B decoder function.  Decodes serial data
--			stream following 5B/6B and 3B/4B encoding schemes.  Decodes
--			incoming 10-bit transmitted serial data stream of ain .. jin
--			to byte wide data AOUT .. HOUT.  Incoming data includes control
--			characters i and j.  Detects transmission of special characters 
--			and asserts KOUT respectively.
--
-- Author:		Jennifer Jenkins
-- Date:		3-31-2000
--
-- **************************************************************************


library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;

entity DEC_FUNC is
    port(
        
          clk			: in STD_LOGIC;
          rst			: in STD_LOGIC;
        
          -- Data Inputs (ain .. jin)
	  ain			: in STD_LOGIC;			
	  bin			: in STD_LOGIC;
	  cin			: in STD_LOGIC;			
	  din			: in STD_LOGIC;
	  ein			: in STD_LOGIC;
	  iin			: in STD_LOGIC;			
	  fin			: in STD_LOGIC;
	  gin			: in STD_LOGIC;			
	  hin			: in STD_LOGIC;  
	  jin			: in STD_LOGIC;	
	
 	  -- Control terms
	  start_dec		: in STD_LOGIC;   		-- Asserted starts decoding sequence
	  	
	  -- Output data terms (AOUT .. HOUT)
	  aout			: out STD_LOGIC;
	  bout			: out STD_LOGIC;
	  cout			: out STD_LOGIC;
	  dout			: out STD_LOGIC;
	  eout			: out STD_LOGIC;
	  fout			: out STD_LOGIC;
	  gout			: out STD_LOGIC;
	  hout			: out STD_LOGIC;

	  kout			: out STD_LOGIC;		-- Asserted when special character
								-- is detected in transmission
	  -- Output signals
	  dec_done		: out STD_LOGIC			-- Asserted when encoding is complete, 
								-- provides handshaking to main control logic
          );

end DEC_FUNC;



architecture BEHAVIOUR of DEC_FUNC is

-- ******************** CONSTANT DECLARATIONS ***********************
constant RESET_ACTIVE 	: STD_LOGIC := '0';


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

-- Define states for download state machine
type STATE is (IDLE, PREL, DECODE, DONE);
signal prs_state, nxt_state : STATE;

-- Preliminary output signals
signal a_cl1, a_cl2, a_cl3 : STD_LOGIC;
signal b_cl1, b_cl2, b_cl3 : STD_LOGIC;
signal c_cl1, c_cl2, c_cl3 : STD_LOGIC;
signal d_cl1, d_cl2, d_cl3 : STD_LOGIC;
signal e_cl1, e_cl2, e_cl3 : STD_LOGIC;
signal f_sel1, f_sel2 : STD_LOGIC;
signal g_cl1, g_cl2 : STD_LOGIC;
signal h_cl1, h_cl2 : STD_LOGIC;
signal k_cl1, k_cl2 : STD_LOGIC;

-- Output combinational signals
signal aout_com, bout_com, cout_com, dout_com : STD_LOGIC;
signal eout_com, fout_com, gout_com, hout_com, kout_com : STD_LOGIC;


begin

	-- **************** SIGNAL ASSIGNMENTS *************************
	a_cl1 <= ((ein or not(iin) or (not(cin xor bin) or din)) and
		 (ein or not(bin and din and
		 (not(iin or cin) or (not(ain) and iin and cin)))))
		when ((prs_state = PREL) or (prs_state = DECODE)) else '0';

	a_cl2 <= ((not(ein) or ((din or bin) and (iin or cin))) and
		 (iin or (not(cin) or (din and bin))))
		when ((prs_state = PREL) or (prs_state = DECODE)) else '0';

	a_cl3 <= (not(cin) and din and iin and not(((ain and ein) or (bin and not(ein)))))
		when ((prs_state = PREL) or (prs_state = DECODE)) else '0';


	b_cl1 <= ((not(bin) and (din xor ein) and iin) or not(iin or din or ein)) 
		when ((prs_state = PREL) or (prs_state = DECODE)) else '0';

	b_cl2 <= (bin and not(iin) and 
		 not(((ain and cin) or not(din or ein)) and (not(ein) or din)))
		when ((prs_state = PREL) or (prs_state = DECODE)) else '0';

	b_cl3 <= (not((not((bin and ein) or (bin and din) or (iin and din)) or ain or cin) and
		    (din or ein or not(iin) or not(ain xor cin))))
		when ((prs_state = PREL) or (prs_state = DECODE)) else '0';


	c_cl1 <= (not(ain) and din and iin and (not(bin) or (not(cin) and ein)))
		when ((prs_state = PREL) or (prs_state = DECODE)) else '0';

	c_cl2 <= (not((ain and bin and not(cin) and din and iin) or
		 (not(iin or not(bin) or not(ain xor din))) or
		 (not(din) and ((not(ain) and bin and iin) or (ain and not(bin) and iin)))))
		when ((prs_state = PREL) or (prs_state = DECODE)) else '0';

	c_cl3 <= (cin and not(((not(ain) and not(ein)) or (ain and bin) or iin) and
			     ((iin and bin) or din or not(ein))))
		when ((prs_state = PREL) or (prs_state = DECODE)) else '0';


	d_cl1 <= ((not(ain) and (din or (iin and not(ein))) and (cin xor bin)) or
		 (ain and (cin xor bin) and ((not(din) and ein and iin) or
					     (not(ein) and not(iin)))))
		when ((prs_state = PREL) or (prs_state = DECODE)) else '0';

	d_cl2 <= (not(ein or not(iin) or (not(ain and not(bin) and not(cin)) and
					 (not(ain) or not(bin) or not(cin) or din))))
		when ((prs_state = PREL) or (prs_state = DECODE)) else '0';
 
	d_cl3 <= ((not(bin) and ein) or (bin and not(ain and cin)))
		when ((prs_state = PREL) or (prs_state = DECODE)) else '0';

				
	e_cl1 <= ((not(iin) and bin and ((ain and not(cin) and not(din)) or 
				(ein and (ain xor cin)))) or
		 (not(bin or not(din) or ((not(ain) or not(ein) or iin) and
					  ((ain or cin or ein or not(iin)))))))
		when ((prs_state = PREL) or (prs_state = DECODE)) else '0';
					       
	e_cl2 <= ((cin and not((ain or (bin and din) or (not(bin) and not(iin))) and
			      ((iin and bin) or not(ain) or din))) or
		 not(cin or din or not(bin) or not(iin)))
		when ((prs_state = PREL) or (prs_state = DECODE)) else '0';

	e_cl3 <= ((cin or ain or not(bin)) and (bin or not(ain xor cin)))
		when ((prs_state = PREL) or (prs_state = DECODE)) else '0';


	f_sel1 <= (not(hin and not(iin or ein or din or cin)))
		when ((prs_state = PREL) or (prs_state = DECODE)) else '0';

	f_sel2 <= (hin or not(iin or ein or din or cin))
		when ((prs_state = PREL) or (prs_state = DECODE)) else '0';

				
	g_cl1 <= (((not(not(fin) or (hin and (iin or ein or din or cin)))) or
		  fin or (hin and (iin or ein or din or cin))) and
		 ((not(not(fin) or (hin and (iin or ein or din or cin)))) or
		  gin))
		when ((prs_state = PREL) or (prs_state = DECODE)) else '0';

	g_cl2 <= (not((fin or not(iin or ein or hin or din or cin)) and
		 ((gin or hin or iin or ein or din or cin) and (gin or fin))))
		when ((prs_state = PREL) or (prs_state = DECODE)) else '0';


	h_cl1 <= (not((jin and not(iin or ein or din or cin)) or 
		     (fin and not(jin or gin))))
		when ((prs_state = PREL) or (prs_state = DECODE)) else '0';

	h_cl2 <= ((hin and not(jin) and (iin or ein or din or cin)) or 
		 ((hin xor jin) and not(gin xor fin)))
		when ((prs_state = PREL) or (prs_state = DECODE)) else '0';


	k_cl1 <= (not(((ain xor bin) and cin and din) or 
		     (ain and bin and not(iin or not(din xor cin)))))
		when ((prs_state = PREL) or (prs_state = DECODE)) else '0';

	k_cl2 <= ((not(ain or bin) and (iin and (din xor cin))) or 
		 ((ain xor bin) and not(cin or din)))
		when ((prs_state = PREL) or (prs_state = DECODE)) else '0';



	-- ***************** Process: SEQUENTIAL ************************
	-- Purpose:  	Synchronize ENC_FUNC target state machine
	-- Components: 	none
    
    	SEQUENTIAL: process (rst, clk)
    	begin
       	 	if rst = RESET_ACTIVE then	
         	   	prs_state <= IDLE;
            
       	 	elsif clk'event and (clk = '1') then
         	   	prs_state <= nxt_state;
			aout <= aout_com;
			bout <= bout_com;
			cout <= cout_com;
			dout <= dout_com;
			eout <= eout_com;
			fout <= fout_com;
			gout <= gout_com;
			hout <= hout_com;
			kout <= kout_com;
            
        	end if;

    	end process SEQUENTIAL;
    
    
    
    	-- ******************** Process: DECFUNC ************************
    	-- Purpose: 	Decoding control logic.  Synchronize control logic 
	-- 		for decoding data inputs.  Asserts dec_done when 
	--		decoding is completed.
	--		
    	-- Components:	none
        
    	DECFUNC: process (prs_state, start_dec)
    	begin
    
    	 	nxt_state <= prs_state;
		dec_done <= '0';
		aout_com <= '0';
		bout_com <= '0';
		cout_com <= '0';
		dout_com <= '0';
		eout_com <= '0';
		fout_com <= '0';
		gout_com <= '0';
		hout_com <= '0';
		kout_com <= '0';
			    	
        	case prs_state is
        
        		----------------------- IDLE State -------------------------
        		when IDLE =>
        		
			   	-- Waits for go signal from main control logic
				-- Assertion of start_dec
        			if start_dec = '1' then
        				nxt_state <= PREL;
        			end if;
        		
        		---------------------- PREL State -------------------------
	      		when PREL =>

				-- Generate preliminary output signals for aout .. hout
				nxt_state <= DECODE;


      	  		---------------------- DECODE State -------------------------
	      		when DECODE =>
			
				-- Generate the output data 
				aout_com <= (not(a_cl2) and ain) or
					not(a_cl1) or a_cl3;
				bout_com <= (b_cl1 and ain and cin) or
					b_cl2 or b_cl3;
				cout_com <= not((ein or c_cl2) and not(c_cl1) and not(c_cl3));
				dout_com <= (d_cl3 and din and not(iin)) or
					d_cl1 or d_cl2;
				eout_com <= (ein and e_cl2) or (not(e_cl3) and (din xor iin)) or e_cl1;
				
				if jin = '0' then
					if f_sel1 = '0' then
						fout_com <= gin;
					else 	fout_com <= fin;
					end if;
			
					gout_com <= g_cl1;

				else	-- jin = '1'
					if f_sel2 = '0' then
						fout_com <= not(gin);
					else 	fout_com <= not(fin);
					end if;

					gout_com <= g_cl2;

				end if;				
				
				hout_com <= not((h_cl1 or hin) and not(h_cl2) and
					    not(not(fin) and gin and hin and jin));

				if ein = '0' then
					kout_com <= (gin and hin and jin and k_cl2) or (not(cin or din or iin));
				else   	-- ein = '1'
					kout_com <= not(((jin or hin) or k_cl1 or gin) and 
						    (not(cin and din and iin)));
				end if;

				-- Assert decode done signal
				dec_done <= '1';			
				
				nxt_state <= DONE;


			--------------------- DONE State -------------------------
			when DONE =>
		
				-- Wait for encoding signal to be deasserted
				if start_dec = '0' then
					nxt_state <= IDLE;
				end if;


			--------------------- DEFAULT State ------------------------
			when OTHERS =>
				nxt_state <= IDLE;	      
        	
        	        	
        end case;  
        
    end process DECFUNC;


end BEHAVIOUR;
































?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩色综合| 日本久久一区二区| 国产三区在线成人av| 国产精品一卡二卡在线观看| 久久精品夜夜夜夜久久| 99精品视频中文字幕| 亚洲精品日日夜夜| 欧美亚洲一区三区| 欧美体内she精高潮| 日韩高清欧美激情| 欧美成人性福生活免费看| 国产精品亚洲综合一区在线观看| 中日韩av电影| 欧美日韩三级一区| 国产一区二区三区精品视频| 国产精品毛片高清在线完整版 | 在线中文字幕一区二区| 亚洲成va人在线观看| 日韩亚洲欧美在线观看| 国产精品18久久久久| 亚洲色图19p| 欧美一区二区三区的| 国产不卡高清在线观看视频| 亚洲一区在线观看视频| 日韩欧美国产电影| 91免费观看国产| 日本欧美久久久久免费播放网| 国产欧美日韩视频在线观看| 欧美亚洲禁片免费| 国产白丝网站精品污在线入口| 亚洲一区精品在线| 日本一区二区在线不卡| 欧美精品1区2区| 99国产麻豆精品| 精品一区二区三区不卡| 亚洲影院理伦片| 国产精品色在线观看| 日韩一卡二卡三卡四卡| 91精品办公室少妇高潮对白| 国产在线看一区| 午夜精品成人在线视频| 亚洲天天做日日做天天谢日日欢| 日韩欧美一二三| 欧美在线你懂的| fc2成人免费人成在线观看播放| 免费欧美高清视频| 亚洲一区中文在线| 亚洲视频在线一区| 日本一区免费视频| 亚洲精品在线观| 欧美一区二区三区视频免费| 一本大道久久精品懂色aⅴ| 麻豆91在线播放| 亚洲超碰97人人做人人爱| 亚洲欧美一区二区三区久本道91| 国产视频一区二区在线| 欧美电影免费观看高清完整版在线 | 国产成人精品www牛牛影视| 午夜激情一区二区| 亚洲午夜av在线| 一区二区三区影院| 亚洲少妇30p| 日本一区二区成人在线| 久久久久久久久97黄色工厂| 欧美一卡二卡三卡| 91精品国产免费| 91精品国产乱| 欧美一区二区三区视频免费播放| 欧美三级视频在线| 欧美色精品在线视频| 在线看不卡av| 欧美日韩在线播放三区四区| 色狠狠一区二区| 欧美自拍偷拍一区| 日本精品一区二区三区高清| 91视频观看免费| 日本丰满少妇一区二区三区| 一本久道中文字幕精品亚洲嫩| 色嗨嗨av一区二区三区| 色香蕉成人二区免费| 在线中文字幕一区| 欧美日本韩国一区二区三区视频| 欧美日韩久久久一区| 日韩一区二区在线看片| 久久婷婷国产综合国色天香| 久久精品男人天堂av| 国产精品传媒入口麻豆| 一区二区三区高清在线| 同产精品九九九| 国产一区在线观看麻豆| 成人免费毛片aaaaa**| 91啪亚洲精品| 欧美精品少妇一区二区三区| 欧美久久一区二区| 欧美成人一区二区三区片免费 | 香蕉影视欧美成人| 美女视频黄 久久| 国产另类ts人妖一区二区| 99久久久久久| 欧美精品日韩一区| 精品成人一区二区三区| 国产精品欧美久久久久一区二区| 亚洲精选视频免费看| 日韩中文字幕区一区有砖一区| 人禽交欧美网站| www.欧美日韩国产在线| 欧美日韩视频专区在线播放| 日韩免费观看高清完整版| 国产欧美精品一区二区三区四区| 一区二区三区中文字幕精品精品 | 最新欧美精品一区二区三区| 亚洲成人动漫在线免费观看| 国产在线播放一区二区三区| 99精品视频一区二区| 欧美一区二区人人喊爽| 亚洲国产精品成人久久综合一区 | 手机精品视频在线观看| 国产一区二区在线视频| 91九色最新地址| 久久精品水蜜桃av综合天堂| 一区二区三区不卡视频| 伦理电影国产精品| 色婷婷久久久久swag精品| 欧美大胆人体bbbb| 亚洲午夜影视影院在线观看| 国产精选一区二区三区| 欧美人伦禁忌dvd放荡欲情| 久久久不卡网国产精品二区| 亚洲成人免费av| 成人国产精品免费网站| 51精品久久久久久久蜜臀| 中文字幕佐山爱一区二区免费| 免费成人在线网站| 在线一区二区三区| 国产精品久久久久久久蜜臀 | 国产综合色精品一区二区三区| 一本久道中文字幕精品亚洲嫩| 精品国产三级a在线观看| 亚洲一区二区三区四区的| gogo大胆日本视频一区| 国产日韩在线不卡| 青青草国产成人av片免费| 在线一区二区视频| 亚洲品质自拍视频| 99久久精品国产麻豆演员表| 国产婷婷一区二区| 国产一区二区在线影院| 日韩精品专区在线影院观看| 五月婷婷激情综合| 欧美日韩久久一区二区| 亚洲国产wwwccc36天堂| 91精品1区2区| 一区二区激情小说| 91久久精品国产91性色tv| 日韩久久一区二区| av午夜一区麻豆| 中文字幕一区二区三区在线不卡 | 亚洲精品日韩综合观看成人91| 国产成人精品亚洲午夜麻豆| 精品国产成人在线影院 | 国产二区国产一区在线观看| 欧美成人r级一区二区三区| 日本伊人午夜精品| 欧美成人精品福利| 国内外精品视频| 国产欧美日韩一区二区三区在线观看 | 亚洲精品一区二区三区香蕉| 日本午夜精品一区二区三区电影| 欧美另类videos死尸| 天堂成人免费av电影一区| 3d成人动漫网站| 免费观看日韩av| 久久综合国产精品| 国产福利91精品| 亚洲欧美激情一区二区| 欧美午夜精品一区| 日韩电影免费在线| 久久综合狠狠综合久久激情| 成人美女视频在线观看| 亚洲欧美日韩一区二区三区在线观看| 99九九99九九九视频精品| 亚洲午夜成aⅴ人片| 日韩午夜在线播放| 国产高清精品网站| 国产精品久久久久9999吃药| 91日韩在线专区| 亚洲一区二区三区在线| 日韩午夜精品视频| 国产精品88888| 亚洲美女屁股眼交| 日韩欧美色综合| 国产不卡在线一区| 一区二区三区在线视频免费| 欧美日韩二区三区| 国产成人在线色| 亚洲一区二区三区自拍| 欧美videos中文字幕| 99久久免费视频.com| 日韩中文字幕区一区有砖一区| 久久久久久久综合色一本|