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

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

?? read_ch_arbiter.v

?? 如何使用ISE和FPGA使用指南
?? V
字號(hào):

//_____________________________________________________________________________________
// read_ch_arbiter.v
//_____________________________________________________________________________________
// This arbiter, arbitrates the next channel to read from.  Each channel that has a pn_lock
// will increment by 1 for each read cycle which it is not the channel read from.  If it is
// the channel that is read it will be reset to 0.  Whichever channel has the highest count
// and maintains a pn_lock will be the next channel to be read.  In this way, at the most, 
// each channel will be read every 4th read cycle.  Channel A has the highest priority, then B, 
// then C, and finally channel D.  If a channel loses lock, its count will be reset to 0. 
//_____________________________________________________________________________________


module read_ch_arbiter(input clk, 
		       input reset, 
		       input waiting_cntr_en, 
		       input next_ch_en, 
		       input [3:0] pn_lock_rd_clk, 
		       input [3:0] almost_full, 
		       input [3:0] almost_empty, 
		       input [3:0] empty, 
		       input [3:0] full, 
		       output [3:0] next_ch);
    
    reg       next_cha, next_chb, next_chc, next_chd;
    reg [2:0] cha_waiting_cntr, chb_waiting_cntr, chc_waiting_cntr, chd_waiting_cntr; // counts the number of cycles between being read.
    reg [3:0] priority, priority_v; // assigns priority to those channels that are almost_full.  Otherwise, 
    // if there are no almost_full channels priority is given to the channels that are not almost_empty.
    wire [2:0] cha_weight, chb_weight, chc_weight, chd_weight; // priority * waiting time
    
    assign next_ch = {next_chd, next_chc, next_chb, next_cha};
    //_____________________________________________________________________________________
    // Counts the number of cycles that each channel has been locked and waiting to output data.
    //_____________________________________________________________________________________
    always @ (posedge clk)
    begin: locked_ch_wait_cntr
	if (reset)
	begin
	    cha_waiting_cntr <= 0;
	    chb_waiting_cntr <= 0;
	    chc_waiting_cntr <= 0;
	    chd_waiting_cntr <= 0;
	end // if (reset)
	else
	begin
	      if (~pn_lock_rd_clk[0] | next_cha)
		cha_waiting_cntr <= 0;
	      else if (waiting_cntr_en & pn_lock_rd_clk[0])// clock enable waiting_cntr_en => Only enabled every 8 clock cycles
		cha_waiting_cntr <= cha_waiting_cntr + 1;
	    
	      if (~pn_lock_rd_clk[1] | next_chb)
		chb_waiting_cntr <= 0;
	      else if (waiting_cntr_en & pn_lock_rd_clk[1])// clock enable waiting_cntr_en => Only enabled every 8 clock cycles
		chb_waiting_cntr <= chb_waiting_cntr + 1;
	    
	    if (~pn_lock_rd_clk[2] | next_chc)
		chc_waiting_cntr <= 0;
	      else if (waiting_cntr_en & pn_lock_rd_clk[2])// clock enable waiting_cntr_en => Only enabled every 8 clock cycles
		chc_waiting_cntr <= chc_waiting_cntr + 1;

	      if (~pn_lock_rd_clk[3] | next_chd)
		chd_waiting_cntr <= 0;
	      else if (waiting_cntr_en & pn_lock_rd_clk[3])// clock enable waiting_cntr_en => Only enabled every 8 clock cycles
		chd_waiting_cntr <= chd_waiting_cntr + 1;
	end // else: !if(reset)
    end // block: locked_ch_wait_cntr

    //_____________________________________________________________________________________
    // Assigns priority to those channels that are almost_full.  If no channel is almost_full,
    // priority is assigned to those channels that are NOT almost_empty.  Finally, if there
    // is no priority, then the read is based on the waiting counters.
    //_____________________________________________________________________________________
    always @ (posedge clk)
    begin
	if (reset)
	  priority <= 0;
	else
	  begin
	      // default
	      priority_v = 0;
	      
	      if (|full) // highest priority given to those channels that are full
		priority_v = full;
	      else if (|almost_full) // priority is given to those channels that are almost_full
		priority_v = almost_full;
	      else // if no channels are almost full, priority is given to the channels that are not almost_empty
		if (|almost_empty) // if locked channels are the same as the almost_empty channelss
		  priority_v = ~almost_empty; 

	      if (|priority_v == 0 | ((priority_v & pn_lock_rd_clk) == 4'b0000))  // if there isn't any priority, the priority 
	        // will go to the highest waiting period
		priority_v = pn_lock_rd_clk;
	      else
		priority_v = priority_v & pn_lock_rd_clk;

	      priority <= priority_v & ~empty;// give the highest priority to those channels that are NOT empty
	  end // else: !if(reset)
	
    end // always @ (posedge clk or posedge reset)
    

    assign cha_weight = (priority[0]) ? cha_waiting_cntr + 1 : 0;
    assign chb_weight = (priority[1]) ? chb_waiting_cntr + 1 : 0;
    assign chc_weight = (priority[2]) ? chc_waiting_cntr + 1 : 0;
    assign chd_weight = (priority[3]) ? chd_waiting_cntr + 1 : 0;
    
    //_____________________________________________________________________________________
    // Read channel Arbiter.  Which ever channel is locked and has the highest "weight"
    // will be the next channel that is read.  
    //_____________________________________________________________________________________
    always @ (posedge clk)
    begin: next_ch_read_arbiter
	if (reset)
	begin
	    next_cha <= 0;
	    next_chb <= 0;
	    next_chc <= 0;
	    next_chd <= 0;
	end // if (reset)
	else
	begin
	    if (next_ch_en)
	    begin
		// defaults
		next_cha <= 0;
		next_chb <= 0;
		next_chc <= 0;
		next_chd <= 0;
		
		case (priority)
		    4'b0000:
		    begin
			next_cha <= 0;
			next_chb <= 0;
			next_chc <= 0;
			next_chd <= 0;
		    end
		    default:
		      begin
			  next_cha <= ((cha_weight >= chb_weight) & 
				       (cha_weight >= chc_weight) & (cha_weight >= chd_weight));
			  next_chb <= ((chb_weight > cha_weight) & 
				       (chb_weight >= chc_weight) & (chb_weight >= chd_weight));
			  next_chc <= ((chc_weight > cha_weight) & 
				       (chc_weight > chb_weight) & (chc_weight >= chd_weight));
			  next_chd <= ((chd_weight > cha_weight) & 
				       (chd_weight > chb_weight) & (chd_weight > chc_weight));
		      end // case: default
		endcase // case(priority)
 	    end // if (next_ch_en)
	end // else: !if(reset)
    end // block: next_ch_read_arbiter


endmodule // read_ch_arbiter

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美性生活大片视频| 94-欧美-setu| 亚洲四区在线观看| 91精品国产色综合久久ai换脸| 国产经典欧美精品| 免费欧美日韩国产三级电影| **欧美大码日韩| 久久婷婷成人综合色| 欧美日韩中文字幕一区| bt欧美亚洲午夜电影天堂| 久久精品国产成人一区二区三区| 亚洲美女在线一区| 国产精品国产三级国产aⅴ原创| 欧美一级片在线看| 欧美三级资源在线| 91猫先生在线| 不卡的av在线播放| 国产原创一区二区| 久久电影网站中文字幕| 偷窥少妇高潮呻吟av久久免费| 中文字幕一区二区三区在线播放| 久久久精品免费免费| 欧美r级在线观看| 6080国产精品一区二区| 欧美日韩一区二区三区不卡| 91九色02白丝porn| 色综合久久久久网| 色综合天天性综合| www.视频一区| 99久久精品国产网站| 99久久婷婷国产| 波多野结衣精品在线| 成人av资源站| 色综合久久六月婷婷中文字幕| 91免费观看视频在线| 色综合久久99| 在线观看欧美日本| 欧美日韩久久久久久| 8x8x8国产精品| 日韩一区二区三区在线| 日韩三级免费观看| 精品入口麻豆88视频| 2024国产精品视频| 久久一夜天堂av一区二区三区| 精品福利视频一区二区三区| 精品国一区二区三区| 2020国产精品| 国产拍欧美日韩视频二区| 国产欧美精品在线观看| 中文字幕一区二区三区色视频| 中文字幕亚洲欧美在线不卡| 亚洲精品videosex极品| 亚洲国产裸拍裸体视频在线观看乱了| 亚洲高清在线视频| 麻豆freexxxx性91精品| 国产在线精品一区二区不卡了| 国产激情一区二区三区| 色香色香欲天天天影视综合网| 欧美在线小视频| 欧美一区二区性放荡片| 久久亚洲免费视频| 国产精品视频你懂的| 亚洲精品国产精华液| 日韩av电影一区| 国产ts人妖一区二区| 欧美专区日韩专区| 日韩欧美色综合网站| 国产精品国产a级| 亚洲va在线va天堂| 国产精一区二区三区| 色婷婷综合久久久中文字幕| 538在线一区二区精品国产| 国产人成一区二区三区影院| 一区二区在线看| 久久精品国产网站| 成人av免费网站| 欧美一级高清大全免费观看| 国产精品欧美一区二区三区| 亚洲一区二区成人在线观看| 韩国女主播一区二区三区| 91免费观看在线| 欧美大片日本大片免费观看| ...av二区三区久久精品| 美女一区二区在线观看| 不卡视频一二三| 日韩一区二区三区av| 中文字幕亚洲区| 国产一区二区三区日韩| 欧美日韩综合在线免费观看| 国产精品毛片高清在线完整版| 婷婷亚洲久悠悠色悠在线播放| 成人午夜视频在线观看| 欧美一区二区精品久久911| 国产精品久久久久久亚洲伦| 麻豆精品在线看| 91成人免费在线视频| 国产欧美一区二区在线观看| 午夜精品成人在线| 99久久国产免费看| 久久久美女毛片| 日韩电影在线一区二区| 91免费版在线| 国产亚洲一区字幕| 免费看黄色91| 欧美伦理影视网| 亚洲人成网站在线| 国产精品一卡二| 欧美成人bangbros| 天堂一区二区在线| 日本韩国精品一区二区在线观看| 国产清纯白嫩初高生在线观看91| 久久精品国产色蜜蜜麻豆| 欧美人与性动xxxx| 亚洲一线二线三线视频| 91小视频免费观看| 国产欧美精品一区aⅴ影院| 捆绑调教美女网站视频一区| 91精品综合久久久久久| 亚洲电影视频在线| 欧美影视一区在线| 亚洲伊人色欲综合网| 日本韩国欧美一区二区三区| 亚洲精选视频免费看| 精品国产伦一区二区三区观看方式| 亚洲二区视频在线| 欧美日韩国产小视频在线观看| 欧美日韩专区在线| 欧美另类一区二区三区| 日韩电影网1区2区| 久久久久久久久97黄色工厂| 国产精品一区二区三区四区| 中文一区在线播放| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 91蜜桃视频在线| 日韩国产在线观看| 精品国产成人系列| 麻豆专区一区二区三区四区五区| 欧美在线|欧美| 亚洲永久免费视频| 欧美片在线播放| 日本午夜一区二区| 精品久久久久久久久久久久久久久久久| 日韩在线播放一区二区| 91精品国产手机| 精品制服美女久久| 国产日韩欧美a| 色综合色综合色综合色综合色综合| 亚洲欧美日韩国产另类专区| 在线欧美日韩精品| 日韩成人一区二区三区在线观看| 精品三级在线看| zzijzzij亚洲日本少妇熟睡| 一区二区三区中文免费| 制服丝袜av成人在线看| 激情另类小说区图片区视频区| 国产日韩欧美制服另类| 91美女视频网站| 三级一区在线视频先锋| 久久综合九色综合97_久久久| 国产成人丝袜美腿| 亚洲狠狠丁香婷婷综合久久久| 欧美日韩精品专区| 国产成人无遮挡在线视频| 亚洲蜜桃精久久久久久久| 日韩一区二区三| 99久久精品免费看国产免费软件| 亚洲国产欧美在线| 国产亚洲综合av| 欧美私模裸体表演在线观看| 国产美女视频一区| 亚洲综合成人在线视频| 精品对白一区国产伦| 91社区在线播放| 六月丁香婷婷久久| 亚洲日本在线看| 欧美一区二区三区日韩视频| 成人精品国产免费网站| 日本一区中文字幕| 中文字幕一区二区三区在线不卡| 欧美精品电影在线播放| 东方欧美亚洲色图在线| 五月天欧美精品| 国产精品人成在线观看免费 | 夜夜夜精品看看| 欧美一级片在线| 91亚洲精品一区二区乱码| 麻豆成人av在线| 亚洲一区二区在线免费观看视频| 26uuu精品一区二区三区四区在线| 91麻豆免费视频| 国产一区视频在线看| 亚洲高清免费视频| 国产精品传媒在线| 精品国产乱码久久久久久浪潮 | 国产精品伦一区| 日韩精品在线一区| 欧美日韩高清一区二区不卡| 丁香天五香天堂综合| 久久精品99久久久| 五月天激情综合网|