6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Jun 22, 2024 11:00 am

All times are UTC




Post new topic Reply to topic  [ 28 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: 6530 dissection
PostPosted: Thu Jul 29, 2021 10:45 am 
Offline
User avatar

Joined: Fri Nov 09, 2012 5:54 pm
Posts: 1397
13) some logic

A tangled mass of logic gates located North East from the RAM, between RAM and ROM.

It generates ROM# (low active) from ROM (high active), RAM# from RAM, IO# from IO.

Also, it generates RAM_W (high_active), the RAM write enable signal,
which is 1 when PHI1=0 (what is different from "when PHI2=1"), AND when RAM is selected, AND when W/R#=1 (write).


Also, it generates OE_DB_R (high active),
which is 1 when ROM OR RAM OR IO is selected,
AND when RES is inactive, AND when W/R=0 (read).

In 14) IO control, there is a NAND gate fed by OE_DB_R and PHI2_in which generates the low_active OE_DB# signal.
OE_DB# enables the DB0..7 output drivers.

Attachment:
si6530_13_some_logic.png
si6530_13_some_logic.png [ 66.91 KiB | Viewed 518 times ]

Attachment:
6530_13_some_logic.png
6530_13_some_logic.png [ 92.53 KiB | Viewed 518 times ]


Top
 Profile  
Reply with quote  
 Post subject: Re: 6530 dissection
PostPosted: Thu Jul 29, 2021 10:48 am 
Offline
User avatar

Joined: Fri Nov 09, 2012 5:54 pm
Posts: 1397
14) IO control

The IO control block is located below the South East corner of the RAM, East of the IO logic block.
It generates the read/write control signals for the IO logic.

First, we have a PLA like structure (containing 8 NOR gates), which is enabled when IO#=0 and A2i#=1.
According to A0i, A1i and W/R#, it generates 4 read signals and 4 write signals.

;---

The 4 read signals from the "IO control PLA" are sampled with PHI1 by dynamic transparent latches.
The latch outputs then control FET switches, a closed switch puts PHI2 on the read control lines for the IO logic.
IO read control signals are all high_active: R_PRA, R_DDRA, R_PRB, R_DDRB.

Note, that there are 4 switches West of of the IO logic, wich tie these 4 IO read control signals to GND during PHI1.

;---

The 4 write signals from the "IO control PLA" are sampled with PHI2 by dynamic transparent latches.
A latch output goes through an inverter, then together with PHI2_in into an "open collector" NOR gate.

Means if a write signal from the "IO control PLA" latched at PHI2 is high, AND PHI2_in is low,
the NOR gate stops pulling the IO write control signal to GND, which then is pulled to high by a pullup resistor (FET).
IO write control signals are all high_active: W_PRA, W_DDRA, W_PRB, W_DDRB.

Note, that there are 4 switches West of the IO logic, which tie these 4 write control signals to GND during PHI2_in.

The trick is, that the data from DB0..DB7 is sampled into static transparent latches during PHI2_in = HIGH.
The latches place D0..7w# on the write data bus.
The IO registers are written with this data during PHI2_in = LOW.

//This is something you probably won't expect to see in a 65xx peripheral chip...

;---

Decoding:
IO has to be selected, A2i has to be 0.

According to A0i, A1i and W/R#, we have:

00 read: during PHI2=high: R_PRA
01 read: during PHI2=high: R_DDRA
10 read: during PHI2=high: R_PRB
11 read: during PHI2=high: R_DDRB

00 write: during PHI2_in=low: W_PRA
01 write: during PHI2_in=low: W_DDRA
10 write: during PHI2_in=low: W_PRB
11 write: during PHI2_in=low: W_DDRB

;---

Also, West in the IO control block we have a single NAND gate.
When OE_DBR (mentioned in "13) some logic") is high AND PHI2_in is HIGH,
it sets the low_active OE_DB# signal to low.

OE_DB# enables the DB0..7 output drivers.

Attachment:
si6530_14_io_control .png
si6530_14_io_control .png [ 152.62 KiB | Viewed 517 times ]

Attachment:
6530_14_io_control.png
6530_14_io_control.png [ 151.23 KiB | Viewed 517 times ]


Top
 Profile  
Reply with quote  
 Post subject: Re: 6530 dissection
PostPosted: Thu Jul 29, 2021 10:54 am 
Offline
User avatar

