It was just the Gamecube code for reading in the drive commands that I'm having trouble with...
The original code works fine, but is in VHDL and I have a problems reading some of it (and modifying it quickly).
So, I tried converting it to Verilog, but it doesn't latch the GC commands correctly?
I can force it to work in Verilog if I do it synchronously (by clocking the GC signals through some regs, then checking for rising or falling edges),
but it's not ideal and causes extra delays which could make things unreliable.
Here is the segment of Destop's original VHDl code; I haven't included any port declarations / assigns / regs etc...
Here is a conversion to Verilog by Veritak (free s/w)...
And here is a conversion by X-HDl (demo)...
Looking at the code, you would think the Verilog would work OK, but it's not seeing the async signal edges properly?
It might be something else I've missed in my code though?
I'm assuming it's because the VHDL has the keyword " 'Event ", which tells the compiler to look for an edge?
In Verilog, I think you need to add "posedge" or "negedge" to the event list for it to work the same way, is this correct?
(again, sorry this is in a Sega thread, so I'll keep it quick).
Thanks in advance,
P.S. Those 2232H chips look very nice. No wonder you can stream ISO's so well!
btw, I've started playing with the DAC on my board - I tried to play a DC Audio track, but the SD Card is reading from a completely unexpected start position?
I might have to throw out this crappy SD Card driver code and find another one.