Commit Graph

542 Commits

Author SHA1 Message Date
David Sawatzke 4119012b84 mac/core: Move gap into switchable domain & cleanup 2021-08-12 18:38:06 +02:00
David Sawatzke ef214571d5 mac/core: Move preamble into switchable domain 2021-08-12 18:38:06 +02:00
David Sawatzke 688011f936 mac/preamble: Fix inserter to work for 32/64 bit
The signal won't get wider in the 8 bit case, since max moves from 6 to
7
Untested for 64 bit
2021-08-12 18:38:06 +02:00
David Sawatzke 8c72362385 mac/preamble: Add 32/64 bit support in checker
Only tested for 32/8 bit
2021-08-12 18:38:06 +02:00
David Sawatzke 811722cbaa mac/core: Move crc into switchable domain 2021-08-12 18:38:06 +02:00
David Sawatzke 3f695a8320 mac/crc: Implement 32 bit support in inserter 2021-08-12 18:38:06 +02:00
David Sawatzke 03e847e90b mac/crc: Implement 32 bit support in checker 2021-08-12 18:38:06 +02:00
David Sawatzke 7306c58ac8 mac/crc: Adjust crc generator/checker for last_be
Since the data can end at any sub-byte, just a 32 bit mac wouldn't work
2021-08-12 18:38:06 +02:00
David Sawatzke 8b8dae9fac mac/core: Separate crc and premable block
So it can be more easily moved later on
2021-08-11 12:31:48 +02:00
David Sawatzke be492e32de mac/core: Add parameter to change processing domain
Per default, the processing should occur with sys_clk and dw, instead of
the phy parameters since it's not that much larger and allows for easier
timing requirements. But on some fpgas saving the few gates could be desirable
2021-08-11 12:31:44 +02:00
David Sawatzke 3e7979920a mac/padding: Add 32 bit support to inserter
*Should* also work for 16/64 bit
2021-08-11 12:30:49 +02:00
David Sawatzke 0fb14d3c3f mac/core: Extract data path converter into separate function
Allows it to be easily movable later on, as we move more into the sys
clk & dw path
2021-08-11 12:30:49 +02:00
enjoy-digital c6c8be703b
Merge pull request #73 from antmicro/row-hammer
liteeth/phy: add configurable hw reset duration
2021-08-11 09:35:24 +02:00
enjoy-digital a16bfdfc94
Merge pull request #72 from david-sawatzke/fullmemwe
mac: Allow configuring usage of FullMemoryWE (fixes #70)
2021-08-11 09:34:34 +02:00
David Sawatzke c3b9850366 liteeth/core: Allow configuration of full_mem_we parameter 2021-08-10 13:13:46 +02:00
David Sawatzke e14c90dbc3 mac: Allow configuring usage of FullMemoryWE (fixes #70)
On ecp5 `FullMemoryWE` leads to an increase of DP16KD block mem, while
it works better on Intel/Altera devices according to
6c3af746e2.

Simple solution: Make it configurable
2021-08-10 13:13:46 +02:00
enjoy-digital 2a8cac96ba
Merge pull request #71 from antonblanchard/gen_tx_rx_slots
liteeth/gen: Allow configuration of nrxslots and ntxslots
2021-08-06 14:58:53 +02:00
Anton Blanchard 7ac3fe681a liteeth/gen: Allow configuration of nrxslots and ntxslots
We might want to increase nrxslots and ntxslots to improve
performance, so allow it to be overriden via the yaml config.
2021-08-06 06:09:49 +10:00
Florent Kermarrec 947ed03720 liteeth_gen: Allow configuring TX/RX delay RGMII PHYs. 2021-07-16 17:50:37 +02:00
Florent Kermarrec 72dd7bf283 mac/core/LiteEthMACCore: Switch CDC to ClockDomainCrossing and reduce buffering. 2021-07-16 14:51:25 +02:00
Florent Kermarrec 66fcad12cf core/udp/get_port: Simplify code by letting CDC/Converter automatically simplify the logic when CDC/Converter are not required. 2021-07-15 19:53:17 +02:00
Florent Kermarrec 7ba5a59e12 core/arp/LiteEthARPTX: Move datapath outside of FSM (minor logic optimization). 2021-07-15 19:53:12 +02:00
Florent Kermarrec a12d3991e5 core/icmp/LiteEthICMPTX: Move datapath outside of FSM (minor logic optimization). 2021-07-15 19:53:07 +02:00
Florent Kermarrec 43a2ea8118 frontend/Etherbone: Use new LiteX's PacketFIFO. 2021-07-15 18:07:15 +02:00
Florent Kermarrec 2b237881d9 core/icmp: Use new LiteX's PacketFIFO. 2021-07-15 18:06:52 +02:00
Florent Kermarrec c294a3848e bench: Add XCU1525 bench (compiles but not yet working on hardware). 2021-07-02 13:00:43 +02:00
Florent Kermarrec 2f4964cf56 phy: Add initial Ultrascale+ 1000BaseX PHY. 2021-07-02 12:59:00 +02:00
Florent Kermarrec 9343889fbd bench: Add KCU105 bench (with KU_1000BASEX on SFP0 and SGMII/RJ45 SFP adapter). 2021-07-02 09:56:55 +02:00
Florent Kermarrec 5ad0e10a72 bench: Update (remove calls to add_csr no longer required). 2021-07-02 09:34:33 +02:00
Florent Kermarrec 435c67dbc7 frontend/stream/LiteEthStream2UDPTX: Simplify logic, add send_level parameter. 2021-05-27 14:12:04 +02:00
Florent Kermarrec 57e018354c mac/sram: Cosmetic cleanups. 2021-05-07 14:39:38 +02:00
Leon Schuermann d2ef10fc03 mac/sram/timestamping: Fix stat_fifo refactoring typo.
Fixes: 392414eef8 ("mac: Review Timestamping, simplify and...")
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2021-05-07 09:39:03 +02:00
Leon Schuermann af29c09ac0 mac/sram/timestamping: Fix stat_fifo.sink.valid refactoring typo.
Fixes a bug which would fill the TX return channel FIFO whenever the
SRAM Reader FSM is in the IDLE state. Instead, the FIFO should be
filled when the FSM reaches the END state, in which it will remain for
exactly a single clock cycle.

Fixes: 392414eef8 ("mac: Review Timestamping, simplify and...")
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2021-05-07 09:34:23 +02:00
Jędrzej Boczar 18b5b2a70d liteeth/phy: add configurable hw reset duration 2021-04-28 13:24:06 +02:00
enjoy-digital e718a9ea5d
Merge pull request #67 from antmicro/jboc/s7rgmii-iodelay
phy/s7rgmii: add configurable iodelay_clk_freq
2021-04-27 19:39:09 +02:00
Florent Kermarrec 6febb1aaab mac/last_be: Simplify LiteEthMACTXLastBE using an FSM, fix sink.ready corner case. 2021-04-27 18:33:29 +02:00
Florent Kermarrec ca82b03e35 mac/LiteEthMACCoreCrossbar: Simplify. 2021-04-27 18:04:06 +02:00
Jędrzej Boczar dbc0b75178 phy/s7rgmii: add configurable iodelay_clk_freq 2021-04-27 10:59:27 +02:00
Florent Kermarrec 392414eef8 mac: Review Timestamping, simplify and make sure CSR mapping is unchanged when Timestamp is disabled.
- Simplify names (timestamp_source --> timestamp, tx/tx_timestamp CSR/Layouts --> timestamp, etc...)
- Simplify the logic a bit.
- Use consistent names for FIFO between Writer and Reader (cmd_fifo and stat_fifo).
- Avoid stat_fifo on Reader when Timestamp is disabled.
- Use EventSourceLevel() on Reader only when Timestamp is enabled.
2021-04-08 14:07:35 +02:00
enjoy-digital 9ac5c592d0
Merge pull request #59 from lschuermann/dev/mac-hw-timestamp
MAC: implement TX return channel & hardware timestamping
2021-04-08 13:04:03 +02:00
Leon Schuermann 2b206b8f7f liteeth MAC: implement TX hardware packet timestamping
This implements optional packet timestamping based on a hardware
timestamp source for outgoing Ethernet packets, as required by
applications such as IEEE 1588 (Precision Time Protocol).
2021-04-01 13:42:57 +02:00
Leon Schuermann e5f713f5a0 liteeth MAC: add a TX return channel
This changes the liteeth SRAM reader to utilize a feedback channel
returning the slot of which a packet has been sent.

The event source is changed from a pulse to a level-based trigger,
such that it will continue asserted if a single packet has been
acknowledged, but additional packets have been sent.

This infrastructure allows to convey additional information about
transmitted packets, such as timestamps or errors.
2021-04-01 13:42:57 +02:00
Leon Schuermann 7ce1085b68 liteeth MAC: implement RX hardware packet timestamping
This implements optional packet timestamping based on a hardware
timestamp source for incoming Ethernet packets, as required by
applications such as IEEE 1588 (Precision Time Protocol).

When a timestamp source is given as an argument, an additonal CSR is
generated containing the packet timestamp.
2021-04-01 13:42:56 +02:00
enjoy-digital 694cc81d77
Merge pull request #65 from shuffle2/master
Revert "phy/ecp5rgmii: remove p_DEL_MODE (not required since we speci…
2021-03-30 10:35:12 +02:00
Shawn Hoffman 17f6dca544 Revert "phy/ecp5rgmii: remove p_DEL_MODE (not required since we specify DEL_VALUE)."
This reverts commit 5247a2008a.
2021-03-29 11:31:54 -07:00
enjoy-digital adf63f3fc0
Merge pull request #64 from mczerski/different_rx_tx_slots
allow for different nrxslots and ntxslots
2021-03-19 08:56:39 +01:00
Marek Czerski 017b457bfc allow for different nrxslots and ntxslots
Background:
When there is a lot of broadcasts in the network, receive buffers
may overflow easly. Especially having onlu 2 of them.
To prevent that you can enlarge nrxslots, but because
nrxslots + ntxslots must be the power of two, you must also
inrease ntxslots. But there is no need to have more than 2 tx
buffers (they work as ping-pong buffer), the CPU will not use
more than two buffers.

So being able to set for example nrxslots=8 and ntxslots=2
is quite reasonable.
2021-03-12 15:03:30 +01:00
Florent Kermarrec 6c3af746e2 mac: Use FullMemoryWE on LiteEthMACWishboneInterface to allow correct block ram inteference on Intel/Altera decices. 2021-03-11 11:55:50 +01:00
enjoy-digital 89b197d1a0
Merge pull request #61 from shenki/is-not
Fix "is not" literal SyntaxWarning
2021-02-16 15:14:39 +01:00
Joel Stanley 6daff12f50 Fix "is not" literal SyntaxWarning
Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-02-16 21:57:53 +10:30