Joined: Fri Nov 09, 2012 5:54 pm
Posts: 1397
15) IO logic.

IO logic block is located East of the PB0, PB1 buffers/drivers and West of the IO control block.

South in the IO logic block, we have eight inverting super buffers, which generate D0..7w (high_active) from D0..7w# (low_active).

Since the layout for the IO block Bits is more or less identical,
we just focus on the IO logic for Bit 7.

;---

Output side:

PRA (write) is data register for port A output (PA0..7).
DDRA (write) is data direction register for port A, if a Bit is 1 this means the according PA0..7 pin is configurated to work as an output.

The PRA, DDRA register Bits are static RS flipflops, which are cleared during RES=high.
Note, that RES (high_active) is the inverted signal from the RES# pad (low_active),
not sampled by any clock, take care.

When one of the IO the write control signals W_PRA, W_DDRA, goes high,
D0..7w and D0..7w# are fed to both transistors of a RS flipflop in the according register Bit by FET switches.
And yes, that's "differential" signals and two FET switches per register Bit.

For PA1..7, we have seven NOR gates which generate PA1..7o# signals, telling the output drivers to pull PA1..7 to GND,
when a PRA register Bit is 0 and the according DDRA register Bit is 1 (when PA1..7 is configurated as an output).
//Pullup resistors (FETs) to VCC are pulling PA1..7 to high when the output drivers are not pulling PA1..7 to GND.
Since the PA0 output is a true push/pull driver, it lacks the NOR gate.
See "11) PB0", which discusses the PA0 and PB0 driver/buffer circuitry.

For port B, the game is similar, just with PB0..7, PRB and DDRB.
But in the chip we had dissected, the PB5 and PB6 drivers were disabled because PB5 and PB6 were used as inputs for chip select signals.
Also, PB7 can be used as #IRQ output, and in this case the Timer control block overrides PRB and DDRB when generating an interrupt on PB7.
Note, that PB7 lacks the pullup resistor (FET), means one has to add an external pullup resistor for a logic high level on PB7.

;---

Input side:

When reading DDRA, the DDRA register Bits are placed on the read data bus D0..7r# in inverted form by FET switches, and that's all there is to it.

The signals from the PA1..7 pads are buffered as PA1..7i.
When reading PRA0..7, we have eight "open collector" NAND gates which pull the read data bus D0..7r# low
if the according DDRA Bit is low (PA1..7 configurated as an input, that is) and PA0..7i is high.

For PA0i it's a bit different:
If PA0 is configurated as an input, PA0i comes from the PA0 pad.
If PA0 is configurated as an output, PA0i comes from the PRA0 register Bit.
For details, again please see "11) PB0", which discusses the PA0 and PB0 driver/buffer circuitry.

For Port B, the game is similar.

;---

65xx peripheral chips usually sample port input signals during PHI1, but the 6530 doesn't.
6530 just places the signals from the IO port on the DB0..7 CPU data bus, the 6502 samples DB0..7 at the falling edge of PHI2, and that's it.
That's not good for signal integrity.

See, many years ago I had built counters for incremental encoders at work with XC95108 CPLD chips.
Out of paranoia, I had tied three counters to one encoder, and after some hours of operation all of them counters had a different value.
For position control in machine engineering, that's not good.

I had tried a lot of different things:
creative placement of capacitors of different size into the power supply, active/passive termination of the clock signal,
filtering the signal inputs with shift registers and whatnot...
What eventually had fixed the problem was running the counter with the non_inverted clock,
and putting flipflops controlled by the inverted clock into the input signals.
Sounds familiar when talking about PHI1 and PHI2... but I'm getting off topic.


Whether you want to have transparent latches sampling PA0..7 and PB0..7 during PHI1 or not
when building a TTL or FPGA implementation of the 6530, that's your decision.

Attachment:
si6530_15_io_logic.png
si6530_15_io_logic.png [ 67.41 KiB | Viewed 517 times ]

Attachment:
6530_15_io_logic.png
6530_15_io_logic.png [ 97.14 KiB | Viewed 517 times ]


Top
 Profile  
Reply with quote  
 Post subject: Re: 6530 dissection
PostPosted: Thu Jul 29, 2021 11:03 am 
Offline
User avatar

Joined: Fri Nov 09, 2012 5:54 pm
Posts: 1397
16) Timer control

