chore: Split serializer from PHY - #34
Draft
Lore0599 wants to merge 4 commits into
Draft
Conversation
Extract the Protocol Layer, Data Link Layer, Channel Allocator, and config-register front-end of the serial link into a new slink_serializer module, exposing a per-channel phy_data_t packet stream (+ TX PHY clock-div/shift config) as its port boundary instead of driving slink_phys_layer directly. slink.sv becomes a thin wrapper pairing slink_serializer with the existing slink_phys_layer generate loop, keeping its external port list and module name unchanged for compatibility with slink_isolate and downstream integrations (e.g. gwaihir). This lets slink_serializer be reused standalone with a different physical/transport backend in another project. Verified: verible-verilog-lint clean; tb_axi_slink (default 1-channel, no channel allocator) and tb_ch_calib_slink (regenerated at 4 channels, exercising the channel-allocator branch) both pass with 0 errors in vsim. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Lore0599
requested review from
fischeti and
micprog
and removed request for
fischeti
August 6, 2026 01:05
Lore0599
marked this pull request as draft
August 6, 2026 08:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Split serializer from PHY
This PR introduces an intermediate module,
slink_serializer, which handles converting the AXI protocol into AXI-Stream and splitting the payload into packets.This refactor enables the following:
slink_regout of the serializer allows multiple serializers (and eventually serial links) to be instantiated in the same design, each with its own parametrization. This isn't currently possible: once a downstream project depends on the serial link, IP parameters such asNumChannels,NumLanes, andEnDdrare inherited directly from the generated RDL, tying every instance to the same configuration.