Skip to content

Commit c3abc13

Browse files
committed
library/corundum/Readme.md: Update Corundum repository to latest version
Signed-off-by: alin724 <[email protected]>
1 parent 09195d7 commit c3abc13

File tree

2 files changed

+32
-4
lines changed

2 files changed

+32
-4
lines changed

library/corundum/Readme.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
# Corundum IP Core
22

3-
This IP Core repackages [Corundum NIC](https://github.com/corundum/corundum) as an IP Core.
3+
This IP Core repackages [Corundum NIC](https://github.com/ucsdsysnet/corundum) as an IP Core.
44

55
## Building
66

7-
Clone the [Corundum NIC](https://github.com/corundum/corundum) repository alongside this repository.
7+
Clone the [Corundum NIC](https://github.com/ucsdsysnet/corundum) repository alongside this repository.
8+
Do a git checkout to the latest tested version (commit - 37f2607).
9+
When the 10G-based implementation is used, apply the indicated patch.
810

911
```
10-
hdl/../> git clone https://github.com/corundum/corundum.git
11-
hdl/../corundum/> git checkout ed4a26e2cbc0a429c45d5cd5ddf1177f86838914
12+
hdl/../> git clone https://github.com/ucsdsysnet/corundum.git
13+
14+
corundum/> git checkout 37f2607
15+
corundum/> git apply ../hdl/library/corundum/patch_axis_xgmii_rx_64.patch
16+
1217
hdl/library/corundum> make &
1318
```
1419

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
diff --git a/fpga/lib/eth/rtl/axis_xgmii_rx_64.v b/fpga/lib/eth/rtl/axis_xgmii_rx_64.v
2+
index 132decf6..334fe752 100644
3+
--- a/fpga/lib/eth/rtl/axis_xgmii_rx_64.v
4+
+++ b/fpga/lib/eth/rtl/axis_xgmii_rx_64.v
5+
@@ -135,14 +135,15 @@ reg [DATA_WIDTH-1:0] m_axis_tdata_reg = {DATA_WIDTH{1'b0}}, m_axis_tdata_next;
6+
reg [KEEP_WIDTH-1:0] m_axis_tkeep_reg = {KEEP_WIDTH{1'b0}}, m_axis_tkeep_next;
7+
reg m_axis_tvalid_reg = 1'b0, m_axis_tvalid_next;
8+
reg m_axis_tlast_reg = 1'b0, m_axis_tlast_next;
9+
-reg [USER_WIDTH-1:0] m_axis_tuser_reg = {USER_WIDTH{1'b0}}, m_axis_tuser_next;
10+
+reg [95:0] m_axis_tuser_reg = {96{1'b0}};
11+
+reg [95:0] m_axis_tuser_next = {96{1'b0}};
12+
13+
reg [1:0] start_packet_reg = 2'b00;
14+
reg error_bad_frame_reg = 1'b0, error_bad_frame_next;
15+
reg error_bad_fcs_reg = 1'b0, error_bad_fcs_next;
16+
17+
-reg [PTP_TS_WIDTH-1:0] ptp_ts_reg = 0;
18+
-reg [PTP_TS_WIDTH-1:0] ptp_ts_adj_reg = 0;
19+
+reg [95:0] ptp_ts_reg = 0;
20+
+reg [95:0] ptp_ts_adj_reg = 0;
21+
reg ptp_ts_borrow_reg = 0;
22+
23+
reg [31:0] crc_state = 32'hFFFFFFFF;

0 commit comments

Comments
 (0)