Search the web
Sign In
New User? Sign Up
minimigtg68 · Minimig with fpgacpu tg68
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Problem on TG68 with LEA xxxx.W,An ??   Message List  
Reply | Forward Message #294 of 327 |
Re: Problem on TG68 with LEA xxxx.W,An ??

Ok, I found the problem.
I slightly changed the AS# generation and the address decoder logic.
Now, everything runs fine.

On a cyclone III speed grade C8, I can clock the TG68 at 25 MHz.
I have decided to clock it at 21 MHz. Anyway, the core is very fast : wothout
the top level that stretches the memory access to 4 cycles, it only needs 2
cycles for a 1-word instruction and 3 cycles for a 2-word instruction. Overall
it is 9 times faster than a 7 MHz 68000.

For those who wants to play with TG68:
* "state_out" signal : 00: fetch cycles, 01: decode cycles, 10: data read
cycles, 11: data write cycles.
* "decodeOPC" : seems to be equal to 1 only when state_out = 01.
* "reset", "UDS", "LDS" and "IPL" are low active.
* "wr" signal : 0=write, 1=read.

If you want to use only tg68_fast, here is how I do it myself:

clk_ena <= '1' WHEN (clk_ena_in = '1') AND ((dtack_n = '0') OR (state_out =
"01") OR (decodeOPC = '1')) ELSE '0';
as_n <= UDS AND LDS;

I clock the memory accesses on the falling edges and TG68 on the rising edges.

Regards,

Frederic

--- In minimigtg68@yahoogroups.com, "requin_frederic2" <requin_frederic2@...>
wrote:
>
> Hello Tobias,
>
> I have a test program with a LEA $2000.W,A0, I had to replace it by LEA
$00002000.L,A0 to make it work on TG68.
>
> Any thoughts ?
>
> Regards
>
> Frederic
>





Sun Oct 11, 2009 5:39 am

requin_frede...
Offline Offline
Send Email Send Email

Forward
Message #294 of 327 |
Expand Messages Author Sort by Date

Hello Tobias, I have a test program with a LEA $2000.W,A0, I had to replace it by LEA $00002000.L,A0 to make it work on TG68. Any thoughts ? Regards Frederic...
requin_frederic2
requin_frede...
Offline Send Email
Oct 10, 2009
7:22 pm

Ok, I found the problem. I slightly changed the AS# generation and the address decoder logic. Now, everything runs fine. On a cyclone III speed grade C8, I can...
requin_frederic2
requin_frede...
Offline Send Email
Oct 11, 2009
5:39 am

... I'm using TG68 for NeoGeo. The system clock is 25MHz, though the TG68 core is clock-enabled at 12.5MHz on a Cyclone II C6 (TerASIC DE1). I generate a 25MHz...
Mark McDougall
tcdevelop
Online Now Send Email
Oct 11, 2009
6:18 am

Hello Mark, How is it going down under ? I plan to use it on the boot menu of the MCC board (see: www.arcaderetrogaming.com), on the Amiga core and as the...
requin_frederic2
requin_frede...
Offline Send Email
Oct 11, 2009
3:10 pm

... Well, Winter refuses to give way which is annoying, but otherwise OK! ... I've been meaning to make a final decision on how to implement floppy media ...
Mark McDougall
tcdevelop
Online Now Send Email
Oct 12, 2009
6:44 am

... Hello, I have tried the NIOS II with FatFS, but I was quite disappointed by the code density. I do not want to eat up all my block RAMs with a boot ROM. I...
requin_frederic2
requin_frede...
Offline Send Email
Oct 13, 2009
3:03 am

... I'm pretty sure that clocks from the same PLL that are multiples of one another are guaranteed to be phase-aligned!?! So you could run a slower clock and...
Mark McDougall
tcdevelop
Online Now Send Email
Oct 12, 2009
6:50 am

... I actually do that on some of my designs ! With the PLL along with the clocks, I generate a clock that is a short pulse centered on the instant where all...
requin_frederic2
requin_frede...
Offline Send Email
Oct 13, 2009
2:49 am

Hello Mark, I have read your thread about the NeoGeo on Pacedev. Very interresting. You said the sprite engine was causing you problems. How come ? FYI, the...
requin_frederic2
requin_frede...
Offline Send Email
Oct 12, 2009
3:11 am

... Mostly because I've been procrastinating in putting it off! :( I can boot Joy Joy Kid and it's running happily - I can even start a game. But as you ...
Mark McDougall
tcdevelop
Online Now Send Email
Oct 12, 2009
6:37 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help