Skip to content

Commit

Permalink
Add example code screenshot to README
Browse files Browse the repository at this point in the history
  • Loading branch information
VonTum committed Jun 6, 2024
1 parent c159d53 commit 77f6d63
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ A Hardware Description Language focussed on strong type and temporal safety feat

Main Inspirations: [TL-Verilog](https://arxiv.org/abs/1811.01780), [Filament](https://rachitnigam.com/files/pubs/filament.pdf), [Spade](https://spade-lang.org/), [Rust](https://www.rust-lang.org/)

![SUS LSP Example](philosophy/images/susLSPExample.png)

## Core philosophy
This project is an attempt to create a safety-first, correct-by-default HDL. It must make programming easier and safer without sacrificing on low level control. Much akin to what Rust is for the software industry.

Expand Down
Binary file added philosophy/images/susLSPExample.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion test.sus
Original file line number Diff line number Diff line change
Expand Up @@ -730,15 +730,17 @@ module contains_submodule_submodule : int a, int b, int c -> int r {
module cross_int {
interface in : int i'0
interface out : -> int o'0
o = 1
}

module cross_memory {
interface in : bool[20][512] i'0
interface out : -> bool[20][512] o'0
o[0][0] = true
}

module offset_backwards : bool i'0 -> bool o'-5 {

o = true
}

module DUAL_PORT_MEM {
Expand Down

0 comments on commit 77f6d63

Please sign in to comment.