65VM02
Re: 65VM02
Just following along the 65VM02.
If a goal is to be a byte-code interpreter engine I think a 128kB design would be somewhat limiting. I think if it was possible to use a 24 bit address space that would be good. This would mainly affect the IP instructions. Several small JVM’s are larger than 128kB. Of course this might mean supporting a long address mode (‘C816 compatible).
This bit my two cents on interrupt handling. – Use a cause code. An interrupt cause code register is present in the RISC-V and other newer designs. It moves vectoring from a hardware task into the software one where more flexibility is available. The cause code could be present on a dedicated input bus to the core.
If a goal is to be a byte-code interpreter engine I think a 128kB design would be somewhat limiting. I think if it was possible to use a 24 bit address space that would be good. This would mainly affect the IP instructions. Several small JVM’s are larger than 128kB. Of course this might mean supporting a long address mode (‘C816 compatible).
This bit my two cents on interrupt handling. – Use a cause code. An interrupt cause code register is present in the RISC-V and other newer designs. It moves vectoring from a hardware task into the software one where more flexibility is available. The cause code could be present on a dedicated input bus to the core.
- BigDumbDinosaur
- Posts: 9428
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: 65VM02
Hugh Aguilar wrote:
The only reason you wouldn't want INC and DEC to affect the carry flag, is that you already have something in the carry flag and you don't want the carry flag to get clobbered by the INC and DEC. I can't think of any case in which this would be true however. That is why I say that it is a design flaw in the 65C02 that INC and DEC don't affect the carry flag
x86? We ain't got no x86. We don't NEED no stinking x86!
-
Hugh Aguilar
- Posts: 158
- Joined: 03 Jun 2016
Re: 65VM02
GARTHWILSON wrote:
Quote:
they have since upgraded to the PIC18
The Dallas 80c320 had 2KB of RAM internal to the chip (plus the 256 bytes of low memory). The '320 was really the standard of the early 1990s --- the 65c02, with external memory, was considered to be obsolete.
With my 65VM02 I'm expecting to have all the memory internal to the chip.
- BigDumbDinosaur
- Posts: 9428
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: 65VM02
Hugh Aguilar wrote:
The '320 was really the standard of the early 1990s --- the 65c02, with external memory, was considered to be obsolete.
BTW, Mouser has a total of 582 pieces of the 65C02 in stock as I write, that is, ready for immediate shipment. Most are PDIP40 and PLCC44. If the 65C02 were truly obsolete, none of that inventory would be there, especially the recently-stocked QFP44 packages (38 on hand).
Also, I see Mouser has plenty of that other obsolete WDC processor in stock as well, also in QFP44.
All-in-all, that's quite a bit of inventory to keep around for old, creaky pieces of silicon that were considered obsolete by someone 25 years ago.
x86? We ain't got no x86. We don't NEED no stinking x86!
-
Hugh Aguilar
- Posts: 158
- Joined: 03 Jun 2016
Re: 65VM02
BigDumbDinosaur wrote:
Hugh Aguilar wrote:
The '320 was really the standard of the early 1990s --- the 65c02, with external memory, was considered to be obsolete.
There hasn't been any new work done with the 65c02 since the early 1990s --- the same is true of Forth programming --- no jobs; it is just a hobby.
- BigDumbDinosaur
- Posts: 9428
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: 65VM02
Hugh Aguilar wrote:
Most likely there are products that were designed in the 1980s with a 65c02 inside of them --- they are still being sold today.
Quote:
There hasn't been any new work done with the 65c02 since the early 1990s --- the same is true of Forth programming --- no jobs; it is just a hobby.
In the case of the 65C02, there is new work being done with it all the time—you mostly can't see it. Do you really think that every digital gadget in production right now is powered by an ARM or PIC? Think again. Those extra el-cheapo cell phones that some 10 dollar a month providers give away are powered by ASICs with a 65C02 core. That's why the phone is so cheap. At a royalty to WDC of 5 cents or so per unit shipped, the manufacturer can practically afford to give away the phone.
How about those cute, little digital picture frames you sometimes see on someone's desk? Many of those are 6502-powered. It doesn't take a lot to occasionally plaster an image on an LCD display, especially one that has built-in intelligence. My doctor has one in his office with pictures of his family, which I helped him set up when he got it about a year ago. The instructions that came with it include a copyright acknowledgement to Western Design Center. You know what that means, right?
x86? We ain't got no x86. We don't NEED no stinking x86!
- GARTHWILSON
- Forum Moderator
- Posts: 8775
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: 65VM02
Quote:
the same is true of Forth programming --- no jobs; it is just a hobby.
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: 65VM02
BigDumbDinosaur wrote:
In the case of the 65C02, there is new work being done with it all the time—you mostly can't see it. Do you really think that every digital gadget in production right now is powered by an ARM or PIC? Think again. Those extra el-cheapo cell phones that some 10 dollar a month providers give away are powered by ASICs with a 65C02 core. That's why the phone is so cheap. At a royalty to WDC of 5 cents or so per unit shipped, the manufacturer can practically afford to give away the phone.
- BigDumbDinosaur
- Posts: 9428
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: 65VM02
Arlet wrote:
ARM royalties are only 1% of the chip, so easily cheaper. And the STM8 is even less than that. The STM8 is very popular in cheapo gadgets right now.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: 65VM02
BigDumbDinosaur wrote:
Yet WDC keeps chugging along. How do you explain it?
-
Hugh Aguilar
- Posts: 158
- Joined: 03 Jun 2016
Re: 65VM02
BigDumbDinosaur wrote:
Hugh Aguilar wrote:
Most likely there are products that were designed in the 1980s with a 65c02 inside of them --- they are still being sold today.
WDC seems to be doing the same thing with their 65c02. They don't change the design. They just continue supporting their existing customers, and they don't worry about the fact that new customers are pretty rare.
MicroChip most likely makes the majority of their money on the PIC16, although the PIC18, PIC24 and PIC32 are a lot more powerful.
All of these processors that we are talking about are 8-bit, and they have a small amount of memory (maybe 512 bytes at the most, but usually only 128 bytes which is what the basic 8051 has).
Also, a lot of these processors are PLCs that are programmed with ladder-diagrams. This is why the 8051 has those 256 1-bit variables (a 32-byte block in low memory). This is also why the W65c02 has those instructions for accessing 1-bit variables. A PLC is basically a state-machine in a paced-loop. A lot of factory equipment use PLCs. They have the product moving around in a carousel or on an assembly-line, and at every stage the product gets something done to it, and then it falls into the bin as a completed product.
Anyway, this is not what the 65VM02 is for. I'm expecting it to have 128KB of memory and run a high-level language (Forth for me, although it should support any language).
These would be larger applications than those done on an 8-bit or 16-bit processor with less than 64KB of memory.
These would be smaller applications than those done on a 32-bit processor, which require megabytes of memory and high-speed.
The 65VM02 would be a niche processor --- not too small and not too big.
- GARTHWILSON
- Forum Moderator
- Posts: 8775
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: 65VM02
Arlet wrote:
ARM royalties are only 1% of the chip, so easily cheaper. And the STM8 is even less than that. The STM8 is very popular in cheapo gadgets right now.
This article might have another key though. It says,
"The upfront license fee depends on the complexity of the design you’re licensing. An older ARM11 will have a lower up front fee than a Cortex A57. The upfront fee generally ranges from $1M - $10M, although there are options lower or higher than that"
(emphasis added). That might be one reason the '02 becomes more attractive. The up-front cost of the '02 is a fraction of that, only a few thousand IIRC.
The up-front cost does not have to be repeated though for every new product you make after the first one; so it's interesting that Nuvoton uses both in their ICs, ARM and '02. Their N539TP340(OTP) high-quality-speech synthesizer and graphic LCD driver uses the '02.
Good point Hugh about the 8051 and others.
I think the '02 is still economically viable in the market today, but I don't particularly need it to be, for myself. If WDC announced they were shutting down, I would buy a lifetime supply for myself and just enjoy it. This is an interest group, and I got into electronics for fun, not money. Microprocessors is part of my electronics interest, to control and analyze the analog which is the other part. If microprocessors were an end in themselves, my approach and position would be different. I like what you're doing, Hugh (and others here exploring their own variations). I can't dedicate enough time to it to do it myself.
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: 65VM02
Quote:
WDC wants—let's go ten times as much—10% instead of 1%
-
Hugh Aguilar
- Posts: 158
- Joined: 03 Jun 2016
Re: 65VM02
GARTHWILSON wrote:
Quote:
the same is true of Forth programming --- no jobs; it is just a hobby.
This is your forum. If you want to support Forth Inc., then just say so and I will never post another message on your forum again. You do what you think is best.
Re: 65VM02
Hugh Aguilar wrote:
GARTHWILSON wrote:
Quote:
the same is true of Forth programming --- no jobs; it is just a hobby.
This is your forum. If you want to support Forth Inc., then just say so and I will never post another message on your forum again. You do what you think is best.