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

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

?? config_mux.v

?? 基于FPGA的PCI接口源代碼及Testbenc
?? V
?? 第 1 頁 / 共 2 頁
字號(hào):
// --------------------------------------------------------------------
// >>>>>>>>>>>>>>>>>>>>>>>>> COPYRIGHT NOTICE <<<<<<<<<<<<<<<<<<<<<<<<<
// --------------------------------------------------------------------
// Copyright (c) 2001 by Lattice Semiconductor Corporation
// --------------------------------------------------------------------
//
// Permission:
//
//   Lattice Semiconductor grants permission to use this code for use
//   in synthesis for any Lattice programmable logic product.  Other
//   use of this code, including the selling or duplication of any
//   portion is strictly prohibited.
//
// Disclaimer:
//
//   This VHDL or Verilog source code is intended as a design reference
//   which illustrates how these types of functions can be implemented.
//   It is the user's responsibility to verify their design for
//   consistency and functionality through the use of formal
//   verification methods.  Lattice Semiconductor provides no warranty
//   regarding the use or functionality of this code.
//
// --------------------------------------------------------------------
//           
//                     Lattice Semiconductor Corporation
//                     5555 NE Moore Court
//                     Hillsboro, OR 97214
//                     U.S.A
//
//                     TEL: 1-800-Lattice (USA and Canada)
//                          408-826-6000 (other locations)
//
//                     web: http://www.latticesemi.com/
//                     email: techsupport@latticesemi.com
//
// --------------------------------------------------------------------
// Revision History :
// --------------------------------------------------------------------
//   Ver  :| Author            :| Mod. Date :| Changes Made:
//   v1.0 :| D.S.              :| 12/08/98  :| Initial Creation
// --------------------------------------------------------------------
//
//	Module  config_mux
// This block implements the PCI target configuration registers, and
// the PCI data output MUX.  It controls when data gets written into the
// configuration registers, and what data gets presented onto the output
// data bus (pci_dat_out) during reads.
//
// Note:  The read values for the base address registers are set in this
//        block.  BA0 & BA1 always return the size of the memory block for the
//        backend app. when read. 
//

module config_mux (pci_dat_out, ba0_size, ba1_size, bkend_dat, 
                   pci_dat, pci_cbe_l, pci_addr, pci_rst_l, 
		   abort_sig, pci_clk, com, cbe_reg_l, 
		   idsel_reg, ba0_en, ba1_en, pci_irdy_l,
		   //JO ADD
		   ba0_rw_reg, ba1_rw_reg
		   //END JO ADD
		   );
 
  output [31:0] pci_dat_out; // the pci output data bus
  output [31:4] ba0_size; // The address space required for ba0
  output [31:4] ba1_size; // The address space required for ba1
  output [1:0] com; // The Mem - I/O enable bits of the command reg
  output ba1_en, ba0_en;
 
  input pci_irdy_l;
  input [3:0] cbe_reg_l;
  input idsel_reg;
  input [31:0] bkend_dat; // back end data in
  input [7:0] pci_addr;
  input [31:0] pci_dat; // pci data
  input [3:0] pci_cbe_l; // byte enables in

  input pci_rst_l; // async reset
  input abort_sig; // state machine is aborting set status
  input pci_clk; 
  //JO ADD
  input [31:0] ba0_rw_reg; 
  input [31:0] ba1_rw_reg;
  //END JO ADD

/******************************************************************/
// reg declarations
reg [7:0] int_line; // r/w interupt line register
reg [31:0] pci_dat_out; // output data bus
reg [31:0] cfg_dat_out; // output data bus
reg [1:0] com; // The command register
reg stat11; // The status register bit for signaled target abort
reg stat_com_en;
reg int_line_en;
reg ba1_en;
reg ba0_en;

wire cfg_en;
reg cfg_out;

/******************************************************************/


// The following parameters set the values for the read only 
// configuration registers.

/******************************************************************/
/************    Start Reg 00h Section              ***************/
/******************************************************************/
// reg 00h (DevID/VendorID)
parameter	DEVICE_ID     = 16'h0120; // User Defined
parameter	VENDOR_ID     = 16'h1022; // Set to AMD
/******************************************************************/
/************    End Reg 00h Section              *****************/
/******************************************************************/


/******************************************************************/
/************    Start Reg 04h Section              ***************/
/******************************************************************/
//reg 04h (status/command) 

// The only bits used in this section are status[11:9] 
// Command[1:0] The rest are all disabled to 0 at the Mux inputs

// `defines used for devsel
`define fast    2'b00
`define medium  2'b01
`define slow    2'b10
parameter DEV_SEL = `slow; // medium devsel timing

