🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #516

Re: Another Kick at Concertina III

#516
From: EricP
Date: Mon, 02 Nov 2026 23:39
99 lines
5329 bytes
On 2026-Oct-30 14:42, MitchAlsup wrote:
> quadibloc@invalid.com (John Savard) posted:
> 
>> On Fri, 30 Oct 2026 05:00 +0000 (GMT Standard Time), jgd@cix.co.uk
>> (John Dallman) wrote:
>>
>>> No, but quadibloc wants to be able to run old software natively, or
>>> nearly so.
>>>
>>> That might be achieved by creating an exceptionally versatile microcode
>>> engine, capable of loading instruction sets on a per-process basis.
>>
>> I thought that microcode was an obsolete implementation technique
>> which was excessively slow.
> 
> Done right, it is neither. MicroCode is "just a way to make a sequencer".

Yes, it is not "microcode" that is the problem with
PDP-11, VAX-780, 360/370, 8086, 68000.

It is that these designs use a _single_ monolithic sequencer
to control almost the whole machine. With just one sequencer
they can only be performing one task at a time.

The above mostly have in their cores just two sequencers,
a simple little one to load a prefetch instruction buffer,
and a big one to serially control everything else.
This is similar to a single threaded program.

The "risc" approach has many smaller state machines operating
concurrently on many instructions at once.
Each stage has at least one sequencer, all running concurrently.
This is similar to a multi-threaded program.

In the VAX-780 there is an 8 byte prefetch queue which pulls in
4-byte blocks - cache hits only as it needs microcode to handle cache
misses and memory bus access. On cache miss the micro sequencer stalls.
The prefetched bytes are pulled by decode microcode which is a
recursive descent parser.
The microcode control goes all the way through the TLB,
through the cache, down to controlling the main memory bus.
If anything unusual happens, TLB miss, cache miss, bus error,
it throws a micro-instruction exception to a micro-handler.
This does at most one action per clock.

My TTL risc-ish vax-ish has two sequencers in the fetch stage,
one for prefetching into I-cache and loading 8-byte octets into
the 32 byte fetch buffer, one for aligning and parsing a variable
length instruction into the instruction buffer in 1 clock.
There is another sequencer in the TLB for table walking.
The initial version of the I-cache is the same as VAX-780
and does not have a separate sequencer for cpu cache misses,
just one for snooping DMA and invalidating entries.
However an updated design could add an I-cache sequencer
to handle automatic cache prefetch.

That has the potential for my Fetch stage alone to be
performing up to 5 concurrent actions per clock.

>>                              But then, on the other hand, it seems that
>> it is sort of used on modern computers, just in a modified form that
>> harmonizes with their largely hardwired design, so that microcode can
>> be used to patch design errors after the fact and to implement a few
>> of the fancier instructions.
> 
> RISC architecture shrunk the kind of sequencers needed such that they
> can be implemented in hardwired logic.

On FPGA's with 6 input LUTs I think one could implement an
up to 64 state sequencer with just 15 to 20 LUTs that might
operate up to 400 MHz. That should be enough to do a
simple page table walker or an integer divider.

>> Definitely, though, this sounds like a good suggestion, simply because
>> it avoids designing an ISA that is burdened with more instructions
>> than other ISAs.
> 
> In particular, one of the things µCode is good at is subroutines
> within sequences--an address mode is simply a subroutine to a
> main instruction. Hard Wired sequencers are not good at subroutines.

Also good for sequences with conditional actions.

>>  From my perspective, though, it has problems. Microcode, unlike an
>> ISA, tends to be model-dependent. Even if it's documented and
>> available to the user, it's not as accessible to the ordinary
>> programmer as an ISA.
> 
> For good reasons !!!!! not the least of which is that µCode is not
> generally vonNeumann {do one thing to completion before starting the
> next}.

Horizontal microcode is VLIW, with 100 to 300 bits per uWord
and separate fields for controlling individual functions.

Like a player piano it can control 88 keys at once,
but it only plays one song at a time for one instrument.

Technical Details
Message-ID: <ta9GS.80599$5oi8.46639@fx10.iad>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer05.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx10.iad.POSTED!not-for-mail
References: <1793295922-5857@newsgrouper.org> <memo.20261030050023.2644S@jgd.cix.co.uk> <6ae46bec.39391656@news.eternal-september.org> <1793385758-5857@newsgrouper.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer05.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx10.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
From: EricP <ThatWouldBeTelling@thevillage.com>
Subject: Re: Another Kick at Concertina III
Newsgroups: comp.arch
References: <1793295922-5857@newsgrouper.org>
 <memo.20261030050023.2644S@jgd.cix.co.uk>
 <6ae46bec.39391656@news.eternal-september.org>
 <1793385758-5857@newsgrouper.org>
Content-Language: en-CA
In-Reply-To: <1793385758-5857@newsgrouper.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 99
Message-ID: <ta9GS.80599$5oi8.46639@fx10.iad>
X-Complaints-To: abuse@UsenetServer.com
NNTP-Posting-Date: Mon, 02 Nov 2026 23:39:05 UTC
Date: Mon, 2 Nov 2026 18:39:01 -0500
X-Received-Bytes: 5097