Commit Graph

62 Commits (master)

Author SHA1 Message Date
Markus Koch 0db98483dc ipv4: Change syntax to make Synplify happy 2022-11-01 17:10:33 +01:00
Markus Koch 6de8d24537 icmp: Implement ICMP echo replies 2022-11-01 16:23:27 +01:00
Markus Koch 87bc9ce3d7 ipv4: Add rx_length field 2022-11-01 16:22:59 +01:00
Markus Koch fdcb1cb719 ipv4: Implement IPv4 TX 2022-10-31 23:46:46 +01:00
Markus Koch a0c9df28f1 ipv4: Remove obsolete signals 2022-10-31 23:45:05 +01:00
Markus Koch 0d7981f801 ipv4: Default sr to all zeroes to squelch warnings 2022-10-31 17:02:37 +01:00
Markus Koch 172a11070b ipv4prot: Implement IPv4 protocol muxing 2022-10-31 16:57:54 +01:00
Markus Koch 9d9b3b1cce eth: Fix incorrect TX exit condition 2022-10-31 16:56:17 +01:00
Markus Koch e421ba0dff eth: Fix missing reset for tx sel 2022-10-31 16:55:13 +01:00
Markus Koch 277d01737d ipv4: Implement RX 2022-10-30 22:32:47 +01:00
Markus Koch a19de6d0c8 gen: Add generic timer module 2022-10-30 22:31:10 +01:00
Markus Koch ccb7d6c0da Fix linter warnings 2022-10-30 17:29:14 +01:00
Markus Koch 8d9ca9e784 arp: Rename timeout_tick to systick 2022-10-30 17:27:43 +01:00
Markus Koch 3240f363ba arp: Reformat code 2022-10-29 19:19:16 +02:00
Markus Koch a5d5ca280d arp: Add timeout 2022-10-29 19:18:51 +02:00
Markus Koch 4804674d8e arp: Implement ARP requests
This is still missing timeout in case of no reply.
This needs to be added!
2022-10-28 18:52:17 +02:00
Markus Koch 5f7704cf63 pkg: Implement to_string functions for MAC and IP addresses 2022-05-15 14:51:52 +02:00
Markus Koch 5f389b0c7b arp: Implement ARP replies 2022-05-15 14:51:49 +02:00
Markus Koch 50b65bccec eth: tx: Remove accidental latch 2022-05-15 14:30:45 +02:00
Markus Koch 461c7ebce1 eth: tx: Fix polarity of tx_active checks 2022-05-15 14:27:26 +02:00
Markus Koch 7aa1b56bf9 eth: Add Ethernet type MUX 2022-05-13 20:37:28 +02:00
Markus Koch 8f3420bd54 pkg: Add configuration_t to trashernet 2022-05-13 20:36:52 +02:00
Markus Koch 61812c133f phy: Improve header synchronization 2022-01-30 19:26:43 +01:00
Markus Koch 075f935e12 phy: Fix NLPs
We need a different NLP timeout for RX than TX.
Also use a prescaler to improve timing.
2022-01-29 20:15:02 +01:00
Markus Koch a9039a175c phy+mac: Improve interface
Instead of having the user wait until the en-low was latched by
the core, let's just latch it internally.
2022-01-23 16:52:05 +01:00
Markus Koch 4a39c3d638 phy: Notify that the end-of-packet has been accepted 2022-01-23 16:31:20 +01:00
Markus Koch d1e0143c9d phy: Fix TX manchester encoding
Ethernet uses "inverted" manchester as per IEEE 802.3.
2022-01-23 16:02:31 +01:00
Markus Koch 1bcddf4273 phy: Improve NLP timeout accuracy 2022-01-23 16:01:33 +01:00
Markus Koch afb545cd02 Clean up code formatting 2022-01-22 20:50:18 +01:00
Markus Koch 4e39e3b371 phy: Do not report tx_active when providing NLPs 2022-01-22 20:48:49 +01:00
Markus Koch a2edc540b2 phy: Fix NLP timebase error 2022-01-22 20:48:23 +01:00
Markus Koch 6f8bb7ba54 phy: Fix rounding error for NLP timeout 2022-01-22 20:47:47 +01:00
Markus Koch 76eaff20fd mac+phy: Initialize all required variables 2022-01-22 20:47:09 +01:00
Markus Koch ef6b6378f8 mac: tx: Implement automatic padding
This also renames the bit_cnt signal to sr_cnt.
97d0905c08 was kinda BS.

This fixes #4.
2022-01-16 14:44:43 +01:00
Markus Koch 22b7d99b1f mac: Add tx_active output 2022-01-16 13:44:33 +01:00
Markus Koch 97d0905c08 mac: Refactor incorrect signal name 2022-01-16 13:43:55 +01:00
Markus Koch 10da238c60 mac: Refactor to use records for the application interface 2021-09-25 16:18:02 +02:00
Markus Koch cfac94136a phy: Refactor to use records for the application interface 2021-09-25 12:28:04 +02:00
Markus Koch cf6fb61195 mac: Use records for header fields 2021-09-25 12:19:54 +02:00
Markus Koch 9addd97b57 Rename types package to general trashernet package 2021-09-25 11:07:12 +02:00
Markus Koch 1bff61d24a Fix code formatting 2021-09-04 19:33:44 +02:00
Markus Koch 743d2465d9 Add license headers 2021-09-04 19:33:32 +02:00
Markus Koch 2bee387081 mac: Implement TX path 2021-09-04 19:15:21 +02:00
Markus Koch 29bbb50f6a phy: tx: Fix TX startup handling 2021-09-04 19:09:04 +02:00
Markus Koch 9afdb984f9 phy: tx: Pass tx_n through the CDC wrapper 2021-09-04 19:08:42 +02:00
Markus Koch 13ef230503 phy: tx: Implement tx_active flag 2021-09-04 19:06:43 +02:00
Markus Koch dcbd9675f6 phy: Use byte type for ports 2021-09-04 19:05:53 +02:00
Markus Koch 16026849e8 phy: tx: Implement transmitter 2021-08-31 20:36:35 +02:00
Markus Koch 6322f5a317 Add trashernet_types package 2021-08-31 20:35:15 +02:00
Markus Koch 3775dc336b mac: Add MAC RX 2021-08-30 13:27:30 +02:00