home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!spool.mu.edu!agate!doc.ic.ac.uk!uknet!reading!shrchin
- From: shrchin@susssys1.reading.ac.uk (Jonathan H. N. Chin)
- Newsgroups: comp.arch
- Subject: simple cpu-less computer
- Summary: what would be a nice way to implement a cpu on a gate-array?
- Message-ID: <shrchin.720954211@reading>
- Date: 5 Nov 92 09:03:31 GMT
- Sender: news@csug.cs.reading.ac.uk
- Organization: University of Reading
- Lines: 44
- Nntp-Posting-Host: suma1
-
- In our department, the 6809-based ALEX (Assembly Language EXperimenter)
- is being phased out for use in practicals. They are likely to be
- replaced by 68020-based machines. Currently 386 PCs are being
- used to simulate the ALEX (previously one cross-compiled on the PC and
- downloaded to the ALEX over a serial line, and before that...).
- The experiments are aimed at 1) demonstrating programming in machine
- code, and later 2) giving practice/experience at programming in assembler.
-
- One of the lecturers thought it would be fun to build a simple CPU
- from a gate-array. First off, nobody in the dept has much experience
- with them so it would be useful experience, and secondly it seemed
- like a neat (bizarre) idea to run programming experiments on a machine
- without a CPU.
-
- His instruction set consists of: LOAD, STORE, ADD, SUB, AND, OR, XOR.
- There are four addressing modes: IMMEDIATE, ABSOLUTE, INDIRECT, CONDITIONAL.
- (IMM -> 2nd byte is data, ABS -> addr of data, IND -> addr of addr of data).
- He explained COND to me, but I didn't really understand him.
- There is one flag (testing for zero I seem to recall), and if it is set
- the COND instruction is executed as if it were IMMED (I think).
-
- Each instruction is 2 bytes, the first containing the op, mode and register
- and the second a memory location.
- There are 8 registers and it is possible to address 256 bytes of memory.
- the registers occupy the bottom 8 bytes of memory. I think 0 is the PC.
-
- Aside from the COND mode, it looks nicely orthogonal to me.
-
- Does anyone know of any equally simple (or simpler) designs?
- In particular, I was curious about a registerless design using
- stacks(!) instead maybe.
- Or how about one that allows 16bit addressing? (Entailing longer
- instructions I presume.)
-
- Also, I vaguely recall discussion of "the ultimate RISC", a single
- instruction machine. What were the references to that?
-
- -jonathan
-
- --
- Jonathan H N Chin, 8 kyu \ Dept. of Cybernetics, \ "Respondeo, etsi mutabor"
- \ University of Reading \
- shrchin@uk.ac.rdg.susssys1 \ Box 225, Whiteknights \ < Rosenstock-Huessy >
- bq305@cleveland.freenet.edu \ Reading, RG6 2AY, U K \
-