6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 23, 2024 10:22 pm

All times are UTC




Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: Sun May 30, 2021 2:39 am 
Offline

Joined: Sun May 30, 2021 2:16 am
Posts: 375
Hi, all - just wanted to introduce myself. I recently became enamored with the 65c02 and it’s ilk, and I’ve been experimenting with the WDC chips now for several months. And, yes, I’ve been reading (but not trolling!) this forum with great interest. David G from WDC has been extremely helpful with getting me started, pointing me in the right direction (here), and I’ve really learned a lot from these fora.

Amongst other things, I’m working on implementing my first soft 65c02, and I’m using the Arlet 65c02 verilog model. I’m sure these are dumb questions but, here I go: regarding the reset, irq, nmi, and write enable signals... am I wrong to believe that the logic is inverted here? In other words, are reset, irq, nmi, and WE active POSITIVE signals in Arlet’s core? I’m slightly confused, especially regarding something so basic. I’m using the Digilent Cmod A7 and Cmod S7 to do this, so I have proper SRAM. Is it possible to use real async SRAM Witt Arlet’s 65c02 core?

Any help you guys can offer here would be greatly appreciated!

Jonathan


Top
 Profile  
Reply with quote  
PostPosted: Sun May 30, 2021 5:47 am 
Online
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
Welcome Jonathan!

Without making a definitive statement, I'd say it's quite possible that Arlet has chosen to use positive sense signals, for convenience or clarity or personal preference. As it's an open source core, that would be extremely easy to adjust. In fact I think it's common enough to make these adjustments at the interface, as you instantiate the core. You might be interested to look around here:
https://github.com/hoglet67/CoPro6502/b ... t.vhd#L180

And yes, I'm sure you can use async SRAM with Arlet's core. Again, you need a shim, or to make an adjustment, because the address and control signals will need to be presented in the same cycle that the data is captured, rather than the previous cycle. So, yes, but you need to do a little work.


Top
 Profile  
Reply with quote  
PostPosted: Sun May 30, 2021 3:10 pm 
Offline

Joined: Sun May 30, 2021 2:16 am
Posts: 375
Ed,

Thanks. I'm a verilog guy, but I get it - the author inverted the reset (RSTn_sync) and Write Enable (cpu_we_next) signals.

As an aside, I'm glad to hear from you, in particular. I've read many of your posts. However, looking at the (old) dates on many of the posts I've perused, I was deeply concerned that I'd come to the party way, WAY, too late to interact with anyone. I'm glad that's not the case. It seems that the 65xx ICs are alive and well in 2021.

Jonathan


Top
 Profile  
Reply with quote  
PostPosted: Sun May 30, 2021 5:32 pm 
Online
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
Never too late to the 6502 party!

There is a huge amount of previously posted material by now - even when I joined, there was a lot, and although I did read some backlog, I think I have not read everything.

Garth's primer is frequently mentioned, and rightly so, so do search for that and have a read.

And it's fine to resurrect old threads, if you are continuing the conversation. If going off on a tangent or a fork, make a new thread but link back to previous findings if you can.


Top
 Profile  
Reply with quote  
PostPosted: Sun May 30, 2021 5:48 pm 
Offline

Joined: Sun May 30, 2021 2:16 am
Posts: 375
BigEd wrote:
Never too late to the 6502 party!

There is a huge amount of previously posted material by now - even when I joined, there was a lot, and although I did read some backlog, I think I have not read everything.

Garth's primer is frequently mentioned, and rightly so, so do search for that and have a read.

And it's fine to resurrect old threads, if you are continuing the conversation. If going off on a tangent or a fork, make a new thread but link back to previous findings if you can.


Ed,

Thanks! Funny, but Garth's primer is the first "document," or guide, I read. I had the idea/desire to learn how computers actually worked, so it seemed natural to read up on how to build a 6502-based machine. I read Garth's "instructions," I watched some of Ben Eater's videos, and the rest is history. I've really gotten into it , now, so I wanted to join the conversation - and I'm glad that there IS a conversation. Plus, everyone has been friendly and helpful; I was pleasantly surprised when I got emails from names I recognized at WDC, etc., answering the questions I, a newbie, had. Now ... my dining room table is my engineering station (and it's Spring-Summer, so my family can eat outside). Kidding - sort of. This stuff is very addictive; I have a lot of ideas I want to try out.

Jonathan


Top
 Profile  
Reply with quote  
PostPosted: Sun May 30, 2021 9:48 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8513
Location: Midwestern USA
Jmstein7 wrote:
However, looking at the (old) dates on many of the posts I've perused, I was deeply concerned that I'd come to the party way, WAY, too late to interact with anyone. I'm glad that's not the case. It seems that the 65xx ICs are alive and well in 2021.

First off, welcome to the forum.

The 65xx family, especially in its present incarnation as the W65C02S and W65C816S (and peripheral hardware), seems to be as popular as ever, and the architecture continues to be used in a wide variety of products, including automotive and medical applications. WDC claims that several hundred million 65xx devices are produced annually—albeit mostly in ASICs, not as discrete devices, with an estimated 5-6 billion shipped to date. As I noted elsewhere around here, we think of x86 as ubiquitous, since it is the architecture of PCs and most modern servers. However, when it comes to ubiquity, the 65xx family appears to have x86 beat by a wide margin.

Fun fact, when my wife insisted we get a new microwave oven with more bells and whistles some years ago, I decided to disassemble the old one (and it was quite old) to examine its innards. Also, I wanted to steal the magnet off the magnetron tube—I was sure I'd find a use for it. Imagine my surprise in discovering a Rockwell 65C02 on the controller board. Those 65C02s just seem to pop up in odd places, eh? :D When I showed my discovery to my wife she just shrugged and said "whatever." Women (most of them, anyway) just don't seem to understand...

Incidentally, 6502.org's owner, Mike Naberezny, discovered a 65C02 in the instrument cluster of his automobile.

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


Top
 Profile  
Reply with quote  
PostPosted: Mon May 31, 2021 2:57 pm 
Offline

Joined: Sun May 30, 2021 2:16 am
Posts: 375
BigDumbDinosaur wrote:
Jmstein7 wrote:
However, looking at the (old) dates on many of the posts I've perused, I was deeply concerned that I'd come to the party way, WAY, too late to interact with anyone. I'm glad that's not the case. It seems that the 65xx ICs are alive and well in 2021.

First off, welcome to the forum.

The 65xx family, especially in its present incarnation as the W65C02S and W65C816S (and peripheral hardware), seems to be as popular as ever, and the architecture continues to be used in a wide variety of products, including automotive and medical applications. WDC claims that several hundred million 65xx devices are produced annually—albeit mostly in ASICs, not as discrete devices, with an estimated 5-6 billion shipped to date. As I noted elsewhere around here, we think of x86 as ubiquitous, since it is the architecture of PCs and most modern servers. However, when it comes to ubiquity, the 65xx family appears to have x86 beat by a wide margin.

Fun fact, when my wife insisted we get a new microwave oven with more bells and whistles some years ago, I decided to disassemble the old one (and it was quite old) to examine its innards. Also, I wanted to steal the magnet off the magnetron tube—I was sure I'd find a use for it. Imagine my surprise in discovering a Rockwell 65C02 on the controller board. Those 65C02s just seem to pop up in odd places, eh? :D When I showed my discovery to my wife she just shrugged and said "whatever." Women (most of them, anyway) just don't seem to understand...

Incidentally, 6502.org's owner, Mike Naberezny, discovered a 65C02 in the instrument cluster of his automobile.


Precisely. When I initially decided to purchase 65xx ICs, I was surprised how readily available they were - I really thought, in 2021, it would be a chore. I was wrong - they are everywhere. The 'c02, VIAs, ACIAs, even PIAs - easy. The only chip that was a little more scarce was the 'c816 - and by "scarce," I mean I could only find it at Mouser, but, even there, the stock is plentiful, so I grabbed two. The very first item I got, though, was the 'c02sxb, to learn how to start programming in assembly. A reference platform. However, there wasn't really much out there, discussion or code, specifically for that single board computer. That was a little surprising.