// The creation of the status and Command Registers
always @ (posedge pci_clk or negedge pci_rst_l)
  if (pci_rst_l == 1'b0) begin 
     com <= 2'b00; // disable I/O and MEM space accesses.
     stat11 <= 1'b0; // reset target abort status bit
  end
  else if (stat_com_en == 1'b1) begin 
      if (!pci_cbe_l[0])  // check to see if byte lane is enabled
        com <= pci_dat[1:0]; 
      else
        com <= com;
      if (!pci_cbe_l[3] && pci_dat[27]) // check to see if byte lane is enabled
        stat11 <= 0; // write a 1 clears this bit
      else
        stat11 <= stat11;    
  end 
  else if (abort_sig == 1'b1) begin 
     stat11 <= 1'b1; // set target abort status bit
     com <= com;
  end 
  else begin 
    stat11 <= stat11;
    com <= com;
  end
/******************************************************************/
/************    End Reg 04h Section              *****************/
/******************************************************************/



/******************************************************************/
/************    Start Reg 08h Section              ***************/
/******************************************************************/
// reg 08h (Class/revision)
parameter	CLASS_CODE    = 24'h058000;	// Memory Controller 
parameter	REVISION_ID   =  8'h01;		// Rev. 01
/******************************************************************/
/************    End Reg 08h Section              *****************/
/******************************************************************/



/******************************************************************/
/************    Start Reg 0Ch Section              ***************/
/******************************************************************/
// reg 0Ch (Misc Functions)
// No BIST, Type 00 header, Ignore Cachelinesize, No Latency Set,
parameter MISC_FUNCTIONS = 32'h00000000;

/******************************************************************/
/************    End Reg 0Ch Section              *****************/
/******************************************************************/




/******************************************************************/
/************  Start Base Address Defines Section   ***************/
/******************************************************************/

// Base address registers. 
// The Following `defines are used in the Base Address Parameters
// To set if the Back End Device is:
//   -User I/O or Memory
//   -Where it is locatated in the address map
//   -If the backend device is prefetchable
//   -How much address space it requires

`define MEM_ON         1'b0
`define IO_ON          1'b1

`define ANYWHERE_IN_32 2'b00
`define BELOW_1M       2'b01
`define ANYWHERE_IN_64 2'b10

`define PREFETCH_ON    1'b1
`define PREFETCH_OFF   1'b0

`define ADDR_2G     28'h8000_000
`define ADDR_1G     28'hC000_000
`define ADDR_512M   28'hE000_000
`define ADDR_256M   28'hF000_000
`define ADDR_128M   28'hF800_000
`define ADDR_64M    28'hFC00_000
`define ADDR_32M    28'hFE00_000
`define ADDR_16M    28'hFF00_000

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线亚洲精品福利网址导航| 一区二区三区四区视频精品免费| 欧美日韩成人一区| 88在线观看91蜜桃国自产| 欧美三级视频在线播放| 欧美成人一区二区三区| 久久久久久**毛片大全| 26uuu欧美| 亚洲成人动漫精品| 国产福利一区二区三区视频| 不卡欧美aaaaa| 精品久久人人做人人爰| 伊人一区二区三区| 国产高清成人在线| 欧美日本一区二区三区| 精品视频999| 91小宝寻花一区二区三区| 4438x成人网最大色成网站| 久久久久亚洲蜜桃| 午夜精品国产更新| 色94色欧美sute亚洲线路二| 久久久精品黄色| 人人超碰91尤物精品国产| 91丨porny丨国产入口| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 成人深夜在线观看| 色噜噜狠狠一区二区三区果冻| 精品裸体舞一区二区三区| 亚洲图片一区二区| 国产精品伦理一区二区| 日韩成人av影视| 色香蕉成人二区免费| 国产**成人网毛片九色| 国产精品网站导航| 日欧美一区二区| 欧美一级黄色录像| 日韩高清不卡一区| 欧美一级免费大片| 成人永久免费视频| 精品欧美一区二区久久| 日韩精品久久理论片| 欧美视频三区在线播放| 亚洲欧洲韩国日本视频| 精品中文字幕一区二区小辣椒| 欧美精品在线一区二区三区| 亚洲午夜三级在线| 8x8x8国产精品| 蜜桃av一区二区三区电影| 欧美三级电影网| 亚洲制服丝袜av| 日韩美女天天操| 99精品国产91久久久久久 | 一区二区三区美女| 日韩欧美国产三级| 国产成人亚洲精品狼色在线| 在线综合视频播放| 裸体在线国模精品偷拍| 亚洲欧洲一区二区在线播放| 欧美日韩视频一区二区| 国产米奇在线777精品观看| 国产精品护士白丝一区av| 天天操天天干天天综合网| 日韩精品一区二区三区三区免费 | 日本伊人色综合网| 成人免费一区二区三区在线观看| 欧美在线一区二区| 成人午夜看片网址| 亚洲综合小说图片| 国产人妖乱国产精品人妖| 欧美高清www午色夜在线视频| 白白色 亚洲乱淫| 国内精品免费**视频| 亚洲狠狠爱一区二区三区| 国产精品久久久一本精品| 欧美精品一区二区三区蜜臀| 日韩欧美一区二区久久婷婷| 欧美日韩国产区一| 欧美色综合天天久久综合精品| 91浏览器打开| 欧美综合色免费| 欧美影视一区二区三区| 在线欧美一区二区| 欧美情侣在线播放| 这里只有精品免费| 7777女厕盗摄久久久| 欧美精品在线视频| 日韩欧美在线1卡| 日韩欧美国产综合在线一区二区三区| 欧美人妇做爰xxxⅹ性高电影 | 香港成人在线视频| 麻豆91免费看| 国产69精品久久99不卡| 91一区二区在线| 91精品国产综合久久久久久久 | 日本高清不卡视频| 欧美一区二区三区四区五区 | 91在线看国产| 久久se精品一区二区| 精品一区二区三区免费观看| 国产麻豆日韩欧美久久| 亚洲精品国产视频| 久久国产人妖系列| 精品一区二区在线看| 91小视频在线| 国产三级精品三级在线专区| 亚洲成人免费在线观看| 国产精品一二三四| 欧美日韩亚洲高清一区二区| 久久精品欧美日韩精品| 亚洲一区二区三区影院| 国产精品一二三在| 麻豆91精品91久久久的内涵| 不卡一二三区首页| 717成人午夜免费福利电影| 国产精品理论在线观看| 精品午夜一区二区三区在线观看| 国产精品亚洲午夜一区二区三区| 欧美艳星brazzers| 亚洲美女视频在线| 国产suv一区二区三区88区| 菠萝蜜视频在线观看一区| 99久久免费精品| 日韩vs国产vs欧美| 久久这里只有精品视频网| 91在线视频在线| 日韩午夜激情av| 国产高清不卡一区| 亚洲sss视频在线视频| 2017欧美狠狠色| 国产成人综合亚洲91猫咪| 欧美国产日韩一二三区| 国产iv一区二区三区| 国产精品的网站| 亚洲va韩国va欧美va精品| 欧美一区二区日韩| 国产精品正在播放| 一区二区三区在线观看网站| 在线精品视频免费播放| 日韩高清在线观看| 久久久不卡影院| 亚洲国产一区视频| 日韩亚洲欧美综合| 粉嫩高潮美女一区二区三区| 亚洲女爱视频在线| 精品sm在线观看| 日本韩国一区二区三区视频| 婷婷久久综合九色国产成人| 久久先锋资源网| 无码av免费一区二区三区试看| 国产偷国产偷精品高清尤物| 欧美视频第二页| 99热在这里有精品免费| 美国毛片一区二区| 亚洲一区二区三区在线播放| 久久久国产精华| 26uuu成人网一区二区三区| 亚洲成人资源网| 亚洲欧洲精品一区二区三区不卡| 欧美高清性hdvideosex| 欧美美女一区二区三区| 欧美婷婷六月丁香综合色| 欧美优质美女网站| 欧美日韩国产影片| 欧美va在线播放| 国产亚洲欧美日韩俺去了| 欧美一级一级性生活免费录像| 99久久99久久精品国产片果冻| 国产成人av在线影院| 成人一级片网址| 在线观看国产精品网站| 欧美午夜一区二区三区 | 美女尤物国产一区| 国产综合久久久久久久久久久久| 久久精品999| 91在线小视频| 精品乱人伦一区二区三区| 日韩精品专区在线影院观看| 欧美va亚洲va在线观看蝴蝶网| 国产网红主播福利一区二区| 一区二区三区视频在线观看| 美女任你摸久久| 91久久精品一区二区三| 制服视频三区第一页精品| 久久久久久夜精品精品免费| 《视频一区视频二区| 久草这里只有精品视频| 国产精品毛片久久久久久久| 亚洲国产视频a| 懂色av中文一区二区三区| 欧美久久一区二区| 色嗨嗨av一区二区三区| 久久久91精品国产一区二区精品 | 日韩精品一区二区三区视频播放| 夜夜亚洲天天久久| www.av亚洲| 91小视频免费看| 亚洲午夜av在线| 欧美少妇一区二区| 日韩精品每日更新| 精品美女在线播放|