Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

feat(component): add MilStd gates, arithmetic units, and data path components#176

Open
Cr4ckz wants to merge 23 commits intol0uisgrange:mainfrom
Cr4ckz:main
Open

feat(component): add MilStd gates, arithmetic units, and data path components#176
Cr4ckz wants to merge 23 commits intol0uisgrange:mainfrom
Cr4ckz:main

Conversation

@Cr4ckz
Copy link
Copy Markdown

@Cr4ckz Cr4ckz commented Mar 2, 2026

Description
This PR significantly extends the hardware component library to support complex digital logic and processor architecture diagrams. All components follow a consistent design language and are ready for native use in Typst-based schematics.

New Components:

Logic Gates: Added MilStd (Military Standard) symbols for AND, OR, NOT, etc.

Transistors: Included simple CMOS-style transistor representations.

Arithmetic: Full-Adder and Half-Adder units.

Sequential: Registers and Flip-Flops (supporting top-side clock inputs).

Data Path: Multiplexers/Demultiplexers, Decoders, Shifters, and Sign/Zero-Extend blocks.

Documentation & Examples:

Examples: Added example4 and example5 to showcase the new components in a practical context.
example4

Docs: Expanded the docs folder with detailed descriptions and parameters for all new symbols.

Quality Check:

Formatting: Code was cleaned using typstyle -l 180 -t 4 -i src as per the project guidelines.

Organization: Adheres to the "One PR per feature" rule.

Copy link
Copy Markdown
Owner

@l0uisgrange l0uisgrange left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @Cr4ckz 👋! This PR is huge and can't wait to merge this!
Thanks a lot for the effort and dedication to this project ❤️. I juste have a few comments before we proceed.

Comment thread examples/example3.svg
Comment thread examples/example5.svg
Comment thread src/components/diode.typ Outdated
Comment thread src/components/logic.typ Outdated
Comment thread test.typ
Comment thread typst.toml Outdated
@Cr4ckz
Copy link
Copy Markdown
Author

Cr4ckz commented Mar 5, 2026

Hey @Cr4ckz 👋! This PR is huge and can't wait to merge this! Thanks a lot for the effort and dedication to this project ❤️. I juste have a few comments before we proceed.

Thanks for the kind words! I’m glad you like the PR.
Thanks for the feedback! I've already addressed the comments and thex should be fixed. Let me know if everything looks good now!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants