André's 8-bit Pages  Projects  Code  Resources  Tools  Forum
(by Google)

The 65k Project - Specifications

This page describes resp. links to the specifications for my 65k line of processors. For a reasoning why a feature is implemented as it is, see the Features discussion page.

The 65k will be available in different "sizes" - mainly in terms of register widths. For example options for 16 bit, 32 bit, and even 64 bit registers are defined. The first section will thus describe the options available.

The second section will then give links to the different models, their specifications and implementations.

Note that these tables are currently preliminary. The 65002 specifications are generated from the same source that generates the VHDL control tables. Therefore you will find the specifications directly in the af65xxx folders with the reference implementation.

This section describes the different versions of the 65k processor

Register Widths Options

The 65k will be available in different "register widths". Register here means all address registers (stack pointer (SP), program counter (PC), base offset register (BR)), but also all data registers (AC, XR, YR). This does not include the status register for example. For details see the register model documentation. Address and Data registers will always have the same width to accomodate for address offsets computed in data registers.

The following options are available:

  • 16 bit - a small extension to the original 6502 programming model, the PC stays 16 bit as it already is in the 6502.
  • 32 bit - all data and address registers extended to 32 bit
  • 64 bit - all data and address registers extended to 64 bit

The original register width for most of the registers is a byte. To use the registers with more than 8 bit a prefix opcode to the existing 8 bit opcodes is used. 2 bit of the prefix opcode are reserved for operation width, which allows to address registers as 8, 16, 32 or 64 bit.

The different register or operand widths are noted by a prefix. These prefixes are defined and used here:

PrefixWidthComment
 8no prefix gives the 6502 8 bit behaviour
W16Word
L32Long
Q64Quadword (alternatively LL, but Q should be used)

Memory interface width

The 65k will be able to use different memory width options. I.e. the external memory interface of the processor can have different widths, from 8 bit over 16 bit to 32 bit. In the future it is possible to do a 64 bit memory interface.

Note that even though a processor variant has a wider memory interface, it can still use smaller width memory as well. I.e. a 32 bit wide memory interface can still handle 8 or 16 bit memory.

Integer Arithmetic (Future)

In the future there will be integer arithmetic in form of multiplication and division operations, possibly with other operations as well.

Floating Point Arithmetic (Future)

In the future there will be floating point arithmetic in form of addition, substruction, multiplication and division operations, possibly with other operations as well.

MMU Option (Future)

The 65k will optionally provide an MMU to translate virtual addresses (opcode effective addresses) into physical addresses. When the MMU is not included, virtual addresses are directly taken as physical addresses.

Multicore Option (Future)

The 65k will provide a multicore option where two (or even more) cores are integrated into a single processor.

Multbyte operation (Future)

There will be a prefix bit that extends the operations that are not full width to a SIMD operations. For example, if this bit is set, and an 8 bit operation is performed on a 64 bit processor, the operation is performed simultaneously on all eight bytes of the 64 bit accumulator. Similarly for other combinations of register and operation widths.

QUICK operations (Future)

The QUICK opcodes work with a separate prefix and implement the repeated execution of an existing opcode, e.g. "eight times INY"

The following table describes the different processor variants

VariantCPU width (W)Memory width (MW)Descriptionlink
65002/WB168The /WB is the one that is closest to the original 6502. All of those are being created from the same VHDL source, with W and MW being generic parameters. 65002
65002/WW1616
65002/LB328
65002/LW3216
65002/LL3232
65002/QB648
65002/QW6416
65002/QL6432

Return to Homepage

Last modified: 2012-04-30
share
follow

Follow my 8-bit tweets on Twitter (In new window)

discuss

Discuss my site on this 6502.org forum thread

Discuss this page's content on this 6502.org forum thread

(Forum registration required to post)

hot!

Dive into the retro feeling and build yourself a Commodore PET replica

Need more speed? Speed up your 6502 computer with this 10 MHz 6502 CPU accelerator board

Interested in electronics design? Look at the design lesson I got from Bil Herd, the hardware designer of the C128

Want 64bit? - pimp the 6502 with the 65k processor design!