6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 10, 2024 8:40 pm

All times are UTC




Post new topic Reply to topic  [ 83 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6
Author Message
 Post subject: Re: Dual port ram
PostPosted: Mon Jan 16, 2017 6:49 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10977
Location: England
(Ah, of course, yes, you have a need to share a slow peripheral too. So indeed, normally you'd generate both the fast and slow clocks from the same circuit, so you know the phase relationships and can switch or stretch. It's tricky to do this safely, but it's something which has often been done.)

It would be great to see a block diagram! A picture being worth a thousand words.


Top
 Profile  
Reply with quote  
 Post subject: Re: Dual port ram
PostPosted: Mon Jan 16, 2017 8:18 pm 
Offline

Joined: Wed Dec 21, 2016 9:26 pm
Posts: 81
I actually need to update my block diagram.

The final design will probably have either a CPLD or a FPGA, but I have no experience with those. The initial proof of concept (on protoboard) may end up using simple logic gates. But I need to have a good block diagram to lay that out.

It look like I've gotten a few good ideas from this discussion so far. I guess for me to go much further the rough logic diagram must be completed. That will take its own thread. In the mean time I think I'm pretty close to both confirming that the dual port RAM will in fact work and does in fact solve problems without introducing any new problems that aren't easily resolved.

_________________
I am working on building a 65816 based computer (for personal use)

Eventual goals include:
65816 CPU up to 14-16 MHz (In Turbo Mode)
up to 16MB RAM (512K on the main board)
Dual YM3438 audio
IEC serial device support


Top
 Profile  
Reply with quote  
 Post subject: Re: Dual port ram
PostPosted: Tue Jan 17, 2017 8:28 am 
Offline
User avatar

Joined: Sat Dec 07, 2013 4:32 pm
Posts: 246
Location: The Kettle Moraine
It will be interesting to see if you run into problems using P6 and P7. I've seen examples of software that assumes the unused bits should be 1 and some that assumes they should be 0. But that situation may be as rare as using the unsupported opcodes.


Top
 Profile  
Reply with quote  
 Post subject: Re: Dual port ram
PostPosted: Tue Jan 17, 2017 1:19 pm 
Offline

Joined: Wed Dec 21, 2016 9:26 pm
Posts: 81
KC9UDX wrote:
It will be interesting to see if you run into problems using P6 and P7. I've seen examples of software that assumes the unused bits should be 1 and some that assumes they should be 0. But that situation may be as rare as using the unsupported opcodes.


Officially according to Commodore, just like any register where you change selected bits, you should OR or XOR to change only the ones you want and leave the others untouched. How many programmers follow this convention? I don't know. Obviously such software could cause unexpected behavior.

As far as unsupported opcodes, they are very common in the demo scene. But if something doesn't work, I won't run it. Or I'll have to try my hand at patching it. ;)

_________________
I am working on building a 65816 based computer (for personal use)

Eventual goals include:
65816 CPU up to 14-16 MHz (In Turbo Mode)
up to 16MB RAM (512K on the main board)
Dual YM3438 audio
IEC serial device support


Last edited by KhanTyranitar on Wed Jan 18, 2017 8:25 pm, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Dual port ram
PostPosted: Wed Jan 18, 2017 8:03 pm 
Offline

Joined: Wed Dec 21, 2016 9:26 pm
Posts: 81
Related question. In an application where there is only 4 data lines (yeah, 4 bit) can I use an 8 bit chip? Will that represent a problem? I would assume that I only connect the 4 low byte lines.
My reason for asking is that apparently Commodore installed a 1k 4 bit RAM as the Color RAM in a C64. But in my design, assuming the 4bit limitation doesn't present a problem, can I use 8 bit RAM instead? Or is there a technical reason it won't work?

_________________
I am working on building a 65816 based computer (for personal use)

Eventual goals include:
65816 CPU up to 14-16 MHz (In Turbo Mode)
up to 16MB RAM (512K on the main board)
Dual YM3438 audio
IEC serial device support


Top
 Profile  
Reply with quote  
 Post subject: Re: Dual port ram
PostPosted: Wed Jan 18, 2017 9:29 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8481
Location: Midwestern USA
KhanTyranitar wrote:
Related question. In an application where there is only 4 data lines (yeah, 4 bit) can I use an 8 bit chip? Will that represent a problem? I would assume that I only connect the 4 low byte lines.
My reason for asking is that apparently Commodore installed a 1k 4 bit RAM as the Color RAM in a C64. But in my design, assuming the 4bit limitation doesn't present a problem, can I use 8 bit RAM instead? Or is there a technical reason it won't work?

You would connect the unused data bits to ground. You don't want them to be floating.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: Dual port ram
PostPosted: Wed Jan 18, 2017 9:55 pm 
Offline

Joined: Wed Dec 21, 2016 9:26 pm
Posts: 81
BigDumbDinosaur wrote:
KhanTyranitar wrote:
Related question. In an application where there is only 4 data lines (yeah, 4 bit) can I use an 8 bit chip? Will that represent a problem? I would assume that I only connect the 4 low byte lines.
My reason for asking is that apparently Commodore installed a 1k 4 bit RAM as the Color RAM in a C64. But in my design, assuming the 4bit limitation doesn't present a problem, can I use 8 bit RAM instead? Or is there a technical reason it won't work?

You would connect the unused data bits to ground. You don't want them to be floating.


Ok thanks.

_________________
I am working on building a 65816 based computer (for personal use)

Eventual goals include:
65816 CPU up to 14-16 MHz (In Turbo Mode)
up to 16MB RAM (512K on the main board)
Dual YM3438 audio
IEC serial device support


Top
 Profile  
Reply with quote  
 Post subject: Re: Dual port ram
PostPosted: Wed Jan 18, 2017 10:02 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10977
Location: England
Strictly it feels like you should connect through resistors, because they are bidirectional signals. Although in practice there might be no issue - the circuit writes zeros and reads them back. But it will eagerly be reading before any writes have been done.


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

All times are UTC


Who is online

Users browsing this forum: John West, W3C [Validator] and 15 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: