Altera_Forum
Honored Contributor
11 years agoTrouble with EMAC on CycloneV SoC
Hello.
We use 5CSEBA4U19I7 chip in our devices. And we have a trouble with EMAC. "EMAC0 pin" in Qsys is configured as "FPGA" mode. GMII signals of HPS instance (emac0_phy_txd_o and emac0_phy_txen_o) latch into the registers, triggered by the emac0_phy_txclk_o:logic emac0_tx_d;
logic emac0_tx_en;
logic emac0_tx_d_d1;
logic emac0_tx_en_d1;
always_ff @(posedge emac_gtx_clk)
begin
emac0_tx_d_d1 <= emac0_tx_d;
emac0_tx_en_d1 <= emac0_tx_en;
end
soc_hps_0# (
.F2S_Width (0),
.S2F_Width (1)
) hps_0 (
...
.emac0_phy_txd_o (emac0_tx_d),
.emac0_phy_txen_o (emac0_tx_en),
.emac0_phy_txclk_o (emac_gtx_clk),
...
); According to the test results (as well as in SignalTap) it is seen that the data in emac0_tx_d_d1 contains bit errors. It is look like timing violation. But Timequest doesn't see any path from HPS to registers and doesn't analyze them. I want used data from HPS EMAC (Tx GMII) into FPGA application logic. How can I get data from HPS EMAC without bit errors? If anyone has any idea, please tell me. Thanks in advance.