Skip to content

Commit 6c7a1c7

Browse files
committed
123.639MHZ/F1E: Documentation update
Minor updates to documentation, moved some meta-compiler words around to prevent an error in porting that occurred in a different project by using the wrong definitions of ":" and ";".
1 parent e735410 commit 6c7a1c7

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

bit.fth

+2-2
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,8 @@ there t2/ negate primitive t! \ Forth code after this
500500

501501
assembler.1 -order
502502

503+
:m : :t ;m
504+
:m ; ;t ;m
503505
:h #1 1 lit ;t ( -- 1 : push 1 onto variable stack )
504506
:t 2* #1 lls ;t ( u -- u : multiply by two )
505507
:t 2/ #1 lrs ;t ( u -- u : divide by two )
@@ -515,8 +517,6 @@ FF hconst #ff ( -- 255 : space saving measure, push `255` )
515517
8002 hconst uctrl ( -- 8002 : uart control register )
516518
20 constant bl ( -- space : push a space, 32 )
517519
2 constant cell ( -- u: size of memory cell in bytes )
518-
:m : :t ;m
519-
:m ; ;t ;m
520520
:to bye bye ; ( -- )
521521
:to and and ; ( u u -- u )
522522
:to or or ; ( u u -- u )

readme.md

+11-7
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,13 @@ head of the project).
5656
| +++uart_tx_gen.tx_0 | 7/7 | 15/15 | 17/17 | 0/0 | 0/0 | 0/0 |
5757
+-----------------------------------------------------------------------------------+
5858
* Not of pizza
59-
* No DSP48A1/PLL_ADV/DCM/BUFR/BUFIO used.
59+
* No DSP48A1/PLL_ADV/DCM/BUFR/BUFIO used.
6060

6161
Note that the UART (92 LUTs) is bigger than the CPU core (76 LUTs)! This
6262
is certainly one of the smallest soft microprocessors, and perhaps the
63-
smallest 16-bit processor.
63+
smallest 16-bit soft processor for FPGAs. The UART is actually quite big
64+
as it is far more general than it needs to be, perhaps later developments
65+
will use a smaller one, like in my [SUBLEQ VHDL project](https://github.com/howerj/subleq-vhdl).
6466

6567
To build and run the C based simulator for the project, you will need a C
6668
compiler and 'make'. To build and run the [VHDL][] simulator, you will need [GHDL][]
@@ -110,7 +112,7 @@ This builds the project for the [FPGA][].
110112
make upload
111113

112114
This uploads the project to the [Nexys 3][] board. This requires that
113-
'djtgcfg' is installed, which is a tool provided by [Digilent][].
115+
'djtgcfg' (bless you) is installed, which is a tool provided by [Digilent][].
114116

115117
make documentation
116118

@@ -137,10 +139,10 @@ hitting return.
137139

138140
$ make run
139141
./bit bit.hex
140-
eForth 3.1
142+
eForth 3.3
141143
words
142144

143-
Arithmetic in Forth in done using Reverse Polish Notation:
145+
Arithmetic in Forth is done using Reverse Polish Notation:
144146

145147
2 2 + . cr
146148

@@ -169,7 +171,9 @@ either because only part of the BRAM module is being used or because it is not
169171
needed entirely. Adding a new CPU however is a bigger decision than using spare
170172
BRAM capacity, it can take up quite a lot of floor space, and perhaps other
171173
precious resources. If this is the case then adding this CPU costs practically
172-
nothing in terms of floor space, the main cost will be in development time.
174+
nothing in terms of floor space (or routing resources for connecting the device
175+
to other sections of the FPGA as the CPU interface is really tiny), the main cost
176+
will be in development time.
173177

174178
In short, the project may be useful if:
175179

@@ -324,7 +328,7 @@ peripherals.
324328
| 0x4004 | UART Control* |
325329
| ------- | -------------- |
326330
These registers are turned off by default
327-
and will need to be enabled during synthesis.
331+
and will need to be enabled during synthesis if needed.
328332

329333
* LED/Switches
330334

0 commit comments

Comments
 (0)