Previous Thread
Next Thread
Print Thread
Page 2 of 3 1 2 3
Re: Didact [Re: Edstrom] #106805
08/10/16 01:28 PM
08/10/16 01:28 PM
Joined: Mar 2001
Posts: 16,163
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,163
USA
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
08/10/16 02:55 PM
Joined: Aug 2015
Posts: 375
Edstrom Offline OP
Senior Member
Edstrom  Offline OP
Senior Member
Joined: Aug 2015
Posts: 375
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
08/10/16 07:32 PM
Joined: Mar 2006
Posts: 1,029
PA, USA
L
Lord Nightmare Offline
Very Senior Member
Lord Nightmare  Offline
Very Senior Member
L
Joined: Mar 2006
Posts: 1,029
PA, USA
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
08/10/16 10:18 PM
Joined: Aug 2015
Posts: 375
Edstrom Offline OP
Senior Member
Edstrom  Offline OP
Senior Member
Joined: Aug 2015
Posts: 375
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
08/11/16 12:56 AM
Joined: Mar 2001
Posts: 16,163
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,163
USA
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
08/11/16 03:13 PM
Joined: Jan 2011
Posts: 180
A
Al Kossow Offline
Senior Member
Al Kossow  Offline
Senior Member
A
Joined: Jan 2011
Posts: 180
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
08/11/16 03:26 PM
Joined: Mar 2001
Posts: 16,163
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,163
USA
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
08/11/16 03:33 PM
Joined: Aug 2015
Posts: 375
Edstrom Offline OP
Senior Member
Edstrom  Offline OP
Senior Member
Joined: Aug 2015
Posts: 375
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
08/11/16 03:56 PM
Joined: Jan 2011
Posts: 180
A
Al Kossow Offline
Senior Member
Al Kossow  Offline
Senior Member
A
Joined: Jan 2011
Posts: 180
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
08/11/16 04:49 PM
Joined: Aug 2015
Posts: 375
Edstrom Offline OP
Senior Member
Edstrom  Offline OP
Senior Member
Joined: Aug 2015
Posts: 375
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
1 registered members (nerd4gw), 146 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,645
Posts113,189
Members4,842
Most Online324
Dec 20th, 2018
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.033s Queries: 14 (0.012s) Memory: 5.7233 MB (Peak: 5.9475 MB) Zlib enabled. Server Time: 2019-04-20 04:47:13 UTC