The Timer control block is located North of the DB3, DB4 drivers/buffers,
East from the Timer block.

Also, we have a little bit of logic for Timer Interrupt flag and PB7 IRQ generation West from the Timer block,
which technically also belongs to the Timer control block.

;---

Address decoding:

To make things simple:
We have three NOR gates, which generate three high_active control signals when PHI1 is low
(what is different from "PHI2 is high") AND when IO is selected AND when A2i is high.
R_TMR (read Timer) when A0i is low AND W/R# is low (read).
R_IRQ (read Timer underflow Interrupt flag) when A0i is high AND W/R# is low (read).
W_TMR (write timer) when W/R# is high (write). //Note: A0i doesn't matter here.

R_TMR and W_TMR are switched to GND by FETs during PHI1:
For R_TMR, one FET located West from the Timer block.
For W_TMR, one FET located West from the Timer block, and another FET located in prescaler counter Bit 0.

;---

Predivider control:

We have a predivider, basically a ten Bit down counter running at PHI2_in speed,
which is cleared when writing the Timer by W_TMR.
//Predivider counter Bits change with PHI2.

We have three latches for the prescaler factor, written with W_TMR.
Depending on A0i and A1i, only one of the latches can be set to 1, default is 0.

00: PRE1=1, PRE8=0, PRE64=0. No predivider, Timer is running at PHI2_in speed.
01: PRE1=0, PRE8=1, PRE64=0. Predivider factor 8, Timer is running at PHI2_in/8.
10: PRE1=0, PRE8=0, PRE64=1. Predivider factor 64, Timer is running at PHI2_in/64.
11: PRE1=0, PRE8=0, PRE64=0. Predivider factor 1024, Timer is running at PHI2_in/1024.

Active predivider counter Bits:
Three when PRE8=1.
Six when PRE64=1.
Else, all of the ten predivider Bits are active.

In the predivider block, we have a ten input NOR gate which generates the IS0 signal.
If IS0 is high, all of the active predivider counter Bits are zero. //I'm simplifying things a bit here.

;----

Timer control:

We have a Timer, basically an eight Bit down counter,
read with R_TMR, written with W_TMR,
Timer Bits change with PHI2.

The low_active CEN# signal enables Timer counting.
If PRE1 is high, CEN# always is active, and the Timer is running at PHI2_in speed.
;
IS0 is sampled with a transparent latch at PHI1,
means that if IS0 was high in the previous PHI2_in cycle, CEN# is active for the current PHI2_in cycle.
;
If the Interrupt flag is set, CEN# is active: the timer is running at full speed.
;
W_TMR also puts CEN# active, and I don't know why,
because the Timer counter circuity ignores CEN# when W_TMR is active.

The Timer uses a carry lookahead mechanism for the lower 5 Bits,
that's why we have that Tcin5 signal, we are getting there later in "18) Timer".

;---

Timer underflow Interrupt flag and IRQ generation:

6530 Interrupt flag basically is a RS flipflop built from two NOR gates.

Timer Bit 7 carry output TC# (low_active, signaling Timer underflow, changes with PHI2) is sampled with a transparent latch during PHI1.
TC# is active, when the (decrementing) Timer is at $00 in the current PHI2_in cycle (and will roll over to $FF in the next time).

If TC# was active in the previous PHI2_in cycle, the latch output does set the 6530 Interrupt flag (through an inverter)
during PHI1 in the current PHI2_in cycle.

We have another transparent latch, which samples the Interrupt flag during PHI2.
If the output of that latch is active, three things will happen:
;
CEN# is active, the Timer counts a step during the current PHI2_in cycle.
;
If the PB7 IRQ output is not disabled, AND RESET is not active,
the IRQ signal goes active during PHI2 of the current PHI2_cycle and tells the PB7 driver to pull PB7 to GND.
//If PB7 is tied to the IRQ# input of the 6502, this signals a 6530 Timer underflow IRQ# to the 6502.
;
When the Interrupt flag is read by R_IRQ during PHI2, read data bus D7r# is pulled low,
means the 6502 sees DB7 '1' what indicates that the 6530 Interrupt flag is set.
//read data bus D0..7r# lines which are not pulled to GND during PHI2 give us '0' on DB0..7.
//That's why DB0..6 are '0' when reading the Interrupt flag.

The Interrupt flag is cleared in the current PHI2_in cycle by reading/writing the Timer (if R_TMR OR W_TMR goes high).

