Skip to content

Commit

Permalink
Separate circuit files
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaDillenburg committed Aug 26, 2020
1 parent 4191004 commit 19a59d9
Show file tree
Hide file tree
Showing 10 changed files with 1,760 additions and 1,630 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
617 changes: 617 additions & 0 deletions MyRam-WIP/my_ram.circ

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- omit in toc -->
# Circuit
A computer basic circuit using made only using logic ports.

Expand All @@ -17,10 +18,11 @@ A computer basic circuit using made only using logic ports.

---

<!-- omit in toc -->
# 🔖 Table of Contents
- [Circuit](#circuit)
- [🔖 Table of Contents](#-table-of-contents)
- [[WIP] How does a computer work behind the curtains?](#wip-how-does-a-computer-work-behind-the-curtains)
- [Code](#code)
- [▶️ Execute the machine](#️-execute-the-machine)

---

Expand All @@ -46,7 +48,7 @@ For an actual computer, you also need input and output devices such as

---

## Code
# Code

Line of code = Instruction (2 bytes) + Memory Address (2 bytes).

Expand Down Expand Up @@ -88,7 +90,7 @@ Machine Code | Short Instruction Description | Long Instruction Description | Sh

---

## ▶️ Execute the machine
# ▶️ Execute the machine

#### If you want to see it working
1. Run the machine:
Expand All @@ -106,10 +108,10 @@ Machine Code | Short Instruction Description | Long Instruction Description | Sh

#### If you only want to see the outputs (only available for the executables generated by the assembler and the compiler)
*⚠️ Warning: Logisim-Evolution is not that stable when it comes to executing it without the graphics!*
1. Run the machine with your program (replace ```executable``` with the executable file generated by the assembler or the compiler):
1. Run the machine with your program (replace ```executableFile``` with the executable file name generated by the assembler or the compiler):
```sh
java -jar logisim-evolution.jar main.circ -load executable -tty table
java -jar logisim-evolution.jar main.circ -load executableFile -tty table
```
2. The outputs will appear on the console.
- Ignore the first output
- Output lines pattern: ```0 {16 bits of the main output} {8 bit ouptut counter}```
- The outputs will follow the pattern: ```{16 bits of the main output} {4 bit ouptut counter}```
Loading

0 comments on commit 19a59d9

Please sign in to comment.