The invention discloses a
delay measurement method of a physical coding sub-layer, an FPGA and an electronic device, and belongs to the technical field of integrated circuits, the method comprises the following steps: obtaining to-be-transmitted data, a first
clock signal of the physical coding sub-layer and a second
clock signal of the physical coding sub-layer, the first
clock signal being used for
data transmission of a first port, and the second
clock signal being used for
data transmission of a second port; the second
clock signal is used for
data transmission of the second port; when the to-be-transmitted data is to-be-sent data, a first moment when a first signal is transmitted to the first port is determined, and the first signal and the to-be-sent data are in channel-associated transmission; determining a second moment when the first adjusting module outputs a second signal and first
delay information of the first adjusting module, wherein the edge of the second signal is aligned with the edge of the first
clock signal; and determining a sending
delay according to the first moment, the second moment and the first delay information. According to the invention, the number of interfaces used for measuring the delay of the PCS through the first signal is smaller, and the accuracy of the delay measurement of the physical coding sub-layer is improved.