FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > FPGA

FPGA comp.arch.fpga newsgroup (usenet)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-08-2007, 06:22 AM
Shant
Guest
 
Posts: n/a
Default Multiple Micorblaze instantion problem solved, Facing debugging related problem.

Hello All,

Thanks for your precious suggestion; finally the problem of
instantiating more than one MicroBlaze is being solved. Now I am
facing next set of problem, i.e. debugging my code.

I have interconnected my two MicroBlazes through FLS so as to have two
way communications. I have loaded following programs:

In MicroBlaze 0:

#include <mb_interface.h>
#include <xutil.h>
int main(void){
int i = 0;
while(i<10){
microblaze_bwrite_datafsl(i, 0);
microblaze_bread_datafsl(i, 0);
xil_printf("pong %d\n\r", i);
}
}


In MicroBlaze 1:

#include <mb_interface.h>
#include <xutil.h>
int main(void){
int i;
while(1){
microblaze_bread_datafsl(i, 0);
i++;
xil_printf("ping %d\n\r", i);
microblaze_bwrite_datafsl(i, 0);
}
}

My aim is to let them pass data through FSL. The problem is that I am
able to connect to only One Microblaze_0, I am not able to do setups
for debugging microblaze_1 through Debug -> XMD options ->
Microblaze_1 and so I am not able to connect to Microblaze_1. A blank
panel appears when followed the above mentioned path with a Tip saying
Please choose a Connection Type.

I had been told that we can connect to only one Microblaze at a time.
And for successful execution of my code in first Microblaze_0 I want
the program in Microblaze_1 to be up and running, but I am not able to
start the program in Microblaze_1.

Can anyone tell me:
1. How to start the program in Microblaze_1 so that the program in
Microblaze_0 can successfully send data to Microblaze_1, and get the
reply from the same.
2. How to connect to Microblaze_1.
3. Is it possible to have a program in any of the microblazes which
can start running automatically, soon after doing the reset of the
FPGA Board.

Please throw some light on this problem of mine.

Thanks and Regards,
Shant

Reply With Quote
  #2 (permalink)  
Old 02-08-2007, 08:47 AM
Göran Bilski
Guest
 
Posts: n/a
Default Re: Multiple Micorblaze instantion problem solved, Facing debugging related problem.

Hi,

You can connect to upto 8 MicroBlazes using the opb_mdm
You can only control one at the time using XMD but switch from one to
another using a command.

1.
You have to connect to target 1 or target 0 in XMD
Read chapter 12 about XMD commands in "Embedded System Tools Reference
Manual"
2.
See above, It's all in the documentation
3. Yes, You can have code initialized in the BRAM which the processors will
start to execute after reset.
Just click on your application in XPS and set "Mark to Initialize BRAMs"

Göran

"Shant" <[email protected]> wrote in message
news:[email protected] ups.com...
> Hello All,
>
> Thanks for your precious suggestion; finally the problem of
> instantiating more than one MicroBlaze is being solved. Now I am
> facing next set of problem, i.e. debugging my code.
>
> I have interconnected my two MicroBlazes through FLS so as to have two
> way communications. I have loaded following programs:
>
> In MicroBlaze 0:
>
> #include <mb_interface.h>
> #include <xutil.h>
> int main(void){
> int i = 0;
> while(i<10){
> microblaze_bwrite_datafsl(i, 0);
> microblaze_bread_datafsl(i, 0);
> xil_printf("pong %d\n\r", i);
> }
> }
>
>
> In MicroBlaze 1:
>
> #include <mb_interface.h>
> #include <xutil.h>
> int main(void){
> int i;
> while(1){
> microblaze_bread_datafsl(i, 0);
> i++;
> xil_printf("ping %d\n\r", i);
> microblaze_bwrite_datafsl(i, 0);
> }
> }
>
> My aim is to let them pass data through FSL. The problem is that I am
> able to connect to only One Microblaze_0, I am not able to do setups
> for debugging microblaze_1 through Debug -> XMD options ->
> Microblaze_1 and so I am not able to connect to Microblaze_1. A blank
> panel appears when followed the above mentioned path with a Tip saying
> Please choose a Connection Type.
>
> I had been told that we can connect to only one Microblaze at a time.
> And for successful execution of my code in first Microblaze_0 I want
> the program in Microblaze_1 to be up and running, but I am not able to
> start the program in Microblaze_1.
>
> Can anyone tell me:
> 1. How to start the program in Microblaze_1 so that the program in
> Microblaze_0 can successfully send data to Microblaze_1, and get the
> reply from the same.
> 2. How to connect to Microblaze_1.
> 3. Is it possible to have a program in any of the microblazes which
> can start running automatically, soon after doing the reset of the
> FPGA Board.
>
> Please throw some light on this problem of mine.
>
> Thanks and Regards,
> Shant
>



Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with multiple constant drivers Carlos Barberis Verilog 1 11-04-2008 04:20 PM
Problem using same instance multiple times in Verilog [email protected] Verilog 1 10-07-2006 02:22 PM
Multiple related clocks in Verilog? Tobias Weingartner Verilog 1 01-10-2006 11:47 PM
GNU Linker (MicroBlaze) / debugging problem [email protected] FPGA 1 08-01-2005 04:17 PM
Spartan-3E, ISE 7.1 some issues - solved (BUFG insertion problem) Antti Lukats FPGA 2 07-09-2005 02:59 PM


All times are GMT +1. The time now is 03:10 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved