From fca23384b05e2f5b956448f1879aea513592b982 Mon Sep 17 00:00:00 2001 From: pjht Date: Mon, 28 Mar 2016 06:51:22 -0500 Subject: [PATCH] stuff --- 4bit cpu/4bit cpu.circ | 667 ++++------- cpu67.circ | 514 --------- cpu87.circ | 175 --- multicycle/ins set.txt | 19 + multicycle/multicycle.circ | 2171 ++++++++++++++++++++++++++++++++++++ 5 files changed, 2377 insertions(+), 1169 deletions(-) delete mode 100644 cpu67.circ delete mode 100644 cpu87.circ create mode 100644 multicycle/ins set.txt create mode 100644 multicycle/multicycle.circ diff --git a/4bit cpu/4bit cpu.circ b/4bit cpu/4bit cpu.circ index 5592cde..22222d1 100644 --- a/4bit cpu/4bit cpu.circ +++ b/4bit cpu/4bit cpu.circ @@ -59,8 +59,8 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - + @@ -99,19 +99,19 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - - - + + + - + - + @@ -123,8 +123,8 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - + @@ -196,78 +196,98 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - - + + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -278,10 +298,16 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - + - + + + + + + + @@ -289,17 +315,10 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - + - - - - - - - - + @@ -308,25 +327,6 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - - - - - - - - - - - - - - - - - - - @@ -351,13 +351,13 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - + - + @@ -381,16 +381,16 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - + - - + + - + @@ -399,36 +399,62 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - + - + - + + + + + + + + + + + + + - - - - - - - + + + + + + + + + + + + + + + + + + - + + + + @@ -436,14 +462,32 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - + + + + + + + + + + + + + - + + + + + + + @@ -453,59 +497,15 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - - - - - - - - - - - - - - - - - - - - + - - + - + - - - - - - - - - - - - - - - - - - - - - - - - @@ -515,346 +515,166 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - + - - - - - - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - + - - - - - - - - - - - - - - - - + - + - - - - - - - - - - - - + - - - + - - + - - - - - - - + - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - + - + + - + + + + + + + - - - - - - - - - - - - - - - - - - - - - + @@ -866,71 +686,10 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - + + @@ -938,34 +697,8 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). 0 1100 1200 1101 1201 1206 - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -982,49 +715,23 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - - - - - - - - - - - + + + + - - - + + + - - - + - - - - - - - - - - - - - - - - - diff --git a/cpu67.circ b/cpu67.circ deleted file mode 100644 index 6db2f2e..0000000 --- a/cpu67.circ +++ /dev/null @@ -1,514 +0,0 @@ - - -This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/cpu87.circ b/cpu87.circ deleted file mode 100644 index 37340f5..0000000 --- a/cpu87.circ +++ /dev/null @@ -1,175 +0,0 @@ - - -This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - - - - - - - addr/data: 8 8 -0 - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - addr/data: 12 16 -0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/multicycle/ins set.txt b/multicycle/ins set.txt new file mode 100644 index 0000000..b83a298 --- /dev/null +++ b/multicycle/ins set.txt @@ -0,0 +1,19 @@ +01-LDA +02-LDB +03-LDC +04-LDD +05-LDAI +06-LDBI +07-LDCI +08-LDDI +09-STA +0A-STB +0B-STC +0C-STD +0D-ADD A,B +0E-ADD A.C +0F-ADD A,D +10-SUB A,B +11-SUB A,C +12-SUB A,D +13xy-MOV x,y diff --git a/multicycle/multicycle.circ b/multicycle/multicycle.circ new file mode 100644 index 0000000..59e0544 --- /dev/null +++ b/multicycle/multicycle.circ @@ -0,0 +1,2171 @@ + + +This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + addr/data: 12 8 +0 + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + addr/data: 12 8 +5 a 0 13 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 00 + 01 + 02 + 03 + 04 + 05 + 06 + 07 + 08 + 09 + 10 + 11 + 12 + 13 + 14 + RWE + 15 + STR + ADDR + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + DIN + DOUT + ADDR + W + CLK + RES + A + B + C + D + INS + ADDR + PC + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + INS + EN + WR + WRA + RRA + RRB + OP + M/I/A/R + WM + ADDR + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A + B + OP + R + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +