Picon

problem with sparc-elf-mkprom



i have downloaded the sparc-elf-4.4.2 than extract it to /opt as mentioned in manual

tar -C /opt -xjf sparc-elf-<version-number>.tar.bz2

but in sparc-ele-4.4.2/bin there is no sparc-elf-mkprom binary do i need to do anything more after the extraction????

reply as soon possible.

__._,_.___
Posted by: hassananwarpoly-/E1597aS9LQAvxtiuMwx3w@public.gmane.org



__,_._,___
Picon

running C codes on leon3 only simulation



Dear all,

I want to run some C codes on Leon-3 processors. I have tried number of steps/solutions available on web but no luck so far.

First I want to confirm either it is feasible or not.

the steps I am following are:

I am in /design/leon2mp directory.

i use make soft
then

vsim testbench

But design failed to load. Please, let me know the steps in which you can your c code on leon3 and see there assembly instructions in modelsim or either to calculate the time it took for simuation.



Kindlt reply me as soon possible.

__._,_.___
Posted by: hassananwarpoly-/E1597aS9LQAvxtiuMwx3w@public.gmane.org



__,_._,___
Picon

BCC-1.0.42 binary execution problem in QEMU emulator



Hi all,

I compiled (incl. necessary patches http://gaisler.org/qemu/) QEMU to support LEON architecture. I can run example binaries (paranoia and stanford) supplied with the TSIM-eval software in the QEMU. I may debug these binaries (as well as binaries compiled using downloaded bcc toolchain binaries) using gdb7 without any issues. However, my problem arises when I create binaries using the toolchain compiled from source (BCC-1.0.42-gcc-4.4.2 on 64bit Debian) then the binary execution in QEMU (started at locore_mvt.S:58 with TRAPL(_hardreset_mvt); ! 00 reset trap) is stucked about thirty steps later in locore_var.S:39 with the following message:

48        mov    %asr17, %g5        ! leon3 has nwindows in %asr17
(gdb)
49        ba    2f
(gdb)
../../gdb-7.1/gdb/sparc-tdep.c:1335: internal-error: sparc_software_single_step: Assertion `nnpc != npc || orig_npc == 0' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n)

On the other hand, I can run the same binaries in TSIM and no error occures. Do you have any idea about the problem origin?

Best regards,
Michael




__._,_.___
Posted by: michaelvacek63-/E1597aS9LQAvxtiuMwx3w@public.gmane.org



__,_._,___
Picon

GRMON access via JTAG fails with the minimal config for Virtex-5



Hi I am new to the grlib and after going through the documentation, I wanted to build a LEON3 soc with in the FPGA itself ( meaning using the AHBROM and AHBRAM. I initially tried to use the xample template for  Xilinx SP601 board and i was able to run a small program on the SOC built on it.

however, when i used the leon3-minimal template to build a system for Virtex-5 , I was stuck with the error "
Xilusb : Cable type/rev : 0x3
 JTAG chain (1): xc5vfx30t
AMBA plug&play not found!
Failed to initialize target!
Exiting GRMON
"


Please note, i have added necessary instantiation for the AHBRAM in the minimal template and removed the unnecessary signals.  I searched the group discussions and found a similar issue faced by another user



However, i am not sure how that was solved.   Any suggestions in this aspect would be of great help.

Please do let me know if you need any information from me. I have not tried simulation for this, however, using the same config.vhd and leon3mp.vhd, i was able to a build a system for Spartan6 FPGA , and i was able to bringup the system using grmon. But when i tried the same for Virtex-5 this error appears.  ( I have made the ncessary changes from Spartan6 to Virtex5 in the Makefile.


Are there any places where i should look for ?


Thanks in advance,
Venkat


__._,_.___
Posted by: hari prasad <hariprasad.palli-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>



__,_._,___
Picon

custom xconfig target file



Hello,


I am setting up a new target with my own set of peripherals choosen from GRLIB.

I therefore have to generate a custom config.vhd file which I would like to avoid writing by hand.


I am trying to modify a config.in file with seems to contain the graphical menu of the xconfig.

Starting from a working one (the one from designs/leon3mp) if I add a new line such as 

    source lib/gaisler/spi/spimctrl.in

in the Memory controllers section I get the following error:


>make xconfig

Makefile:52: warning: overriding commands for target `leon3mpxyzt'

../../bin/Makefile:405: warning: ignoring old commands for target `leon3mpxyzt'

Makefile:61: warning: overriding commands for target `clean'

../../bin/Makefile:2884: warning: ignoring old commands for target `clean'

make main.tk

make[1]: Entering directory `/prj/design/jmd/LEON3/grlib-gpl-1.4.1/designs/leon3mpxyzt'

Makefile:52: warning: overriding commands for target `leon3mpxyzt'

../../bin/Makefile:405: warning: ignoring old commands for target `leon3mpxyzt'

Makefile:61: warning: overriding commands for target `clean'

../../bin/Makefile:2884: warning: ignoring old commands for target `clean'

./tkparse.exe config.in ../../lib  > mai n.tk

config.in: 16: unable to open unable to open echmap/gencomp/tehmap/

make[1]: *** [main.tk] Error 1

make[1]: Leaving directory `/prj/design/jmd/LEON3/grlib-gpl-1.4.1/designs/leon3mpxyzt'

make: *** [lconfig.tk] Error 2



How can I get a custom xconfig to configure my design ?

Thank you very much


Kind regards


Jean-Marc Daveau      




__._,_.___
Posted by: jean-marc.daveau-qxv4g6HH51o@public.gmane.org



__,_._,___
Picon

Why Prime Time PX shows almost all nets as Not-Annotated [2 Attachments]



Hello All,

I am using DC for leon3mp sythesis and QuestaSim for simulation and vcd/saif generation.

Then I have to calculate the power of a test program running on Leon3.

Steps:

1. RTL Simulation of leon3mp to get saif file.

2. Synthesis using DC using saif(step1) file and generated saif_mapping file

3. PrimeTime to calculate power using synthsized .ddc/.vhdl and vcd/saif files


(scripts are attached)


Result: Annotation is not successful.



Please guide if anyone has carried out this with modelsim/questasim.


thanks in advance.



__._,_.___ View attachments on the web
Posted by: sajjadhussaintahiri-/E1597aS9LQAvxtiuMwx3w@public.gmane.org



__,_._,___
Attachment (pt_script.tcl): text/x-tcl, 2028 bytes
Attachment (script.tcl): text/x-tcl, 4426 bytes
Picon

implementing a performance counter to monitor instructions per cycle



Hi,

   I am trying to monitor instructions per cycle (IPC) (average number of instructions executed for each clock cycle.) in LEON3 while running a MiBench workload in a modelsim simulation over time. I am not sure which signal in the synthesized RTL code, I need to check. Please let me know if anyone can help me.

Thanks,
Arun




__._,_.___
Posted by: arunkumarcea2-/E1597aS9LQAvxtiuMwx3w@public.gmane.org



__,_._,___
Picon

linking object file on sparc-elf-gcc to create executable



Hello,

Kindly guide me if anyone, on how to link the object file (created through sparc-elf-gcc  -Wall -fPIC -c temp_program.c) to create an executable (demo.exe). Here, file 'demo.c' contains main() function that is calling functions defined in file 'temp_program.c.

With Regards,
-Sameer



__._,_.___
Posted by: Sameer Huddar <sam_huddar-/E1597aS9LQxFYw1CcD5bw@public.gmane.org>



__,_._,___
Picon

ZC702 grmon connection problem [1 Attachment]



Hello, I'm Taekyung Heo.

I have a problem with establishing a connection to Leon3.

If there is anyone who has a solution, please help me.


Problem

I can't establish a connection to Leon3 using grmon.


Experiment Environment

1) OS: Ubuntu 64bit 14.04.2 Desktop

2) FPGA Board: ZedBoard (ZC702)

3) Cables:

    I have two cables. (Please see the attached file)

    - One is the original one from ZedBoard (ZedBoard cable)

    - The other is from Virtex5. (Virtex5 JTAG cable)

4) Other Conditions

  - If I boot up the device with the default sdcard which has a linux image,  span>I can see messages.

  - I can see /dev/ttyACM0


Error Messages

1) Using ZedBoard Cable


$sudo ./grmon -xilusb


  GRMON2 LEON debug monitor v2.0.65 32-bit eval version

  

  Copyright (C) 2015 Cobham Gaisler - All rights reserved.

  For latest updates, go to http://www.gaisler.com/

  Comments or bug-reports to support-FkzTOoA/JUlBDgjK7y7TUQ@public.gmane.org

  

  This eval version will expire on 10/12/2015


No cables found!

Exiting GRMON


$sudo ./grmon -xilusb -uart /dev/ttyACM0


  GRMON2 LEON debug monitor v 2.0.65 32-bit eval version

  

  Copyright (C) 2015 Cobham Gaisler - All rights reserved.

  For latest updates, go to http://www.gaisler.com/

  Comments or bug-reports to support-FkzTOoA/JUlBDgjK7y7TUQ@public.gmane.org

  

  This eval version will expire on 10/12/2015


  using port /dev/ttyACM0 <at> 115200 baud

..........

UART failed to connect

Exiting GRMON


$sudo ./grmon -digilent


  GRMON2 LEON debug monitor v2.0.65 32-bit eval version

  

  Copyright (C) 2015 Cobham Gaisler - All rights reserved.

  For latest updates, go to http://www.gaisler.com/

  Comments or bug-reports to support-FkzTOoA/JUlBDgjK7y7TUQ@public.gmane.org

 &nbsp ;

  This eval version will expire on 10/12/2015


No cables found!

Exiting GRMON


$sudo ./grmon -digilent -uart /dev/ttyACM0


  GRMON2 LEON debug monitor v2.0.65 32-bit eval version

  

  Copyright (C) 2015 Cobham Gaisler - All rights reserved.

  For latest updates, go to http://www.gaisler.com/

  Comments or bug-reports to support-FkzTOoA/JUlBDgjK7y7TUQ@public.gmane.org

  

  This eval version will expire on 10/12/2015


  using port /dev/ttyACM0 <at> 115200 baud

..........

UART failed to connect

Exiting GRMON



2) Using Virtex5 Cable

$sudo ./grmon -xilusb   


  GRMON2 LEON debug monitor v2.0.65 32-bit eval version

  

  Copyright (C) 2015 Cobham Gaisler - All rights reserved.

  For latest updates, go to http://www.gaisler.com/

  Comments or bug-reports to support-FkzTOoA/JUlBDgjK7y7TUQ@public.gmane.org

  

  This eval version will expire on 10/12/2015


Xilusb: Cable type/rev : 0x3 

JTAG Instruction register length detection failed

Exiting GRMON


$sudo ./grmon -digilent


  GRMON2 LEON debug monitor v2.0.65 32-bit eval version

  

  Copyright (C) 2015 Cobham Gaisler - All rights reserved.

  For latest updates, go to http://www.gaisler.com/

  Comments or bug-reports to support-FkzTOoA/JUlBDgjK7y7TUQ@public.gmane.org

  

  This eval version will expire on 10/12/2015


No cables found!

Exiting GRMON



If you have any solution, please help me.


Thank you.

Taekyung Heo



__._,_.___ View attachments on the web
Posted by: gumdaeng-/E1597aS9LQAvxtiuMwx3w@public.gmane.org



__,_._,___
Picon

GRMON2 compatibility with GR-PCI-XC5V board




​Hello everybody, i am trying to connect a board GR-PCI-XC5V with grmon2 (eval version) downloaded from the aeroflex site. In the past I used the old version of grmon(currently it is not available the eval version)
​I have tried to connect the board with the option -eth and -jtag, in both cases with the ethernet and jtag cables correctly connected.​

​$>grmon -eth 192.168.2.15
The application returns a Segmentation fault ​

$>grmon -jtag
No cables found!
Exiting GRMON​

​Te first question is. Anyone knows if the board GR-PCI-XC5V is compatible with grmon2?


​Regards and thanks in advance,
Pedro.​



__._,_.___
Posted by: "pedro.palomo" <pedro.palomo <at> deimos-space.com>



__,_._,___
Picon

passing key strokes via grmon to snapgear



Hi all,

I loaded a snapgear os into leon3 4-core processor onto a altera cycloneiv-based terasic de2-115 board.
Cross-compiled programs run well on leon3 without any problem.
The only thing annoys me is that how the key strokes can be pass into snapgear via grmon. For example, how can I exit a running program on leon3? Ctrl-c can only let me jump out of the snapgear OS and go back to "grmon2>". The keystrokes are not able to be passed into the snapgear OS whenever it is not waiting for command line input.
Do I need to reconfigure the snapgear or leon3? Or do I need a usb/ps keyboard that is directly connected to the fpga board?


regards,

ys



__._,_.___
Posted by: sunyujia-ur4TIblo6goN+BqQ9rBEUg@public.gmane.org



__,_._,___

Gmane