Page 1 of 1

Q: Working of storage unit(1 bit register)? Diagram included

Posted: Tue Jan 29, 2013 3:43 am
by cerebrum
The following is a 1 bit register that appears many times in the 6502.

Image

Warning the 4-way crossing in the middle is not connected, see viewtopic.php?f=1&t=2415&p=24175#p24175

The working of this is explained in the following pdf:

http://www.downloads.reactivemicro.com/ ... 20v1.0.pdf

I understood that the feedback cycle is only active when Cp2(phi2) is on. But when phi2 is down and the cpu is not writing to the register the feedback cycle is interrupted and the result should be that the stored bit will immediately become 0. Or is there a timing issue here in that phi2 will be down only a very short time, not enough for the feedback cycle to "notice"?

Re: Q: Working of storage unit(1 bit register)? Diagram incl

Posted: Tue Jan 29, 2013 8:40 am
by BigEd
Because the two gates are inverting each other's output, the circuit is bistable even with feedback on - it doesn't collapse to '0'

But, in the presence of feedback, to write into such a cell you need a strong drive on both true and false bitlines: this is what AMD's 8085 does in the register file. So, interrupting the feedback during not-phi2 allows a single-ended write signal.

Cheers
Ed

Re: Q: Working of storage unit(1 bit register)? Diagram incl

Posted: Tue Jan 29, 2013 9:35 am
by Arlet
I think the question is: why is the storage of the bit retained, even when phi2 is not high ? The answer is that the phi2 is only '0' for a short period, and as long as the 'write' signal is not asserted, the stray capacitance of the transistors holds the value. That's why the NMOS 6502 has a minimum clock frequency. If you would keep the phi2=0 for a longer time, the charge would leak away and the storage element could flip.

Re: Q: Working of storage unit(1 bit register)? Diagram incl

Posted: Tue Jan 29, 2013 7:02 pm
by BigEd
Ah, sorry, you're quite right. I think we guessed at a timescale of some microseconds before there's a significant danger of charge leakage.

Re: Q: Working of storage unit(1 bit register)? Diagram incl

Posted: Tue Jan 29, 2013 8:05 pm
by cerebrum
Yep, Arlet that was the answer I was looking for.