Skip to content

Commit

Permalink
Format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Beanavil committed Jan 25, 2024
1 parent c1ee61d commit 05b711b
Show file tree
Hide file tree
Showing 32 changed files with 942 additions and 1,738 deletions.
2 changes: 1 addition & 1 deletion docs/Contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ To keep the style of the project consistent, please follow the described guideli
This project uses `CMake` as buildsystem, so for any addition of modules the corresponding `CMake` files should be modified when necessary.

## Code Format
The formatting rules of the modules are enforced by [istyle-verilog-formatter](https://github.com/thomasrussellmurphy/istyle-verilog-formatter) using (Git Hooks)[https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks]. If using Visual Studio Code, the extension [verilog-formatter](https://marketplace.visualstudio.com/items?itemName=IsaacT.verilog-formatter), which is a wrapper around the `istyle-verilog-formatter`, can also be used to enforce the same options passed to the hook while writting code. We provide the `.iStylerc` file that matches our format of preference. The configuration steps for Visual Studio Code can be found below:
The formatting rules of the modules are enforced by [istyle-verilog-formatter](https://github.com/thomasrussellmurphy/istyle-verilog-formatter). If using Visual Studio Code, the extension [verilog-formatter](https://marketplace.visualstudio.com/items?itemName=IsaacT.verilog-formatter), which is a wrapper around the `istyle-verilog-formatter`, can be used to enforce the said rules. We provide the `.iStylerc` file that matches our format of preference. The configuration steps for Visual Studio Code can be found below:
- Install the [verilog-formatter](https://marketplace.visualstudio.com/items?itemName=IsaacT.verilog-formatter) extension and **its dependencies** as described in its information page.
- Select the `Extension Settings` option from the drop-down menu of the extension (see image below).

Expand Down
9 changes: 4 additions & 5 deletions programs/buffer_sum.s
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# Instruction Binary Hex

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
li $r1 <- 10110001 // end data 00010110000 00000 001 00001 0000011 0B001083
li $r1 <- 10110001 00010110000 00000 001 00001 0000011 0B001083
2 0 0 r1 Itype
li $r2 <- 110010 // beginning data 00000110001 00000 001 00010 0000011 03101103
li $r2 <- 110010 00000110001 00000 001 00010 0000011 03101103
2 0 0 r2 Itype
li $r3 <- 0 // sum 00000000000 00000 001 00011 0000011 00001183
li $r3 <- 0 00000000000 00000 001 00011 0000011 00001183
2 0 0 r2 Itype
li $r25 <- 10000 00000010000 00000 001 11001 0000011 01001C83
2 0 0 r25 Itype
beq $r1, $r2, 10100000 // beq to end 0 01010 00001 00011 000 0000 0 1100011 14118063
beq $r1, $r2, 10100000 0 01010 00001 00011 000 0000 0 1100011 14118063
imm imm branch
lb $r4 <- 000000 ($r2) 0000000000 00010 000 00100 0000011 00010203
0 r3 0 r4 Itype
Expand Down
58 changes: 0 additions & 58 deletions scripts/code_format/check_format.sh

This file was deleted.

Loading

0 comments on commit 05b711b

Please sign in to comment.