Forum

Notifications
Clear all

New Tests

4 Posts
1 Users
0 Reactions
50 Views
Posts: 84
Admin
Topic starter
(@nivbot)
Member
Joined: 8 months ago

Hello,

I made a few new tests that are now available on the downloads page. I made two new 4164 tests that are quicker than a deep scan of every address. The new tests select either a random row or column depending on which you are testing and will set the bit to each address at every power of 2 column (or row) and test that it doesn't cause aliasing on the base. So, 4164-col tests that setting addresses at different columns doesn't affect the base row and 4164-row checks that setting rows doesn't affect the base column. They are quick and simple. You can use them for a template or you can wait for other RAM to be added for this kind of test.

I've also added a new 6502 test. This tests the processors ability to JMP and in so doing it tests the actual opcode and it tests indirect addressing. We do the startup reset and clock ticking at the start then we set the reset pin to high to get it out of reset. That will cause the 6502 to go to the reset address of FFFC. From there it gets first the low bits of the address then it will move to FFFD to get the high bits of the address. We give it first 0x00 then we give it 0x80 which makes it go to 0x8000. Of course there is no 0x8000 but we watch the address bus for when the CPU is sending that address on the bus and then we set the data bus to what we want and in this case it is 6C which is the opcode for jump. The CPU will then go to 8001 for the low bit of the address to jump to at which time we give it FD. As you can see in the code, what we do is put the data onto the data bus and then in our code we wait until the address the CPU is supposed to get the data from is on the line. That means the CPU has seen the data and should be getting it. And all the while we are only clocking the CPU when we need to so we have more control of the data and we can intercept it much easier. And thus we put FC on the line and wait for the 8002. After that the CPU should have the address of FCFD. And it should then have that address on its address bus. all we need to do is affirm that the CPU is setting that address in the bus and it confirms that our jump routine worked as intended. 

I will add the files here too so anyone that reads this doesn't need to go looking for them. Also, I'm going to add a quick guide to installing tests for those who might be confused about the GUI. It's going to get a big overhaul, no worries. It just takes time. 

 


3 Replies
Posts: 84
Admin
Topic starter
(@nivbot)
Member
Joined: 8 months ago

Here are the files....


Reply
Posts: 84
Admin
Topic starter
(@nivbot)
Member
Joined: 8 months ago
Reply
Posts: 84
Admin
Topic starter
(@nivbot)
Member
Joined: 8 months ago
Reply
Share: