- fixed Gibabit ethernet

git-svn-id: http://moon:8086/svn/vhdl/trunk@1331 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2015-12-13 09:10:28 +00:00
parent 3897393a94
commit a6fe149b7a
2 changed files with 67 additions and 53 deletions
+6 -5
View File
@@ -36,7 +36,7 @@ ENTITY emac_top_jb IS
mii_tx_en : out STD_LOGIC;
mii_tx_er : out STD_LOGIC;
mii_tx : out unsigned(7 downto 0);
mii_gtx_clk : out STD_LOGIC;
mii_gtx_clk : in STD_LOGIC;
mii_crs : in STD_LOGIC;
mii_col : in STD_LOGIC
@@ -72,11 +72,10 @@ ARCHITECTURE behavior OF emac_top_jb IS
signal reg_write : std_logic;
signal reg_addr : unsigned(3 downto 0);
signal tx_clk : std_logic;
begin
mii_gtx_clk <= '0';
SRDY_O <= CYC_I and ready;
read <= STB_I and CYC_I and not WE_I;
write <= STB_I and CYC_I and WE_I;
@@ -93,6 +92,8 @@ begin
rx_dout_re <= data_read;
tx_clk <= mii_gtx_clk when tx_ctrl_in.Gbps_en = '1' else mii_tx_clk;
------------------------------------------------------------------
registers_write:
process(CLK_I)
@@ -294,7 +295,7 @@ inst_emac_tx : entity work.emac_tx
din => tx_din,
ctrl_in => tx_ctrl_in,
ctrl_out => tx_ctrl_out,
mii_tx_clk => mii_tx_clk,
mii_tx_clk => tx_clk,
mii_tx_en => mii_tx_en,
mii_tx_er => mii_tx_er,
mii_tx => mii_tx