Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The procedure contained in camelforth/mmu_test.txt seems to blow up #13

Open
n6il opened this issue Nov 5, 2022 · 1 comment
Open

Comments

@n6il
Copy link

n6il commented Nov 5, 2022

As you know I am trying to port multicomp6809 to the Altera DE1. I wanted to see if the MMU and my sRAM wiring logic was working properly after my changes and found the code in camelforth/mmu_test.txt. Unfortunately when I run this everything works until:

789A FDFF !  \ write to RAM block 6

After this CamelForth seems to blow up, not recognizing any words after this. So I can't tell if the MMU or sRAM wiring correct or not because I can't do any further debugging after this.

If I do different tests which don't do any manipulation to the ROM area then it seems the MMU is working and addressing ram correctly:

HEX
MMUMAP
: W8 40 8 DO 24 FFDE ! I FFDF C! I 8000 C! LOOP ;
: R8 40 8 DO 24 FFDE ! I FFDF C! 8000 C@ . LOOP ;
: RA 40 8 DO 25 FFDE ! I FFDF C! A000 C@ . LOOP ;

Running those I see 0x08 through 0x3F and no repeats, so I'm assuming the MMU and RAM Mapping logic are working? Any additional hints?

@nealcrook
Copy link
Owner

The particular test sequence you refer to as failing is part of the test for the "Fixed RAM Top" (FRT) functionality. Refer to the .vhd header for a detailed description, but this basically cuts a 256 byte hole at the very top of memory and maps it permanently to the top of block 7.

It seems strange that it would fail for the block6 write but be OK for the block7 write. Please will you confirm if your wiring fixup solved this problem?
thanks,
Neal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants