Previous Thread
Next Thread
Print Thread
Page 2 of 3 1 2 3
Re: Didact [Re: Edstrom] #106805 08/10/16 01:28 PM
Joined: Mar 2001
Posts: 16,277
R
R. Belmont Online Content
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,277
In real life I can't imagine a read of both of them simultaneously would do anything useful; there'd be a bus fight that would potentially damage one of the PIAs.

Re: Didact [Re: Edstrom] #106806 08/10/16 02:55 PM
Joined: Aug 2015
Posts: 378
Edstrom Offline OP
Senior Member
OP Offline
Senior Member
Joined: Aug 2015
Posts: 378
Yeah, you are probably right, I haven't seen a dual device read so far and since the second PIA is optional it is unlikely that the rom code does it. However, just to be accurate I will split out the reads and log an error if it occurs, eg that both A4 and A3 are high in a read operation.

Re: Didact [Re: Edstrom] #106810 08/10/16 07:32 PM
Joined: Mar 2006
Posts: 1,029
L
Lord Nightmare Offline
Very Senior Member
Offline
Very Senior Member
L
Joined: Mar 2006
Posts: 1,029
The IAI Swyft does almost exactly the same thing with two PIAs, they use an address line each for /CS so it is possible to enable both at once and 'bad things' will happen.


"When life gives you zombies... *CHA-CHIK!* ...you make zombie-ade!"
Re: Didact [Re: Edstrom] #106811 08/10/16 10:18 PM
Joined: Aug 2015
Posts: 378
Edstrom Offline OP
Senior Member
OP Offline
Senior Member
Joined: Aug 2015
Posts: 378
According to the debugger two overlapping writes are both executed as are the reads, so I let the writes work with the default behavior of MAME while I made a board specific read driver to catch an eventual dual, or even zero, device read. So far nothing that 'bad', lets see what happens when add the keyboard to the PIA.

Re: Didact [Re: Edstrom] #106812 08/11/16 12:56 AM
Joined: Mar 2001
Posts: 16,277
R
R. Belmont Online Content
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,277
Overlapping writes are fine, since only one thing's driving the bus in that case.

Re: Didact [Re: Lord Nightmare] #106816 08/11/16 03:13 PM
Joined: Jan 2011
Posts: 192
A
Al Kossow Offline
Senior Member
Offline
Senior Member
A
Joined: Jan 2011
Posts: 192
Originally Posted By Lord Nightmare
The IAI Swyft does almost exactly the same thing with two PIAs, they use an address line each for /CS so it is possible to enable both at once and 'bad things' will happen.


sounds like something you might want to watch for in a driver debug mode

Re: Didact [Re: Edstrom] #106817 08/11/16 03:26 PM
Joined: Mar 2001
Posts: 16,277
R
R. Belmont Online Content
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,277
Yeah, a logerror() would be nice in case the original programmers did something wrong and are getting away with it by accident.

Re: Didact [Re: Edstrom] #106818 08/11/16 03:33 PM
Joined: Aug 2015
Posts: 378
Edstrom Offline OP
Senior Member
OP Offline
Senior Member
Joined: Aug 2015
Posts: 378
I use logerror if that happens, it hasn't so far. I couldn't see that the Swyft driver detects it but is isn't fatal in an emulator of course unless we have a smoke_callback() to the UI that is...

hmm, maybe if we emulated the heat generated from the system and compared that to the known cooling factor of the system and the room temperature we can generate smoke or boil emulated eggs on the Pentiums one day...

In any case, the logerror() of this multi device reads is just a curiosity which can reveal rom programming errors and of course driver programming errors, so it is kind of fun/useful I think.

Re: Didact [Re: Edstrom] #106819 08/11/16 03:56 PM
Joined: Jan 2011
Posts: 192
A
Al Kossow Offline
Senior Member
Offline
Senior Member
A
Joined: Jan 2011
Posts: 192
Originally Posted By Edstrom

In any case, the logerror() of this multi device reads is just a curiosity which can reveal rom programming errors and of course driver programming errors, so it is kind of fun/useful I think.


I think it would be helpful for people writing new code for a platform.

Re: Didact [Re: Edstrom] #106820 08/11/16 04:49 PM
Joined: Aug 2015
Posts: 378
Edstrom Offline OP
Senior Member
OP Offline
Senior Member
Joined: Aug 2015
Posts: 378
Absolutely, especially in this case since the PIA:s was intended to be the students play ground with lab expansion boards and such

Page 2 of 3 1 2 3

Who's Online Now
4 registered members (TSCHAK, nerd4gw, zino, R. Belmont), 147 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,675
Posts113,814
Members4,859
Most Online418
Aug 14th, 2019
Powered by UBB.threads™ PHP Forum Software 7.7.3