亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
成人aaaa免费全部观看| 日韩美一区二区三区| 日韩免费视频一区二区| 一区在线播放视频| 免费成人av资源网| 91福利国产成人精品照片| 日韩午夜激情电影| 一区二区三区日韩欧美精品| 麻豆视频一区二区| 欧美日韩一级黄| 国产精品国产三级国产aⅴ原创| 免费在线观看精品| 欧美日韩成人高清| 亚洲黄一区二区三区| 成人三级在线视频| 26uuu精品一区二区在线观看| 婷婷中文字幕综合| 欧美亚洲一区三区| 亚洲一区二区三区自拍| 成人国产在线观看| 欧美激情一区二区三区全黄| 久久99九九99精品| 国产精品久久久久一区二区三区| 美女高潮久久久| 日韩一卡二卡三卡国产欧美| 午夜视频在线观看一区| 在线日韩av片| 亚洲色图.com| 91国模大尺度私拍在线视频| 中文字幕一区不卡| 成人激情免费视频| 亚洲欧洲色图综合| 成人av在线电影| 亚洲欧美综合另类在线卡通| 99re成人在线| 亚洲精品国产无套在线观| 一本大道久久a久久精品综合| 亚洲女人的天堂| 欧洲av一区二区嗯嗯嗯啊| 亚洲综合免费观看高清完整版| 色综合天天综合在线视频| 亚洲免费高清视频在线| 欧美视频一区二| 日韩国产成人精品| 久久久一区二区三区捆绑**| 国内成人精品2018免费看| 国产亚洲综合av| 成人黄色国产精品网站大全在线免费观看 | 国产精品1024| 国产日韩欧美一区二区三区乱码 | 久久久久国产精品人| 国产91高潮流白浆在线麻豆| 日本一区二区三区高清不卡| 99re视频这里只有精品| 亚洲主播在线观看| 5858s免费视频成人| 国产精品中文有码| 亚洲精品中文字幕在线观看| 欧美丝袜丝交足nylons| 精品影视av免费| 国产精品精品国产色婷婷| 欧美亚洲高清一区| 麻豆精品在线播放| 中文字幕视频一区| 91精品一区二区三区久久久久久 | 亚洲国产精品黑人久久久| 91视频免费看| 久久精品噜噜噜成人av农村| 国产精品麻豆网站| 欧美一级免费观看| av高清久久久| 蜜臀av一区二区| 亚洲欧美日韩精品久久久久| 777午夜精品免费视频| 成人一道本在线| 免费一级片91| 亚洲精品视频在线看| 精品日韩一区二区三区| 欧美视频中文一区二区三区在线观看 | 成人在线综合网| 日韩电影在线一区二区三区| 国产精品免费久久| 日韩欧美高清在线| 在线观看亚洲一区| 国产91精品精华液一区二区三区| 日韩精品91亚洲二区在线观看| 亚洲国产成人自拍| 欧美成人艳星乳罩| 欧美挠脚心视频网站| 99麻豆久久久国产精品免费优播| 日本aⅴ免费视频一区二区三区| 亚洲欧美一区二区久久 | 精品国免费一区二区三区| 日本精品免费观看高清观看| 国产高清亚洲一区| 久久丁香综合五月国产三级网站| 亚洲女性喷水在线观看一区| 国产欧美视频一区二区| 日韩免费视频一区二区| 欧美一区二区不卡视频| 欧美日韩在线三区| 色琪琪一区二区三区亚洲区| 成人午夜精品在线| 国产成人精品一区二区三区四区 | 国产亚洲欧美激情| 欧美变态tickling挠脚心| 欧美色综合网站| 在线一区二区三区四区五区| a亚洲天堂av| 99精品1区2区| 91在线视频18| 在线欧美小视频| 欧洲精品中文字幕| 在线观看www91| 欧美日韩高清在线| 欧美日韩国产成人在线免费| 欧美日韩一区二区在线视频| 欧美视频你懂的| 337p亚洲精品色噜噜狠狠| 欧美精品色一区二区三区| 欧美另类一区二区三区| 91精品欧美综合在线观看最新| 欧美区在线观看| 日韩精品专区在线影院重磅| 久久综合色之久久综合| 久久精品一区八戒影视| 国产欧美日本一区视频| 1区2区3区精品视频| 亚洲激情图片一区| 日韩电影在线观看网站| 韩国欧美一区二区| 成人黄色国产精品网站大全在线免费观看| proumb性欧美在线观看| 欧美三级中文字幕| 日韩免费成人网| 欧美激情综合五月色丁香| 亚洲天堂2014| 天天综合网天天综合色| 国精产品一区一区三区mba桃花| 国产在线日韩欧美| 91在线观看视频| 欧美日韩精品二区第二页| 日韩精品专区在线影院重磅| 国产精品丝袜一区| 亚洲一二三四久久| 国产在线精品免费| 99国内精品久久| 日韩精品一区二区三区在线观看| 中文幕一区二区三区久久蜜桃| 一区二区在线观看免费| 麻豆成人91精品二区三区| 成人av影视在线观看| 欧美日韩一区视频| 国产欧美一区二区精品久导航 | 欧美在线一区二区三区| 欧美一级视频精品观看| 国产精品―色哟哟| 视频一区二区三区在线| 成人精品电影在线观看| 69成人精品免费视频| 中文字幕乱码日本亚洲一区二区| 亚洲中国最大av网站| 国产乱人伦偷精品视频免下载 | av中文一区二区三区| 日韩一级精品视频在线观看| 亚洲天堂福利av| 国产麻豆精品在线观看| 欧美日韩亚州综合| 亚洲欧洲制服丝袜| 国产黄人亚洲片| 欧美mv日韩mv国产网站| 亚洲一区二区三区不卡国产欧美| 国产精品一区二区91| 91精品久久久久久久99蜜桃| 自拍偷拍欧美精品| 国产成人啪免费观看软件| 欧美一级生活片| 亚洲午夜av在线| 色婷婷国产精品| 中文字幕制服丝袜一区二区三区| 精油按摩中文字幕久久| 欧美日韩一卡二卡| 亚洲精品国产无套在线观| 99久久精品免费看国产 | 国产成人在线观看免费网站| 91精品国产全国免费观看| 亚洲国产综合91精品麻豆| 色综合天天综合狠狠| 欧美国产日韩在线观看| 国产经典欧美精品| 2023国产精品| 国产自产v一区二区三区c| 日韩一区二区在线观看视频播放| 亚洲精品成人悠悠色影视| 99r国产精品| 一区视频在线播放| 一本大道久久a久久综合婷婷| 国产精品福利一区| 99re视频精品| 一区二区三区中文字幕|