Skip to content
Snippets Groups Projects
Commit c3575bc3 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Added MAC 10GbE IP generated with Quartus 11.1 SP2.

parent c533d1e2
No related branches found
No related tags found
No related merge requests found
Showing
with 11213 additions and 0 deletions
File added
// --------------------------------------------------------------------------------
//| Avalon Streaming Error Adapter
// --------------------------------------------------------------------------------
`timescale 1ns / 100ps
module ip_stratixiv_mac_10g_rx_st_error_adapter_stat (
// Interface: clk
input clk,
// Interface: reset
input reset_n,
// Interface: in
input in_valid,
input [39: 0] in_data,
input [ 4: 0] in_error,
// Interface: out
output reg out_valid,
output reg [39: 0] out_data,
output reg [ 6: 0] out_error
);
// ---------------------------------------------------------------------
//| Pass-through Mapping
// ---------------------------------------------------------------------
always @* begin
out_valid = in_valid;
out_data = in_data;
end
// ---------------------------------------------------------------------
//| Error Mapping
// ---------------------------------------------------------------------
always @* begin
out_error = 0;
out_error[0] = in_error[2]; // undersize
out_error[1] = in_error[3]; // oversize
out_error[2] = in_error[4]; // payload_length
out_error[3] = in_error[1]; // crc
out_error[6] = in_error[0]; // phy
end
endmodule
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment