6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Mon May 13, 2024 2:04 am

All times are UTC




Post new topic Reply to topic  [ 168 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12
Author Message
 Post subject: Re: 32 is the new 8-bit
PostPosted: Thu Dec 12, 2013 4:26 pm 
Offline
User avatar

Joined: Sun Nov 27, 2011 12:03 pm
Posts: 229
Location: Amsterdam, Netherlands
GARTHWILSON wrote:
It is always safe to go with the datasheet
Generally, for worst case timing that is true. But how many engineers will have dumped the W65C816 for quoting this extremely unrealistic timing, is anyone's guess.
GARTHWILSON wrote:
How much actual delay (in ns) did you find, compared to the datasheet? It would be nice to find out that the margin between the datasheet and the reality is huge.
From memory, address lines were valid something like 5 to 10 ns after phi1. It figures, of course, that the address is simply clocked into a register connected to the relevant pins, so it's not a surprising number either. When I saw the timing in the datasheet, I immediately distrusted it. WDC does not make very good documentation anyway. Quite messy, buggy and inconsistent ...

I think the discrepancy stems from confusion between the conceptual (where phase 1 is an address and control line setup period, and phase 2 is the transfer, i.e. where address and control lines, in principle, only need to be valid when phase 2 starts) and the implementation.


Top
 Profile  
Reply with quote  
 Post subject: Re: 32 is the new 8-bit
PostPosted: Fri Dec 27, 2013 11:08 pm 
Offline
User avatar

Joined: Tue Aug 06, 2013 6:46 pm
Posts: 23
Location: Oregon
I have a new processor design that removes the memory pipeline delay (that was required for using bram normally) from my original design. Unfortunately I have not been able to test it with normal sram. How I tested it was by clocking the bram on the negative edge of the clock to simulate normal sram single cycle access. I do not know how fast it will be able to run with sram but I was running it at 48MHz for my testing. The average cycle count for all instructions are half of what the original processors were.

If anyone tries to use it and finds any problems please let me know.

edit:
Well, I found 3 bugs and some extra code already, here are my suggested changes to fix the bugs...

This fixes indirect accesses to internal memory for memory to register operations.
replace
S_WR_MEM_OP,S_WR_MEM_OP: cpu_aw = tmp_a;
with
S_RD_MEM_OP,S_WR_MEM_OP: cpu_aw = tmp_a;


These fix not changing these flags when executing indirect addressing mode store operations.
replace
else next_N = alu_op_inc_neg;

with
else if(inc) next_N = alu_op_inc_neg;
else next_N = negative; //ix/iy writes


replace
else next_Z = alu_op_255;

with
else if(inc) next_Z = alu_op_255;
else next_Z = zero; //ix/iy writes


alu_op and tmp_a does not need to be initialized everywhere they are.
I imagine the compiler is taking care of most of these automatically. If you really want these changes I will upload another zip file. I renamed some variables for better clarity and grouped the code better so a diff with what I have already provide will be pretty big.


Attachments:
File comment: Here is a design with a better fmax, I had some instruction decoding occurring right off the data read bus in the original so that was not good...
Atlys64AsyncCpuZip2.zip [39.15 KiB]
Downloaded 90 times
File comment: cpu/main and memory decoder in here...
Atlys64AsyncCpuZip.zip [39.8 KiB]
Downloaded 95 times
Top
 Profile  
Reply with quote  
 Post subject: Re: 32 is the new 8-bit
PostPosted: Wed Feb 09, 2022 3:21 pm 
Offline
User avatar

Joined: Sun Nov 27, 2011 12:03 pm
Posts: 229
Location: Amsterdam, Netherlands
For those stumbling across this old thread :

My proof of concept (a full implementation, really) can be read about here : http://forum.6502.org/viewtopic.php?t=6284


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 168 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 2 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: