From: Joshua Wise Date: Tue, 27 May 2008 04:20:08 +0000 (-0400) Subject: Fix stupid ethernet bug X-Git-Url: http://git.joshuawise.com/fpgaboy.git/commitdiff_plain/9bba0f1ee7a609f3b66a4889e0edeb753b935bdf?ds=sidebyside;hp=a6035e0c1b5785205c73dd6510e0b83631bda75b Fix stupid ethernet bug --- diff --git a/Ethernet.v b/Ethernet.v index bd3fdc7..56123c0 100644 --- a/Ethernet.v +++ b/Ethernet.v @@ -40,7 +40,7 @@ module Ethernet ( EthModRam txram( .wdata(data), .waddr(txwraddr), - .wr(wr && state == 2'b10 && addr == `ADDR_ETH), + .wr(wr && txstate == 2'b10 && addr == `ADDR_ETH), .wrclk(clk), .rdata(txhwdata), .raddr(txhwaddr), @@ -82,7 +82,7 @@ module Ethernet ( rdlatch <= rd; if (rd && addr == `ADDR_ETH_STATUS) - odata <= {state,4'b0,rxpktrdy,txbusy}; + odata <= {txstate,4'b0,rxpktrdy,txbusy}; else if (wr && addr == `ADDR_ETH_STATUS) begin /* Reset the state machines. */ rxstate <= 2'b00; txstate <= 2'b00;