Xilinx的modelsim 仿真库!里面有许多库函数
源代码在线查看: _primary.vhd
library verilog; use verilog.vl_types.all; entity gt_ethernet_2 is generic( clk_cor_insert_idle_flag: string := "FALSE"; clk_cor_keep_idle: string := "FALSE"; clk_cor_repeat_wait: integer := 1; rx_crc_use : string := "FALSE"; rx_loss_of_sync_fsm: string := "FALSE"; rx_los_invalid_incr: integer := 1; rx_los_threshold: integer := 4; serdes_10b : string := "FALSE"; termination_imp : integer := 50; tx_crc_force_value: integer := 214; tx_crc_use : string := "FALSE"; tx_diff_ctrl : integer := 500; tx_preemphasis : integer := 0 ); port( configout : out vl_logic; rxbufstatus : out vl_logic_vector(1 downto 0); rxchariscomma : out vl_logic_vector(1 downto 0); rxcharisk : out vl_logic_vector(1 downto 0); rxcheckingcrc : out vl_logic; rxclkcorcnt : out vl_logic_vector(2 downto 0); rxcommadet : out vl_logic; rxcrcerr : out vl_logic; rxdata : out vl_logic_vector(15 downto 0); rxdisperr : out vl_logic_vector(1 downto 0); rxlossofsync : out vl_logic_vector(1 downto 0); rxnotintable : out vl_logic_vector(1 downto 0); rxrealign : out vl_logic; rxrecclk : out vl_logic; rxrundisp : out vl_logic_vector(1 downto 0); txbuferr : out vl_logic; txkerr : out vl_logic_vector(1 downto 0); txn : out vl_logic; txp : out vl_logic; txrundisp : out vl_logic_vector(1 downto 0); configenable : in vl_logic; configin : in vl_logic; enmcommaalign : in vl_logic; enpcommaalign : in vl_logic; loopback : in vl_logic_vector(1 downto 0); powerdown : in vl_logic; refclk : in vl_logic; refclk2 : in vl_logic; refclksel : in vl_logic; rxn : in vl_logic; rxp : in vl_logic; rxpolarity : in vl_logic; rxreset : in vl_logic; rxusrclk : in vl_logic; rxusrclk2 : in vl_logic; txbypass8b10b : in vl_logic_vector(1 downto 0); txchardispmode : in vl_logic_vector(1 downto 0); txchardispval : in vl_logic_vector(1 downto 0); txcharisk : in vl_logic_vector(1 downto 0); txdata : in vl_logic_vector(15 downto 0); txforcecrcerr : in vl_logic; txinhibit : in vl_logic; txpolarity : in vl_logic; txreset : in vl_logic; txusrclk : in vl_logic; txusrclk2 : in vl_logic ); end gt_ethernet_2;