Article View: comp.arch
Article #783Re: Concertina IV Again?
From: John Savard
Date: Tue, 17 Nov 2026 03:10
Date: Tue, 17 Nov 2026 03:10
110 lines
5776 bytes
5776 bytes
On Fri, 13 Nov 2026 04:45:35 GMT, quadibloc@invalid.com (John Savard) wrote: >What I thought of for allowing 16-bit instructions was this: > >110 >(op code) 3 bits >(destination register) 5 bits >(source register) 5 bits > >111 >(op code) 7 bits >(destination register) 3 bits >(source register) 3 bits At this point, it seems like I've finally achieved the Concertina II dream - an ISA that combines the best of typical RISC architectures with the best of typical CISC architectures like the 680x0. CISC architectures, of course, had memory-to-register operate instructions. This doesn't; having banks of 32 registers, instead of eight or sixteen, they wouldn't fit. But it did fit in base-index addressing for the load-store instructions. Accepting plain variable-length instructions like CISC constrained opcode space. But finally I managed to include 16-bit instructions that are "sort of" useful. There's the first reason for my hesitancy. If they're not _really_ useful, then there's no reason for allocating 1/4 of the possible opcode space to them. Of course, though, the 680x0 had register banks of eight registers. So the 16-bit instructions, with all the basic operations on all the major types, for only eight of the 32 registers in a bank are... equivalent. And for the most important data type, double precision floating point, all 32 registers are available. So is there really a cause for complaint? The 32-bit instructions access all 32 registers. The register banks have 32 registers in them so as to permit the code sequence to do several things at once, with intervening instructions between instructions that are dependent on each other. This lets a pipeline work faster even in the absence of high-overhead measures such as out-of-order execution. So the 16-bit instructions have to work with that. That's why, for a long time, my short instructions worked with two registers chosen under the constraint that one register could be any of the 32 possible registers, but the other had to be in the same group of eight registers. That fit with the model of what the processor was _for_. Think of it as a register window that can change for each instruction without extra overhead. That works for paired instructions in a 32-bit word, but independent 16-bit instructions have one less bit available, if 1/4 of the opcode space is what is available for them. Other alternatives are possible. 11 (op code) 7 bits (destination register) 2 bits (source register) 5 bits One could use only registers 0 through 3 as destination registers, but all 32 registers as the source register. This is reminiscent of early computer architectures with only an accumulator, or an A and B accumulator, and a small memory. Multiple accumulators allow several independent calculations to proceed at once, but having just an accumulator means extra instructions to store stuff from the accumulator - and when there's an extra 16-bit instruction, it's faster to just use one 32-bit instruction instead of two 16-bit instructions. If the viability of the architecture depends on this one design decision, and there's no single obvious best choice... then what immediately suggests itself is making the choice in effect depend on settable mode bits. If the instruction set is alterable, however, that is known to be a serious security hole. (At least the alterable part of the instruction set, the short instructions, doesn't include any branch instructions!) Faced with this conundrum, I've come up with a solution, but the solution is so silly and weird that it makes me seriously reconsider the value of continuing with Concertina IV. Basically, since I can't seem to do without Concertina II's block headers to expand the opcode space... Use a technique to fix the security hole. Branches, including subroutine jumps, can only be made to a marker NOP. In a CISC instruction set with variable-length instructions, this isn't perfect, since an address displacement or an immediate value could match the bit pattern of the marker NOP. Except instead of having a true NOP, include within it a few bits that set the instruction format. Therefore, it's never possible to jump to code without setting the correct instruction format that is embedded in the code itself (except for the imperfection noted above). While this is a way to meet _my_ objectives, it is clearly so strange and unusual as to eliminate any chance of general acceptance of the ISA. Thus, I need to head back to the proverbial drawing board, it seems, to find another solution. John Savard
Technical Details
Message-ID:
<6afbbc17.63863656@news.eternal-september.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<6af629a7.27886218@news.eternal-september.org> <6af691cb.54553984@news.eternal-september.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: quadibloc@invalid.com (John Savard) Newsgroups: comp.arch Subject: Re: Concertina IV Again? Date: Tue, 17 Nov 2026 03:10:57 GMT Organization: A noiseless patient Spider Lines: 110 Message-ID: <6afbbc17.63863656@news.eternal-september.org> References: <6af629a7.27886218@news.eternal-september.org> <6af691cb.54553984@news.eternal-september.org> Injection-Date: Tue, 17 Nov 2026 03:10:57 +0000 (UTC) Injection-Info: dont-email.me; logging-data="114548"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+whz+tXrMv+bSVDS066OHyPYvqXxvOf5M="; posting-host="d8bc7775d0dfffb9e4233d91bb35aab7" Cancel-Lock: sha1:G0WB95dFYTVHmJjbPQDWFQDJPOo= sha256:JUCsZkkq2ujdENuCVVSdJHW8VjFPTNIDj6FVtYS0tdc= sha1:ZEO24uQy8+tWDJe1g0bomDuwq48= sha256:iYPOmcLxJnMTiEpEtwMtvQnytnH8ZGKQqvr8cRHcqOQ= X-Newsreader: Forte Free Agent 1.1/32.230