Skip to content

Commit

Permalink
add the basic instructions and some additions
Browse files Browse the repository at this point in the history
  • Loading branch information
vadixidav committed Mar 19, 2018
1 parent c4c9b88 commit 7adddf9
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# iterative-u1
Trying to iterate on algorithm implementation in u1 to optimize design specifically for common algorithms

* [Base Instructions](../base_instructions.md)
26 changes: 26 additions & 0 deletions base_instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## Core stack ISA:

The following is the most stripped down core of a stack ISA reasonably possible.

1. add
2. subtract
3. logical left shift
4. logical right shift
5. and
6. or
7. not
8. read
9. write
10. pc write
11. immediate

### Copy

The core ISA is primarily severely flawed because of the inability to copy values from lower in the stack. This will result in needing to write to memory to read multiple times. The next most optimal ISA is one with a copy instruction added.

12. copy

### Carry

The lack of a carry bit complicates 64-bit integer handling on 32-bit systems. For 64-bit systems this is not a signifcant concern since any value above 64-bits is likely not a counter and is some sort of GUID.

0 comments on commit 7adddf9

Please sign in to comment.