generated from TinyTapeout/tt06-verilog-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
249 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ test/sim_build | |
test/__pycache__/ | ||
test/results.xml | ||
test/gate_level_netlist.v | ||
frame.png | ||
test/*.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ | |
00_0000_01 // SETRGB R1 | ||
00_1000_10 // IFEQ R2 | ||
00_0000_10 // SETRGB R2 | ||
01_00_00_00 // NOP | ||
01_00_00_00 // NOP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ | |
00_0010_01 // SETG R1 | ||
01_11_00_00 // XOR R0 R0 | ||
01_11_00_00 // XOR R0 R0 | ||
01_00_00_00 // NOP | ||
01_00_00_00 // NOP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
11_111111 // LDI 63 | ||
10_00_00_11 // MOV R3 R0 | ||
00_0100_00 // GETX R0 | ||
00_0000_00 // SETRGB R0 | ||
00_1111_00 // SINE R0 | ||
00_1101_00 // HALF R0 | ||
00_0101_01 // GETY R1 | ||
00_1010_01 // IFGE R1 | ||
00_0000_11 // SETRGB R3 | ||
01_00_00_00 // NOP |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,6 @@ SETRGB R1 | |
|
||
IFEQ R2 | ||
SETRGB R2 | ||
|
||
NOP | ||
NOP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,6 @@ SETG R1 | |
|
||
XOR R0 R0 | ||
XOR R0 R0 | ||
|
||
NOP | ||
NOP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Sine | ||
|
||
# Load color white | ||
LDI 63 | ||
MOV R3 R0 | ||
|
||
# Get sine value depending on x | ||
GETX R0 | ||
|
||
# Set color to x | ||
SETRGB R0 | ||
|
||
# Get sine value and half it | ||
SINE R0 | ||
HALF R0 | ||
|
||
# Get y | ||
GETY R1 | ||
|
||
# If sine value is greater than y | ||
# set color to white | ||
IFGE R1 | ||
SETRGB R3 | ||
|
||
NOP |
Oops, something went wrong.