;---

Now for the last part: disabling PB7 IRQ.

We have a latch which samples A3i# during Timer reads (R_TMR=high) OR Timer writes (W_TMR=high).
The output of that latch gives us the signal IRQ_DISABLE.
If IRQ_DISABLE is high, IRQ is disabled, and the Timer Interrupt flag won't cause that PB7 is pulled low.

When reading/writing the Timer,
A3i=0 disables and A3i=1 enables PB7 IRQ generation during PHI2 in the current PHI2_in cycle.
Also, the Interrupt flag is cleared in the current PHI2_in cycle.

Note, that the PB7 IRQ generation ignores the PRB7 and DDRB7 IO register Bits.


Also note, that RESET does not affect the 6530 Interrupt flag, Timer, prescaler, and prescaler factor.

RES makes sure that PB7 is not pulled low by IRQ while RES is active.
RES also sets the latch for the PB7 interrupt generation to "disabled".

But if there is something like an accidental Timer read during the RESET sequence of a 6502,
A3i could enable PB7 interrupt generation, and then there might be a falling edge on PB7 in the wrong moment...

If PB7 is tied to IRQ# of the 6502, there is no problem, because the 6502 does not mind an active IRQ# during its RESET sequence.

If PB7 is tied to NMI# of the 6502, there is a problem, because a falling edge on #NMI in the wrong time might disrupt the 6502 RESET sequence.
And that the RES# input of the 6530 is not synchronized with a clock actually makes things worse, because the 6502 _does_ synchronize its RES# input with a clock.

For more info, please read Rockwell 6532 timer interrupt precautions.

Attachment:
si6530_16_timer_control.png
si6530_16_timer_control.png [ 187.01 KiB | Viewed 516 times ]

Attachment:
6530_16_timer_control.png
6530_16_timer_control.png [ 327.86 KiB | Viewed 516 times ]


Top
 Profile  
Reply with quote  
 Post subject: Re: 6530 dissection
PostPosted: Thu Jul 29, 2021 11:07 am 
Offline
User avatar

Joined: Fri Nov 09, 2012 5:54 pm
Posts: 1397
17) predivider

The predivider is located between the ROM and the DB1, DB2 drivers/buffers,
East from the Timer control block.

Basically, it's a 10 Bit down counter, and the carry is inverted with every Bit.
Counter Bits change with PHI2.

We have a 10 input NOR gate, it generates the IS0 signal (high_active), which indicates that the active predivider Bits are zero.
Actually, the NOR gate is just a metal trace connected to a pullup resistor which is located in predivider Bit 0,
and there is a FET switching that metal trace to GND in every predivider counter Bit if said Bit is not zero...
...but before we are getting to the details:

The predivider breaks in three parts:
Bit 9..6 (five Bits) are controlled by PRE64 and PRE8.
Bit 5..3 (three Bits) are controlled by PRE8.
Bit 2..0 (three Bits) are free running.

If PRE64 and PRE8 are low, all of the 10 predivider counter Bits are active, what gives us a predivider factor of 1024.
If PRE64 is high, only Bit 5..0 of the predivider counter Bits are active, that's six Bits, what gives us a predivider factor of 64.
If PRE8 is high, only Bit 2..0 of the predivider counter Bits are active, that's three Bits, what gives us a predivider factor of 8.

However, if a predivider counter Bit is "active", this just means that the IS0 NOR gate is sensing said counter Bit.

For even predivider counter Bits, the input of the IS0 NOR gate is just disabled, but the Bits still are able to count.
For odd predivider counter Bits, the counter Bit really is cleared.

It isn't that bad, because when the Timer is written with W_TMR is high, all of the predivider counter Bits are cleared.
And the only way to change the prescaler factor (signals PRE64 and PRE8, that is) is to write the Timer.

Note: predivider counter Bit 0 contains a FET switching W_TMR to GND during PHI1, this already was mentioned in "16) Timer control".

Attachment:
si6530_17_predivider.png
si6530_17_predivider.png [ 170.15 KiB | Viewed 516 times ]

Attachment:
6530_17_predivider.png
6530_17_predivider.png [ 270.12 KiB | Viewed 516 times ]


Top
 Profile  
Reply with quote  
 Post subject: Re: 6530 dissection
PostPosted: Thu Jul 29, 2021 11:10 am 
Offline
User avatar

