D
David Kaplan
Guest
Hi
I'm having an issue with a cpu that I'm building and no matter what I try, I can't seem to resolve it (so any help would greatly be appreciated):
Basically, when I issue a POP instruction, my processor will read from RAM at the stack pointer address (minus 1). However, the value does not appear on the tristate data bus (it remains in hi-Z); even though it seems to be successfully read from RAM.
You can see the issue in the simulation screenie:
https://www.dropbox.com/s/s9ctbcpqilzzqmc/pop1.bmp
At 110ns mmu1/ram_data is '11111111', however mem_data remains hi-Z (and therefore r0 is hi-Z).
The code is at:
https://github.com/DepletionMode/cupcake/blob/master/cpu/cpu.vhd
https://github.com/DepletionMode/cupcake/blob/master/cpu/mmu.vhd
https://github.com/DepletionMode/cupcake/blob/master/cpu/simpleram.vhd
Apologies for the quality of the code; VHDL isn't my thing (I'm learning I guess..
)
Thanks in advance!
I'm having an issue with a cpu that I'm building and no matter what I try, I can't seem to resolve it (so any help would greatly be appreciated):
Basically, when I issue a POP instruction, my processor will read from RAM at the stack pointer address (minus 1). However, the value does not appear on the tristate data bus (it remains in hi-Z); even though it seems to be successfully read from RAM.
You can see the issue in the simulation screenie:
https://www.dropbox.com/s/s9ctbcpqilzzqmc/pop1.bmp
At 110ns mmu1/ram_data is '11111111', however mem_data remains hi-Z (and therefore r0 is hi-Z).
The code is at:
https://github.com/DepletionMode/cupcake/blob/master/cpu/cpu.vhd
https://github.com/DepletionMode/cupcake/blob/master/cpu/mmu.vhd
https://github.com/DepletionMode/cupcake/blob/master/cpu/simpleram.vhd
Apologies for the quality of the code; VHDL isn't my thing (I'm learning I guess..
Thanks in advance!