65SPI
Re: 65SPI
Yes, I'm letting the fitter set the pin assignments. I know from past experience with the Xilinx chips to let the fitter do that initially. Then its possible to adjust them in small increments if desired.
My state machine clock was the source of the errors. It was also defined towards the bottom of the source. I ended up defining the clock logic as a node and then reference the node as the clock source and that seemed to work better. I'm not sure why that was needed because clock sources can be derived from a product term.
Anyway, I'm happy that the source compiles now and am verifying all the logic has been properly translated.
Thanks all for your support.
Daryl
My state machine clock was the source of the errors. It was also defined towards the bottom of the source. I ended up defining the clock logic as a node and then reference the node as the clock source and that seemed to work better. I'm not sure why that was needed because clock sources can be derived from a product term.
Anyway, I'm happy that the source compiles now and am verifying all the logic has been properly translated.
Thanks all for your support.
Daryl
Please visit my website -> https://sbc.rictor.org/
Re: 65SPI
I have gone over the fitter report and I believe all is behaving as it should.
My next step will be to get an actual ATF1504 programmed and tested. That may take some time as my free time is very limited these days.
I am posting the source and fitter file for those who may want to give it a try, or at least look it over.
Thanks!
Daryl
My next step will be to get an actual ATF1504 programmed and tested. That may take some time as my free time is very limited these days.
I am posting the source and fitter file for those who may want to give it a try, or at least look it over.
Thanks!
Daryl
- Attachments
-
- SPI6502fit.txt
- (27.02 KiB) Downloaded 300 times
-
- SPI6502pld.txt
- (9.04 KiB) Downloaded 305 times
Please visit my website -> https://sbc.rictor.org/
Re: 65SPI
Forgive me, I am apparently being dense, but I am having trouble understanding the relationship between and .
I am working on a W65C265 project, I have done a few in the past, but this time I need SPI support. I have programmed a XC9572XL to be a 65SPI. The interface makes sense, except for what to do with and .
I am using CS1B on the '265 to map the the 65SPI into the address range of (00)DFC0-(00)DFFF, but are and mirrors of each other, or do I pick which I want to use, or is it something completely else.
I can't find any schematics that show its use that have those pins named in the schematic.
As I say, I am sure I am just being dense, but could anyone clarify this for me?
Code: Select all
CS1Code: Select all
/CS2I am working on a W65C265 project, I have done a few in the past, but this time I need SPI support. I have programmed a XC9572XL to be a 65SPI. The interface makes sense, except for what to do with
Code: Select all
CS1Code: Select all
/CS2I am using CS1B on the '265 to map the the 65SPI into the address range of (00)DFC0-(00)DFFF, but are
Code: Select all
CS1Code: Select all
/CS2I can't find any schematics that show its use that have those pins named in the schematic.
As I say, I am sure I am just being dense, but could anyone clarify this for me?
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: 65SPI
Having two chip selects often makes address decoding simpler and potentially faster (with fewer cascaded gates), and having one be positive logic and one be negative logic often helps too. This is common with 65xx I/O ICs. Take advantage and use them both.
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
Re: 65SPI
jockm wrote:
do I pick which I want to use, or is it something completely else.
In a simple scenario you might choose not to use CS1 (permanently tying it high instead), and drive /CS2 from a suitable address decoder. Or, you might tie /CS2 low, and drive CS1 from a suitable decoder. In other scenarios you might wish to actively use both, as Garth suggests.
-- Jeff
ps- welcome, jockm !
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
https://laughtonelectronics.com/Arcana/ ... mmary.html
Re: 65SPI
There's a table at the bottom of page 2 in the manual titled "Register Address Map" showing the CS relationship. As Garth said, many 65xx IO chips used that configuration so I implemented on my design as well.
Daryl
Daryl
Please visit my website -> https://sbc.rictor.org/
Re: 65SPI
Dr Jefyll wrote:
jockm wrote:
do I pick which I want to use, or is it something completely else.
Last edited by jockm on Tue Mar 12, 2019 4:55 am, edited 1 time in total.
Re: 65SPI
8BIT wrote:
I have gone over the fitter report and I believe all is behaving as it should.
My next step will be to get an actual ATF1504 programmed and tested. That may take some time as my free time is very limited these days.
I am posting the source and fitter file for those who may want to give it a try, or at least look it over.
Thanks!
Daryl
My next step will be to get an actual ATF1504 programmed and tested. That may take some time as my free time is very limited these days.
I am posting the source and fitter file for those who may want to give it a try, or at least look it over.
Thanks!
Daryl
I'd be interested in any feedback.
thanks!
Daryl
Please visit my website -> https://sbc.rictor.org/
Re: 65SPI
8BIT wrote:
There's a table at the bottom of page 2 in the manual titled "Register Address Map" showing the CS relationship. As Garth said, many 65xx IO chips used that configuration so I implemented on my design as well.
Re: 65SPI
jockm wrote:
Yeah for whatever reason I just wasn't seeing it. Brain got hung up on the slightly different naming (/ vs B) for no good reason and I couldn't see past it. The fog has lifted
Daryl
Please visit my website -> https://sbc.rictor.org/
Re: 65SPI
jockm wrote:
Awesome, thank you. Everything has clicked into place now
Quote:
I am working on a W65C265 project
Re: 65SPI
Hi Daryl,
I downloaded the PLD and was puzzled about the error message
When I checked the file I found that you are using the "NODE" as opposed to the "PINNODE" statement for burried cells. After replacing them it now compiles without
error messages
I'm planning to integrate it into one of my 6502SBCs, but not too soon as I'm still very busy with other projects (I'm looking for a SPI interface for my PDP-11, which is the reason I took a look at your code)
In any case thanks a lot for sharing and migrating your code to the still available 5-volts CPLD.
Peter
I downloaded the PLD and was puzzled about the error message
Code: Select all
---------------------------------------------------------
Fitter_Pass 1, Preassign = KEEP, LOGIC_DOUBLING : OFF
...
## ERROR : Bad user pin assignement : 68
## ERROR : Bad user pin assignement
---------------------------------------------------------error messages
Code: Select all
PINNODE = [si0..7]; /* shift in data reg */
PINNODE = [so0..7]; /* shift out data reg */
PINNODE = [st0..4]; /* SPI state counter */
PINNODE = TMO; /* SPI Enable reg */
PINNODE = IER; /* int enable reg */
PINNODE = BSY; /* busy flag reg */
PINNODE = CPOL; /* Clock polarity reg */
PINNODE = CPHA; /* Clock Phase reg */
PINNODE = INT; /* FIN/INT register */
PINNODE = ECE; /* Ext Clk Enable */
PINNODE = CKSEL; /* Int/EXT Clk sel */
PINNODE = RMODE; /* Read only Mode */
PINNODE = STCLK; /* State machine clock */
In any case thanks a lot for sharing and migrating your code to the still available 5-volts CPLD.
Peter
Re: 65SPI
Hi Peter,
Thanks for the recommendation. I'll give that change a try.
As far as I know, you will be the first to put this code to test. I never got around to buying parts to test it. I'll be interested in hearing your progress.
Thanks!
Daryl
Thanks for the recommendation. I'll give that change a try.
As far as I know, you will be the first to put this code to test. I never got around to buying parts to test it. I'll be interested in hearing your progress.
Thanks!
Daryl
Please visit my website -> https://sbc.rictor.org/
-
DerTrueForce
- Posts: 483
- Joined: 04 Jun 2016
- Location: Australia
Re: 65SPI
The 65SPI was originally implemented on a no-longer-produced CPLD. It's not really possible to do that.
The new one is just the old one that's been adapted, and it's probably already fine. As I understand it, it's just that nobody has tested it in a currently-available CPLD like the ATF1504.
The new one is just the old one that's been adapted, and it's probably already fine. As I understand it, it's just that nobody has tested it in a currently-available CPLD like the ATF1504.