Joined: Fri Nov 09, 2012 5:54 pm
Posts: 1397
18) Timer

The Timer is located North of the DB7..5 drivers/buffers,
West from the Timer control block.

Basically, it's an 8 Bit down counter, and the carry is inverted with every Bit.
Counter Bits change with PHI2.

;---

It uses a carry lookahead mechanism for the lower 5 Bits, basically a six input NOR gate.
Note, that the NOR gate FET for every odd Bit is located in the next higher Bit.

Timer control block enables Timer Bit 0..5 counting with CEN# (low_active).

A dynamic transparent latch (located in the Timer control block) samples CEN# during PHI2.
If the output of that latch is low, AND if Timer Bits 0..4 are zero, the output of the six input NOR gate
Tcin5 (high_active Timer Bit 5 input carry) is high, what enables counting for Timer Bits 5..7.

;---

The low_active TC# signal is the output carry of Timer Bit 7,
it tells the Timer control block about a Timer underflow.
//When the (decrementing) counter is $00, and wants to roll over to $FF in the next time.

If R_TMR is high, Timer contents are placed on the (low_active) read data bus D7..0r# by FET switches.

If W_TMR is high, Timer is written with the write data bus.
Even Bits are written with low_active data, odd Bits are written with high_active data, take care.
//The inverting super buffers for the write data bus which generate D0..7w from D0..7w# are South in the IO logic block,
//which is located North from the Timer. This already was mentioned in "15) IO logic".

Note, that there are FETs West of the Timer block, which are switching R_TMR and W_TMR to GND during PHI1,
this already was mentioned in "16) Timer control".

;---

Dynamic precharge mechanism for read data bus:

There are eight precharge FETs South in the Timer block.
During PHI1, the FETs are active, acting as "pullup resistors" for the read data bus D0..7r#.
Due to the bus capacitances, D0..7r# remain high during PHI2 (if PHI2_in doesn't get too slow, that is).

During PHI2, the precharge FET switches are open,
and everything connected to the read data bus can pull the charge on the read bus lines to GND.

Short form:
The read data bus is low_active, and precharged to VCC during PHI1,
so if a read data bus line isn't pulled to GND during PHI2, it keeps the charge.
And that's why Bits on the read data bus default to '0' on DB0..7 for the 6502.

Attachment:
si6530_18_timer.png
si6530_18_timer.png [ 248.84 KiB | Viewed 516 times ]

Attachment:
6530_18_timer.png
6530_18_timer.png [ 340.56 KiB | Viewed 516 times ]


Top
 Profile  
Reply with quote  
 Post subject: Re: 6530 dissection
PostPosted: Thu Jul 29, 2021 11:19 am 
Offline
User avatar

Joined: Fri Nov 09, 2012 5:54 pm
Posts: 1397
19) RAM

6530 contains 64 Bytes of static RAM.

Attachment:
si6530_19_ram.png
si6530_19_ram.png [ 486.75 KiB | Viewed 515 times ]


From North to South,
we have the RAM address decoder, the column select signal drivers, then the RAM cells,
then the FETs which discharge the colum select signals by switching them to GND during PHI1.

;---

Attachment:
si6530_19_ram_column.png
si6530_19_ram_column.png [ 46.89 KiB | Viewed 515 times ]


