Microblaze asm and C shared variables

A

Andrea Sabatini

Guest
Hi all.

I have to write a code for the MicroBlaze soft processor (Xilinx Platform
Studio 6.1.03i) and I am facing the following problem: both my assembly code
and my c code have to access some shared (global!) variables but I do not
know how to do it. I downloaded all the MicroBlaze documentation from the
Xilinx web site (or at least I am convinced I did) but I did not find any
clue. Does someone of you out there know how to do it?

Regards,

Andrea Sabatini
 
Andrea,

If you are looking for ways on how to pass variables to assembly
instructions in MicroBlaze, check out the very last passage in the
following solution record:

http://support.xilinx.com/xlnx/xil_ans_display.jsp?iLanguageID=1&iCountryID=1&getPagePath=18561

Hope this helps,

Matt

Andrea Sabatini wrote:

Hi all.

I have to write a code for the MicroBlaze soft processor (Xilinx Platform
Studio 6.1.03i) and I am facing the following problem: both my assembly code
and my c code have to access some shared (global!) variables but I do not
know how to do it. I downloaded all the MicroBlaze documentation from the
Xilinx web site (or at least I am convinced I did) but I did not find any
clue. Does someone of you out there know how to do it?

Regards,

Andrea Sabatini
 
Matt,

Thank you for your reply. I am now facing another problem. I would like to
call C routines from my assemble code but I did not found a place where
there is written how to do it. I am able to do it with routines that do not
need input parameters and do not return any value but I need to know how to
do it in a general case (presence of ins and outs).

Thanks in advance,

Andrea


"Matthew Ouellette" <matt.ouellette@xilinx.comNOSPAM> wrote in message
news:cai9bm$jn31@xco-news.xilinx.com...
Andrea,

If you are looking for ways on how to pass variables to assembly
instructions in MicroBlaze, check out the very last passage in the
following solution record:


http://support.xilinx.com/xlnx/xil_ans_display.jsp?iLanguageID=1&iCountryID=
1&getPagePath=18561
Hope this helps,

Matt

Andrea Sabatini wrote:

Hi all.

I have to write a code for the MicroBlaze soft processor (Xilinx
Platform
Studio 6.1.03i) and I am facing the following problem: both my assembly
code
and my c code have to access some shared (global!) variables but I do
not
know how to do it. I downloaded all the MicroBlaze documentation from
the
Xilinx web site (or at least I am convinced I did) but I did not find
any
clue. Does someone of you out there know how to do it?

Regards,

Andrea Sabatini
 
"Andrea Sabatini" <andrea@dapdesign.com> escribió en el mensaje
news:40cd7bb7$0$6795$e4fe514c@news.xs4all.nl...
Matt,

Thank you for your reply. I am now facing another problem. I would like to
call C routines from my assemble code but I did not found a place where
there is written how to do it. I am able to do it with routines that do
not
need input parameters and do not return any value but I need to know how
to
do it in a general case (presence of ins and outs).
check out the C calling convention

Thanks in advance,

Andrea


"Matthew Ouellette" <matt.ouellette@xilinx.comNOSPAM> wrote in message
news:cai9bm$jn31@xco-news.xilinx.com...
Andrea,

If you are looking for ways on how to pass variables to assembly
instructions in MicroBlaze, check out the very last passage in the
following solution record:



http://support.xilinx.com/xlnx/xil_ans_display.jsp?iLanguageID=1&iCountryID=
1&getPagePath=18561

Hope this helps,

Matt

Andrea Sabatini wrote:

Hi all.

I have to write a code for the MicroBlaze soft processor (Xilinx
Platform
Studio 6.1.03i) and I am facing the following problem: both my
assembly
code
and my c code have to access some shared (global!) variables but I do
not
know how to do it. I downloaded all the MicroBlaze documentation from
the
Xilinx web site (or at least I am convinced I did) but I did not find
any
clue. Does someone of you out there know how to do it?

Regards,

Andrea Sabatini
 

Welcome to EDABoard.com

Sponsor

Back
Top