Minimig Discussion Forum

Discussing the Open Source FPGA Amiga Project
It is currently Thu May 23, 2013 2:55 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Minimig porting questions
PostPosted: Fri Jun 18, 2010 5:38 am 
Offline

Joined: Sun Jan 04, 2009 3:48 am
Posts: 80
Hello,

I am working on porting the minimig to the Cyclone III FPGA.
So far, everything looks good. The only issue is the floppy drive emulation :( .
I cannot get the "hand" screen under KS 1.3 or the disk animation under KS 2.0.
With KS 2.0, DF0 is recognized in the boot menu.

Any ideas ?

BTW, I improve sligntly the kickstart loading speed by using double buffering in the bootloader : I DMA 16KB of data in buffer #1 while copying 16KB of data from buffer #2 into KS area and vice-versa. DMA is constantly on (213KB/s with DMA floppy acceleration).

Regards,

Frederic


Top
 Profile  
 
 Post subject: Re: Minimig porting questions
PostPosted: Sat Jun 19, 2010 5:53 pm 
Offline

Joined: Mon Dec 01, 2008 9:58 pm
Posts: 1406
Location: .de
As far as I can tell, the CIA interrupts must work normal to get any initial kickstart picture.

Perhaps also without a working floppy controller, some necessary signal is missing and prevent kickstart from finding any floppy drive.

_________________
__________________________________________________________
JSR $BED ; will guru-meditation until next morning


Top
 Profile  
 
 Post subject: Re: Minimig porting questions
PostPosted: Wed Jun 23, 2010 4:47 am 
Offline

Joined: Sun Jan 04, 2009 3:48 am
Posts: 80
Hello,

Thanks for the hint.
I totally replaced floppy.v and have a custom floppy controller : it does not use a SPI link but a parallel link.
I do not have a ARM or PIC but a NIOS II CPU inside the same FPGA.

I am halfway through disassembling the trackdisk.device. I can see already that the disk.resource correctly auto-detects the drives.
I am going to look at the CIA interrupts but it looks like they work since the multi-tasking runs correctly (Exec uses the timer.device for the multi-tasking time-slice).

Regards,

Frederic


Top
 Profile  
 
 Post subject: Re: Minimig porting questions
PostPosted: Wed Jun 23, 2010 2:28 pm 
Offline

Joined: Mon Dec 01, 2008 9:58 pm
Posts: 1406
Location: .de
You may try to set some floppy signal to permanent value, just to figgure out a possible missing signal handling.

Try for example in Floppy.v:
assign _ready = 0; // drive is always ready
assign _sel[3:0] = 4'b1110; // should select DF0 only

and comment out the other assignments.
Sure this will not make the floppy drive work, but perhaps the kickstart picture appear to have a clue where to search for.

_________________
__________________________________________________________
JSR $BED ; will guru-meditation until next morning


Top
 Profile  
 
 Post subject: Re: Minimig porting questions - Found!
PostPosted: Wed Jul 21, 2010 3:36 pm 
Offline

Joined: Sun Jan 04, 2009 3:48 am
Posts: 80
Hello,

I found the issue : it was in the 8520.
With the current CIA8520.v, the ICR register is cleared as soon as the ICR is selected ("icrs" signal) and "wr" is deasserted.
On the normal Minimig implementation, the cpu bridge works around this problem.
I am using a implementation with a TG68 on a Cyclone III.
There is no cpu bridge and a different gary implementation.
I modified the CIA8520.v by using a falling edge detector on "rd" to clear ICR.
I would like to post the modification, how can I do that ?

Regards,

Frederic


Top
 Profile  
 
 Post subject: Re: Minimig porting questions
PostPosted: Wed Jul 21, 2010 3:51 pm 
Offline

Joined: Mon Dec 01, 2008 9:58 pm
Posts: 1406
Location: .de
Thanks for you time finding and fixing this matter!

I think here is the right place to post the new code.
Perhaps with an adapted posting subject, to make it search engine compatibble ;)

_________________
__________________________________________________________
JSR $BED ; will guru-meditation until next morning


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Translated by Xaphos © 2007, 2008, 2009 phpBB.fr