North in the RAM block, the column address decoder is fed by A0..3i (A0..3i# respectively).
It contains sixteen 4 input NOR gates.
Note, that the pullup resistor for every NOR gate is not tied to VCC directly/permanently, but only during PHI1.
To be more precise, we have FET switches controlled by PHI1, and the impedance of a FET is working as a resistor.
//From West to East, the NOR gates check from 0000 to 1111, it's linear.

South from the column address decoder, we have the column select signal drivers:
Sixteen transparent latches, sampling the outputs of said NOR gates during PHI2,
control sixteen FET switches, which connect one of the sixteen column select signals to PHI2.
Means, only one column select signal is active at a time.

At the Southern corner of the RAM block, we have FETs switching all of the column select lines to GND during PHI1.

;---

RAM cells are organized in eight parts, for D0..D7,
starting with D0 South of the column select signal drivers, followed by D1, and so on.

In each of the eight D0..D7 RAM cell areas, we have RAM cells arranged in a "4 rows and 16 columns" pattern.
//That's 64 RAM cells in total for every Bit on the data bus.

Each RAM cell contains a conventional RS flipflop (built from two FETs and two pullup resistors (FETs)),
plus two FET switches (controlled by the column select signals) connecting the RS flipflop to the row signals
RAM_ROW and RAM_ROW# during PHI2.

At the Western corner of the RAM block, we have precharge FETs switching the RAM_ROW and RAM_ROW# signals
for every line of RAM cells to VCC during PHI1, switches have an impedance which makes them act like pullup resistors.
//That's 8*4*2 = 64 precharge FETs in total for 64 Bytes of RAM.

RAM cells are read/written only during PHI2.

;---

Attachment:
si6530_19_ram_row_decoder.png
si6530_19_ram_row_decoder.png [ 39.04 KiB | Viewed 515 times ]


East of the column decoder plus drivers, we have the row decoders plus drivers,
and except that they are fed with A5i and A6i (A5i# and A6i# respectively),
conceptuall they are not much different from the column decoders plus drivers.

They control 4:1 multiplexers East of the RAM cells.
For every Bit on the data bus, we have two 4:1 multiplexers,
one connecting the RAM_ROW signals from four rows of RAM cells to the read/write driver/buffer of a data Bit,
the other connecting the RAM_ROW# signals from four rows of RAM cells to the read/write driver/buffer of a data Bit.

//One row has 16 RAM cells.

Note, that the multiplexers are just FET switches, and that signals can go through said switches in both directions.

To be more precise:
When reading RAM cells, signals from the RAM cells to the read buffers go through the multiplexers from West to East.
When writing RAM cells, signals from the write drivers to the RAM cells go through the multiplexers from East to West.

According to A5i and A6i, the multiplexers are selecting the rows in the pattern:
00
01
11
10
But since all of the RAM cells are identical, we can safely ignore this.

;---

Attachment:
si6530_ram_buffer.png
si6530_ram_buffer.png [ 105.55 KiB | Viewed 515 times ]


Now for the read/write drivers/buffers.

West of the multiplexers we have the RAM cells, East of the multiplexers we have the read/write drivers/buffers.
At the read/write driver/buffer side of the multiplexers, we have two FETs,
precharging RAM_ROW and RAM_ROW# of said read/write drivers/buffers to high during PHI1.

On the write side, we just have a "differential" push/pull line driver, fed by a Bit on the write data bus D0..7w (high_active).
The driver outputs are enabled when RAM_W is high, during PHI1=0 (what is different from "PHI2=1"),
setting the RAM_ROW and RAM_ROW# signals of the selected row of RAM cells through the two 4:1 multiplexers.
;
PHI1 and PHI2 are not overlapping, the line driver outputs are enabled during PHI1=0,
so that RAM_ROW and RAM_ROW# at the RAM cells are valid before the rising edge of PHI2.
//The RAM cells connect to RAM_ROW and RAM_ROW# during PHI2.

On the read side, we have a RS flipflop which is brought into a controlled state during PHI1,
and flipped (or not flipped) by the RAM_ROW# signals from the RAM cells during PHI2.
;
The side of the RS flipflop which is switched to GND during PHI1 goes through an inverter,
then into a two input NOR gate together with RAM# (low_active RAM enable signal which changes during PHI1).
The output of that NOR gate drives a FET which pulls a Bit on the read data bus to GND, and that's all.
;
To be more precise:
The output FET can't pull a Bit on the read data bus to GND during PHI1,
because the side of the RS flipflop that goes through an inverter into the NOR gate controlling the output FET
is switched to GND during PHI1.

Attachment:
6530_19_ram.png
6530_19_ram.png [ 331.24 KiB | Viewed 515 times ]


Top
 Profile  
Reply with quote  
 Post subject: Re: 6530 dissection
PostPosted: Thu Jul 29, 2021 11:31 am 
Offline
User avatar

Joined: Fri Nov 09, 2012 5:54 pm
Posts: 1397
20) ROM

6530 contains 1024 Bytes of mask programmed NOR ROM.

Attachment:
si6530_20_rom.png
si6530_20_rom.png [ 648.89 KiB | Viewed 515 times ]


From North to South,
we have the ROM address decoder, the column select signal drivers, then the ROM cells,
then the FETs which discharge the colum select signals by switching them to GND during PHI1.

;---

Attachment:
si6530_20_rom_column_decoder.png
si6530_20_rom_column_decoder.png [ 111.97 KiB | Viewed 515 times ]


North in the ROM block, the column address decoder is fed by A0..5i (A0..5i# respectively).
It's a PLA like structure of 64 six input NOR gates.
Note, that the pullup resistor for every NOR gate is not tied to VCC directly, but only during PHI1.
To be more precise, we have FET switches controlled by PHI1, and the impedance of the FETs is working as a resistor.
//From West to East, the NOR gates check from 000000 to 111111, it's linear.

South from the column address decoder, we have the column control signal drivers:
64 transparent latches, sampling the outputs of said NOR gates during PHI2,
control 64 FET switches, which connect one of the sixteen column select signals to PHI2.
Means, only one column select signal is active at a time.

At the Southern corner of the ROM block, we have FETs switching all of the column select lines to GND during PHI1.

//The game isn't much different from what we had in the RAM block so far.

;---

ROM cells are organized in eight parts, for D0..D7,
starting with D0 South of the column control signal drivers, followed by D1, and so on.

In each of the eight D0..D7 ROM cell areas, we have 16 mask programmed NOR gates, one gate per row,
with up to 64 inputs each (which connect to the high_active column select signals).
Mask programmed means, that an input transistor of the NOR gate connecting to one of the 64 column select signals
is present or missing.

Mask programming was done by changes in the diffusion layer, like in "12) PLA".

If the transistor in a NOR gate connecting to a column select signal is present,
said NOR gate emits 0 when the column select signal goes active (high) during PHI2.

Transistor present: Data Bit is 1.
Transistor missing: Data Bit is 0.

Attachment:
si6530_20_rom_cells.png
si6530_20_rom_cells.png [ 16.65 KiB | Viewed 515 times ]


Like in the column address decoder, the (up to) 64 input NOR gates don't have a pullup resistor
which is tied to VCC directly/permanently, but only during PHI1.
To be more precise, we have 8*16 = 64 FET switches controlled by PHI1,
the row precharge FETs, and the impedance of the FETs is working as a resistor.

If you take a closer look at the PLA like structure of the column address decoder,
and rotate it by 90 degrees clockwise, it looks pretty much like the ROM cells, doesn't it ?

;---

Attachment:
si6530_20_rom_row_decoder.png
si6530_20_rom_row_decoder.png [ 87.03 KiB | Viewed 515 times ]


East of the column decoder plus drivers, we have the row decoders plus drivers,
and except that they are fed with A6..8i (A6..8i# respectively),
conceptually they are not much different from the column decoders plus drivers.

They control two 8:1 multiplexers West of the ROM NOR gates per Data Bit.
Each of the 8:1 multiplexer inputs is fed by the outputs of 8 ROM NOR gates.

The outputs of the two multiplexers go into another 2:1 mutiplexer controlled by A9i (and A9i# respectively),
which then gives the signal to a read buffer for every Bit on the data bus.

Note:
The multiplexer for the second 8 rows of NOR gates has the inputs in reversed order.
From North to south, the selection of ROM NOR gates according to A6..9i actually is:
0000 up to 0111, and then 1111 down to 1000.

;---

Attachment:
si6530_20_rom_mux_buffer.png
si6530_20_rom_mux_buffer.png [ 140.8 KiB | Viewed 515 times ]


Now for the ROM read buffers.

The game is very similar to the read buffers in the RAM.

Outputs of the two 8:1 multiplexer and the 2:1 multiplexer are precharged by FET switches
(with some impedance to make them work as pullup resistors) during PHI1.

Again, we have a RS flipflop which is brought into a controlled state during PHI1,
and flipped (or not flipped) by the output of the 2:1 multiplexer during PHI2.
;
The side of the RS flipflop which is switched to GND during PHI1 goes through an inverter,
then into a two input NOR gate together with ROM# (low_active ROM enable signal which changes during PHI1).
The output of that NOR gate drives a FET which pulls a Bit on the read data bus to GND, and that's all.
;
To be more precise:
The output FET can't pull a Bit on the read data bus to GND during PHI1,
because the side of the RS flipflop that goes through an inverter into the NOR gate controlling the output FET
is switched to GND during PHI1.

;---

Just one more word about the output FETs of the RAM and the ROM, switching the read data bus to GND.

It's an incredibly compact design, and for most of the Bits on the read data bus,
the output FETs of the RAM and the ROM are close together, forming a big NOR gate.

Attachment:
si6530_20_rom_d0_nor.png
si6530_20_rom_d0_nor.png [ 10.2 KiB | Viewed 515 times ]


;---

Attachment:
6530_20_rom.png
6530_20_rom.png [ 219.22 KiB | Viewed 515 times ]


Top
 Profile  
Reply with quote  
 Post subject: Re: 6530 dissection
PostPosted: Thu Jul 29, 2021 11:32 am 
Offline
User avatar

Joined: Fri Nov 09, 2012 5:54 pm
Posts: 1397
That's all for now,
and 8726 is next.

;---

Bill Mensch wrote:
I would be happy to contribute some commentary concerning the creation of the 6530 at MOS.

What are you interested in other than it was the second chip for the combination of the 6502 for use in control systems.
The KIM-1 was a reference design/use case for bothe the 6502 and the 6530, actually two of them.
One 6530 was for the “Teletype Input Monitor (TIM)” and the other one was for the “Keypad Input Monitor (KIM)”.

It was first demonstrated along with the 6501/6502 at the WESCON ’75.
The 6502 and 6530 were ment to compete with the $29 Intel 4040 two chip controller combo.

The actual design was important for the introduction of the 6502.
I and a team of three mask designers Harry Bawcom, Mike Jaynes and Sid Holdt created the 6530.
The timer design was patented and used on the 6530, 6531 and 6532 chips.

Chuck Peddle and Wil Mathys contributed the system level applications concepts and requested the features.
We were a small team. I was the semiconductor design and architect engineer.
The 6530 followed many of the design concepts of the 6820/6520/6821/6520 concepts for IO and interrupt features.

The 6522 followed the 6520/6530/6532 designs at MOS.

Ray Hirt was the project lead on the 6532.
The 6532 RIOT design was basically to remove the ROM and add another 64 bytes of RAM for a total of 128 bytes.
I was the microprocessor design manager at this time replacing Rod Orgill who had left MOS to work at NCR in Colorado Springs, CO.
Rod didn’t work on any of the IO chips, just the 6501/6502.

Ray, Rod, sometimes Wil and I shared many a pitcher of beer at many lunches after the 6502 and 6530/32 were completed before Rod left for Colorado.
These are fond memories of my time at MOS.

Let me know if you have any questions.

Best,
-Bill


Last edited by ttlworks on Tue Oct 12, 2021 7:16 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: 6530 dissection
PostPosted: Thu Jul 29, 2021 12:05 pm 
Offline

Joined: Thu Jul 20, 2017 9:58 am
Posts: 91
In order to keep the tradition I'm the first one to reply... :)

After the dissection of the previous chips I never expected that raising the bar is possible.
But Dieter (ttlworks) proved me wrong once again: I'm deeply impressed by the
accuracy of the (ttl)works... and even more by the SPEED this was done.

Just as a side note: I started stitiching the chip on May, 5th 2021 and finished the last
polygons on June, 24th... in other words: ~4-5 weeks later the 6530 is not
hiding anything secret anymore. :D


Top
 Profile  
Reply with quote  
 Post subject: Re: 6530 dissection
PostPosted: Thu Jul 29, 2021 12:07 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10832
Location: England
Bravo!

It's a nice touch, the custom address decoding. And the die shows the roughly equal costs of a little bit of RAM and a fair bit of ROM, which is very notable. I'd assume the chip is about the same size as a 6502 family MPU too?

Interesting that the ROM is programmable in diffusion: quite possibly that's the most dense choice, and therefore the most economic, and the only way to get so much ROM on a chip. But diffusion involves the earliest steps of the fabrication process, so it has the longest lead-time for changes.


Top
 Profile  
Reply with quote  
 Post subject: Re: 6530 dissection
PostPosted: Mon Aug 02, 2021 2:52 pm 
Offline

Joined: Fri Mar 31, 2017 5:10 pm
Posts: 8
Location: Paris, France
I for one welcome more Solicon prön.


Top
 Profile  
Reply with quote  
 Post subject: Re: 6530 dissection
PostPosted: Tue Aug 03, 2021 7:56 am 
Offline

Joined: Thu Jul 20, 2017 9:58 am
Posts: 91
whygee wrote:
I for one welcome more Solicon prön.


Stay tuned! More to come... if time permits.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 28 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: J64C and 31 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: