Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > NMI delay
2024-02-13 22:34
JackAsser

Registered: Jun 2002
Posts: 1989
NMI delay

How much is an NMI delayed if triggered during IRQ-setup?
 
... 45 posts hidden. Click here to view all posts....
 
2024-02-15 03:24
Martin Piper

Registered: Nov 2007
Posts: 634
Quote: Incomplete logic is not what defines a PLA. Removing "don't care" gates and logic from digital circuits is basically done everywhere, always (And the guys at MOS were really good at this, no doubt).

If you really want to pull the ancient TI terminology - even that doesn't apply. This refers to a standard component that can be customized by the customer. This is not the case for the 6502 either. The "custom chip" on the later AR5 hardware would be one for which this is the correct term, for example (iirc they coined yet another, different, term for this particular IC, because marketing reasons. Forgot what it was).

But what do i know. You are the expert.

(And yes, as soon as someone has to resort to calling names, you can be sure you have to take him serious. for real)


Again incorrect.

https://en.wikipedia.org/wiki/Programmable_logic_array

"A programmable logic array (PLA) is a kind of programmable logic device used to implement combinational logic circuits. "

It does not have to be programmable or customisable by the customer either. A mask programmed part is still a PLA, just like the one in the 6502.


Your incorrect statements are not supported by anything.
2024-02-15 03:37
chatGPZ

Registered: Dec 2001
Posts: 11116
You are so right Martin. Thanks.
2024-02-15 03:54
ChristopherJam

Registered: Aug 2004
Posts: 1378
Martin, the very page you keep linking to opens by saying that "A programmable logic array (PLA) is a kind of programmable logic device," with the last three words linking to a page that states in the first paragraph that "the function of a PLD is undefined at the time of manufacture."

The incomplete address decoding is entirely tangential to post manufacture programmability. You're correct in saying that it's not a ROM, but you're wrong about saying it's programmable.
2024-02-15 04:02
Martin Piper

Registered: Nov 2007
Posts: 634
Quote: Martin, the very page you keep linking to opens by saying that "A programmable logic array (PLA) is a kind of programmable logic device," with the last three words linking to a page that states in the first paragraph that "the function of a PLD is undefined at the time of manufacture."

The incomplete address decoding is entirely tangential to post manufacture programmability. You're correct in saying that it's not a ROM, but you're wrong about saying it's programmable.


And can be mask programmable... "MOS Technology / Commodore Semiconductor Group began producing a **mask-programmed PLA**"


That's the important bit along with how the actual gates are on the chip. The gates for that part of the 6502 are very clearly documented in multiple sources as a PLA. "the original **6502 chip contained a PLA** to direct various operations of the processor"
2024-02-15 04:46
Martin Piper

Registered: Nov 2007
Posts: 634
"MOS 906114-01. This was a **mask programmable** NMOS clone of the 82S100."


"PLA pinout
The PLAs used in the C64 ... not connected internally **for mask programmable parts**."

https://skoe.de/docs/c64-dissected/pla/c64_pla_dissected_a4ds.p..
2024-02-15 05:04
Martin Piper

Registered: Nov 2007
Posts: 634
"the PLA may also be **mask-programmable** or field programmable. For a mask-programmable PLA, the user must submit a PLA program table to the manufacturer to produce a custom made PLA that has the required internal paths between inputs and outputs."

https://www.globalspec.com/reference/4274/348308/section-6-4-pr..


This rather proves the point that a PLA can be mask or field programmed.
2024-02-15 07:04
JackAsser

Registered: Jun 2002
Posts: 1989
Guys. Start a new thread about that and please stay on topic.
2024-02-15 08:33
Martin Piper

Registered: Nov 2007
Posts: 634
So specifically relevant to the timing of NMI in the instruction cycle. You can trace each cycle and see how the PLA decoding is affected. For example:

Click here: http://www.visual6502.org/JSSim/expert.html?nosim=t&panx=111.6&..

It will zoom into the top left portion of the 6502, the top left pad is NMI and just underneath and to the right is the PLA. The regular grid arrangement.

You can click the "Trace more" button a few times until "nmi" is displayed in the trace, or add "nmi" to the "Trace these too:" box.

Each click of the "forward" button will advance half a cycle.

Once the demo code is running, or your own edited code, you can open the javascript debugger and execute:

setLow('nmi');


This click "forward" a few frames, then use:

setHigh('nmi');


This will let you see how the NMI signal is intercepted and processed at the PLA level and precisely test this for every half cycle in any instruction you choose to do this for.

The debugger should show: Exec: BRK(T0) around the time it is reading fffa/fffb etc


You can also trigger IRQs with: setLow('irq'); setHigh('irq'); and test what happens with NMI timing when processing an IRQ.
2024-02-15 08:46
Martin Piper

Registered: Nov 2007
Posts: 634
And this help doc: https://www.nesdev.org/wiki/Visual6502wiki/JssimUserHelp

Has a nice useful section: set up some input pin transitions (Reset, IRQ, NMI, RDY)

Has this example URL which configures a NMI transition and updates the memory to allow for easily reproduced test cases with NMI and instruction timings, single stepping will show the same deterministic results each time and avoid having to do manual setup.

http://visual6502.org/JSSim/expert.html?graphics=f&loglevel=2&s..
2024-02-15 13:22
chatGPZ

Registered: Dec 2001
Posts: 11116
Quote:
the user must submit a PLA program table to the manufacturer to produce a custom made PLA

hear hear >_<
Previous - 1 | 2 | 3 | 4 | 5 | 6 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
cba
Scooby/G★P/Light
apprentix
MaD ][/Starship
Trurl/Extend
Didi/Laxity
Krill/Plush
psych
Guests online: 154
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Wafer Demo  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 MWS  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.046 sec.