Skip to content

Compiler support for Matrix SRAM L-Compute - #79

Draft
Happymic wants to merge 1 commit into
mainfrom
review/matrix-lcompute-20260905
Draft

Happymic wants to merge 1 commit into
mainfrom
review/matrix-lcompute-20260905

Conversation

@Happymic

@Happymic Happymic commented Sep 5, 2026 •

Copy link
Copy Markdown
Collaborator

This PR provides the compiler side of Matrix SRAM L-Compute. It arranges state tiles in the fixed diagonal SRAM layout and generates the view configuration, L_TILE recurrence instructions and data transfers. It also supports direct projection writeback into a Matrix SRAM view.

The generated machine code has run Mamba/KDA recurrence for four tokens in Rust using prepared synthetic BF16 inputs at the model state dimensions. Phased outputs and final states match the reference exactly. The Simulator PR is the main entry point for the implementation overview and reproduction.

Draft for review only; do not merge. The ISA specification documents the open writeback-encoding compatibility and RTL resource-mapping questions.

@Happymic
Happymic force-pushed the review/matrix-lcompute-20260905 branch from 1955abb to 671dc37 Compare September 5, 2026 19:40
@Happymic Happymic changed the title [Review only] Mamba/KDA compiler and Matrix-SRAM L-Compute Add Mamba/KDA lowering and Matrix SRAM views Sep 5, 2026
@Happymic
Happymic force-pushed the review/matrix-lcompute-20260905 branch from 671dc37 to 438c62d Compare September 5, 2026 20:12
@Happymic Happymic changed the title Add Mamba/KDA lowering and Matrix SRAM views Add Matrix SRAM views and prepared L_TILE lowering Sep 5, 2026
@Happymic
Happymic force-pushed the review/matrix-lcompute-20260905 branch from 438c62d to 9637858 Compare September 5, 2026 20:15
@Happymic Happymic changed the title Add Matrix SRAM views and prepared L_TILE lowering Compiler support for Matrix SRAM L-Compute Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant