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),
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;