With the help of WDC, I also obtained a soft-core mensch rev-c (with the headers ON) - along with a brand-new break-out board they just released for it, the "MyMensch PRO Board". A brand new 65xx product in 2021 - mind boggling (that there is a new, contemporary, device based on a technology designed in the '70s). I don't know if you guys have seen it, but it is begging to be tinkered with by the experts.

Right now, I'm trying to get Arlet's 65c02 working on my cmods, but it's still outputting garbage. I'm using the "generic" core - I don't have a Spartan-6. What is throwing me somewhat is that there are two "ctrl.v" files - one in the main "generic" directory, one in its own folder (a larger file). There is no instruction as to which to use. The only difference is that the larger file doesn't seem to incorporate the microcode. Like I said initially, any help would be appreciated. I've also tried every setting for reset, irq, nmi, and rdy. Nada.


Top
 Profile  
Reply with quote  
PostPosted: Mon May 31, 2021 6:07 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8513
Location: Midwestern USA
Jmstein7 wrote:
Precisely. When I initially decided to purchase 65xx ICs, I was surprised how readily available they were - I really thought, in 2021, it would be a chore. I was wrong - they are everywhere. The 'c02, VIAs, ACIAs, even PIAs - easy. The only chip that was a little more scarce was the 'c816 - and by "scarce," I mean I could only find it at Mouser, but, even there, the stock is plentiful, so I grabbed two.

...which brings up a good time to caution you about the perils of buying (purportedly) new 65xx hardware through other than an authorized distributor.

We've had a few members led down a rabbit hole following the purchase of counterfeit 65C02s and 65C816s from eBay and various Chinese sources. The parts often look like the real McCoy but fail to work at all, or don't work as they should. In some cases, they have turned out to be remarked NMOS parts. We have a sticky topic on safe 65xx sources and what to look for in avoiding a bogus part. If you have doubts about what you are buying, page 10 of that topic has information directly from WDC on the permutations the 65C02 and 65C816 have gone through over the past 20+ years.

BTW, most here know about the WDC development boards—some have experimented with them. I prefer to build my contraptions from scratch, so I have not looked at them. :D

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


Top
 Profile  
Reply with quote  
PostPosted: Mon May 31, 2021 7:04 pm 
Offline

Joined: Sun May 30, 2021 2:16 am
Posts: 375
Agreed. I obtained my “MyMensch” parts directly from WDC (the FPGA stuff), and everything else is from Mouser or Jameco (but, mostly Mouser). (Un)shockingly, everyone I’ve dealt with at WDC, Mouser, and Jameco has been nice, pleasant, and extremely helpful. For example, Mouser had a big problem when Texas was hit with disaster a few months back, but they still managed to organize and ship out my order next-day, as promised upon my purchase. David Gray at WDC has been EXCEPTIONALLY helpful - he’s helping me, as needed, on an ongoing basis, helped me get my FPGA stuff from WDC (headers and all!) and even took it upon himself to ship it. Now THAT is extraordinary. He's sort of my 65xx Sherpa :D . So, yeah, in short - lol - I am following your advice and only dealing with trusted sources.


Top
 Profile  
Reply with quote  
PostPosted: Mon May 31, 2021 7:44 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8513
Location: Midwestern USA
Jmstein7 wrote:
Agreed. I obtained my “MyMensch” parts directly from WDC (the FPGA stuff), and everything else is from Mouser or Jameco (but, mostly Mouser).

I mostly purchase from Digi-Key and Mouser. I used to do more business with Jameco, but their shipping rates to my location have gotten excessive, and they rarely have anything I need that I can't get from the others more quickly and at lower cost.

Something I used to buy a lot of from Jameco were 27C256-55 EPROMs, which I use in my POC units. Alas, those have pretty much vanished from the marketplace. An NOS distributor I occasionally use has them, but wants about $30 per unit. When Jameco was selling them, they were about $3 each.

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


Top
 Profile  
Reply with quote  
PostPosted: Mon May 31, 2021 7:58 pm 
Offline

Joined: Sun May 30, 2021 2:16 am
Posts: 375
BigDumbDinosaur wrote:
Jmstein7 wrote:
Agreed. I obtained my “MyMensch” parts directly from WDC (the FPGA stuff), and everything else is from Mouser or Jameco (but, mostly Mouser).

I mostly purchase from Digi-Key and Mouser. I used to do more business with Jameco, but their shipping rates to my location have gotten excessive, and they rarely have anything I need that I can't get from the others more quickly and at lower cost.

Something I used to buy a lot of from Jameco were 27C256-55 EPROMs, which I use in my POC units. Alas, those have pretty much vanished from the marketplace. An NOS distributor I occasionally use has them, but wants about $30 per unit. When Jameco was selling them, they were about $3 each.


I need to look into that; my EEPROMs are AT28C256 knock-offs from Amazon. Crapola. Slow as molasses. I need to find some good, fast, reliable replacements.


Top
 Profile  
Reply with quote  
PostPosted: Mon May 31, 2021 8:12 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8513
Location: Midwestern USA
Jmstein7 wrote:
I need to look into that; my EEPROMs are AT28C256 knock-offs from Amazon. Crapola. Slow as molasses. I need to find some good, fast, reliable replacements.

There are no fast 28C256s. Microchip (formerly Atmel) EEPROMs are available from Digi-Key, which I seem to recall are rated at 120ns or 150ns. The EPROMs I have are twice as fast (55ns AMD parts), and I also have 45ns OTP parts (Atmel). I can run my POC V1.1 unit at 14 MHz using the OTP part...without wait-stating.

Something I plan to look at in the near future is in seeing how much trouble it would be to switch to more modern flash ROM.

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


Top
 Profile  
Reply with quote  
PostPosted: Mon May 31, 2021 10:34 pm 
Offline

Joined: Sun May 30, 2021 2:16 am
Posts: 375
BigDumbDinosaur wrote:
Jmstein7 wrote:
I need to look into that; my EEPROMs are AT28C256 knock-offs from Amazon. Crapola. Slow as molasses. I need to find some good, fast, reliable replacements.

There are no fast 28C256s. Microchip (formerly Atmel) EEPROMs are available from Digi-Key, which I seem to recall are rated at 120ns or 150ns. The EPROMs I have are twice as fast (55ns AMD parts), and I also have 45ns OTP parts (Atmel). I can run my POC V1.1 unit at 14 MHz using the OTP part...without wait-stating.

Something I plan to look at in the near future is in seeing how much trouble it would be to switch to more modern flash ROM.


I use a work-around... For testing, I've been using a small monitor with an x-modem based bootloader to load .prg files into "high" ram - I've been mapping a low RAM from $00-$7FFF and a high RAM from $9000 - $E000. Small ROM from $E000-$FFFF and lots of decoding between $8000-$9000 for the peripherals. I'm really just learning the basics, so that is more than ample. For assembling, I've been using VS with Retro Assembler. No particular reason - I'm just comfortable with it.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 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: