Skip to content

Commit

Permalink
Added swanky new SUS logo 🎉
Browse files Browse the repository at this point in the history
My deep thanks to my dear colleagues for designing it!
  • Loading branch information
VonTum committed Sep 4, 2024
1 parent 7407165 commit 2b7113e
Show file tree
Hide file tree
Showing 8 changed files with 96 additions and 43 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
**/target
**/*.lock
.vscode
**/*.svg
**/*.data
**/*.old
**/*.out
Expand Down
18 changes: 6 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@

<p align="center">
<a href="https://crates.io/crates/sus_compiler">
<img src="https://img.shields.io/github/release/pc2/sus-compiler.svg">
</a>
<a href="https://crates.io/crates/sus_compiler">
<img src="https://img.shields.io/badge/platforms-Windows%20|%20Linux%20|%20macOS-green.svg">
</a>
<img src="philosophy/images/susLogo.svg" alt="SUS logo" style="width:30%">
<br/>
<a href="https://discord.gg/ZCgzjbrppz">
<img src="https://img.shields.io/discord/1268590533756850206?style=flat"/>
</a>
<a href="https://github.com/pc2/sus-compiler/actions">
<img src="https://github.com/pc2/sus-compiler/workflows/CI/badge.svg?branch=master&event=push">
</a>
<a href="https://crates.io/crates/sus_compiler"><img src="https://img.shields.io/github/release/pc2/sus-compiler.svg"></a>
<a href="https://crates.io/crates/sus_compiler"><img src="https://img.shields.io/badge/platforms-Windows%20|%20Linux%20|%20macOS-green.svg"></a>
<br/>
<a href="https://discord.gg/ZCgzjbrppz"><img src="https://img.shields.io/discord/1268590533756850206?style=flat"/></a>
<a href="https://github.com/pc2/sus-compiler/actions"><img src="https://github.com/pc2/sus-compiler/workflows/CI/badge.svg"></a>
</p>

# SUS Language
Expand Down
15 changes: 9 additions & 6 deletions philosophy/images/susArchitecture.drawio

Large diffs are not rendered by default.

Binary file modified philosophy/images/susArchitecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 0 additions & 22 deletions philosophy/images/susLogo.drawio

This file was deleted.

Binary file modified philosophy/images/susLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
79 changes: 79 additions & 0 deletions philosophy/images/susLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions stl/util.sus
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ module PopCount #(int WIDTH) {
gen int LEFT_WIDTH = WIDTH / 2
gen int RIGHT_WIDTH = WIDTH - LEFT_WIDTH

bool[LEFT_WIDTH] left_part, bool[RIGHT_WIDTH] right_part = SplitAt #(SIZE: WIDTH, SPLIT_AT: LEFT_WIDTH, T: type bool)(bits)
bool[LEFT_WIDTH] left_part, bool[RIGHT_WIDTH] right_part = SplitAt #(SIZE: WIDTH, SPLIT_POINT: LEFT_WIDTH, T: type bool)(bits)

reg reg popcount = PopCount #(WIDTH: LEFT_WIDTH)(left_part) + PopCount #(WIDTH: RIGHT_WIDTH)(right_part)
}
Expand All @@ -243,7 +243,7 @@ module TreeAdd #(int WIDTH) {
gen int LEFT_WIDTH = WIDTH / 2
gen int RIGHT_WIDTH = WIDTH - LEFT_WIDTH

int[LEFT_WIDTH] left_part, int[RIGHT_WIDTH] right_part = SplitAt #(SIZE: WIDTH, SPLIT_AT: LEFT_WIDTH, T: type int)(values)
int[LEFT_WIDTH] left_part, int[RIGHT_WIDTH] right_part = SplitAt #(SIZE: WIDTH, SPLIT_POINT: LEFT_WIDTH, T: type int)(values)

// Can add pipelining registers here too. Latency Counting will figure it out.
reg total = TreeAdd #(WIDTH: LEFT_WIDTH)(left_part) + TreeAdd #(WIDTH: RIGHT_WIDTH)(right_part)
Expand Down

0 comments on commit 2b7113e

Please sign in to comment.