Welcome, Guest |
You have to register before you can post on our site.
|
Latest Threads |
OpenOCD Error with Nexys ...
Forum: PULP General questions
Last Post: NEO
8 hours ago
» Replies: 1
» Views: 1,131
|
Booting Pulpissimo from S...
Forum: PULP General questions
Last Post: kgf
8 hours ago
» Replies: 1
» Views: 20
|
how to manipulating of GP...
Forum: PULP General questions
Last Post: zealshah29
04-19-2024, 12:15 PM
» Replies: 6
» Views: 17,726
|
priviliged interrupts
Forum: PULP General questions
Last Post: tswaehn
04-16-2024, 01:43 PM
» Replies: 0
» Views: 103
|
Compiling and running CNN...
Forum: PULP General questions
Last Post: NEO
04-11-2024, 12:29 PM
» Replies: 2
» Views: 275
|
How do I get the files ne...
Forum: PULP General questions
Last Post: AlessioBurrello
04-05-2024, 10:22 AM
» Replies: 1
» Views: 394
|
Pulpissimo bitstream gene...
Forum: PULP General questions
Last Post: zealshah29
03-28-2024, 06:41 AM
» Replies: 13
» Views: 40,514
|
Help to run Hello Example
Forum: PULP General questions
Last Post: zealshah29
03-28-2024, 06:31 AM
» Replies: 5
» Views: 10,824
|
Compiling and running app...
Forum: PULP General questions
Last Post: zealshah29
03-28-2024, 06:13 AM
» Replies: 5
» Views: 18,797
|
Understanding the TCDM in...
Forum: PULP General questions
Last Post: zealshah29
02-13-2024, 10:34 AM
» Replies: 7
» Views: 15,107
|
|
|
questasim test case failed |
Posted by: mahalakshmir.ma - 12-06-2019, 04:03 AM - Forum: PULP General questions
- No Replies
|
|
hi,
I tried running interfaced GPIO with the test cases given in PULPino environment. after running testcases I am getting has test case failed. why test failed occurs.
** Warning: NUMERIC_STD."=": metavalue detected, returning FALSE
# Time: 0 ps Iteration: 0 Instance: /tb/top_i/peripherals_i/apb_uart_i/UART_RXFF
# ** Warning: NUMERIC_STD."=": metavalue detected, returning FALSE
# Time: 0 ps Iteration: 0 Instance: /tb/top_i/peripherals_i/apb_uart_i/UART_TXFF
# Using MEMLOAD method: PRELOAD
# Using ri5cy core
# [SPI] Enabling QPI mode
# [adv_dbg_if] AXI4 WRITE 32 burst @1a107008 for 4 bytes.
# Preloading memory
# Preloading instruction memory from slm_files/l2_stim.slm
# Preloading data memory from slm_files/tcdm_bank0.slm
# [TRACER] Output filename is: trace_core_00_0.log
#[SPI] Received 00000003
#[SPI] Test Failed
# **Note :$Stop
THANKS IN ADVANCE
|
|
|
Compiling and running application on Zedboard (Pulpissimo) |
Posted by: jmmarostegui - 12-05-2019, 01:25 PM - Forum: PULP General questions
- Replies (5)
|
|
Good afternoon,
After several issues I have been able to install the complete SDK and platforms.
I'm able to compile applications and run them on the rt platform. I'm also able to complete the Vivado implementation of Pulpissimo for the Zedboard. However, I'm still not able to run applications on the Zedboard.
The sequence of steps I carry out are:
1 - Using Vivado Hardware manager I program the device on the Zedboard with the pulpissimo-zedboard.bit configuration file. Everything is fine, the device is configured and led LED0 is on (from the .xdc file and xilinx_pulpissimo.v I identify that this is CSN for SPI channel 1, so it is OK).
2 - source configs/pulpissimo.sh
3 - source configs/fpgas/pulpissimo/genesys2.sh (from the information provided in GitHub there shoulb be also a zedboard.sh script, but this is the only one that can be found)
4 - source sourceme.sh
5 - make clean all
6 - The USB cable that was used to configure the Zynq device is removed from the Zedboard.
7 - The Digilent JTAG-HS2 cable is attached to PMOD A.
8 - openocd -f openocd-zedboard-hs2.cfg
9 - riscv32-unknown-elf-gdb FILENAME
10 - (gdb) target remote localhost:3333
11 - (gdb) load
If within gdb I issue two list commands here is what I get:
1 /*
2 * This example shows how drive a GPIO as an output.
3 */
4
5 #include <stdio.h>
6 #include <rt/rt_api.h>
7 #include <stdint.h>
8
9 #define GPIO 20
10
(gdb) list
11 int __rt_fpga_fc_frequency = 20000000; // e.g. 20000000 for 20MHz;
12 int __rt_fpga_periph_frequency = 10000000; // e.g. 10000000 for 10MHz;
13
14 int main()
15 {
16 unsigned long i;
17
18 // First configure the SPI device
19 rt_spim_conf_t conf;
20 // Get default configuration
Now I want to place a breakpoint at line 19. Therefore what I get is:
(gdb) b 19
No line 19 in the current file.
Make breakpoint pending on future shared library load? (y or [n])
Therefore, it seems that something is wrong. If I issue the command 'continue' on gdb I get the message Continuing, and nothing happens.
I have tried the same flow, but issuing a 'source platform-fpga.sh' after step 4, but the result is the same.
Can you identify if something is missing or wrong in the steps I'm following? Any help will be appreciated.
In order to check if the program is being executed properly by Pulpissimo on the Zedboard I'm trying to turn OFF LED0 by changing the value of the CSN signal of SPI channel 1 that is mapped onto this LED, but without success until now.
Best regards,
Manuel
|
|
|
UART test case |
Posted by: mahalakshmir.ma - 12-05-2019, 08:01 AM - Forum: PULP General questions
- Replies (2)
|
|
Do anyone try running UART testcase(already available testUART.c) in PULPino?
I tried it but the simulation never ends, why so?. can anyone help me on this
I am getting the following in my transcript window
** Warning: NUMERIC_STD."=": metavalue detected, returning FALSE
# Time: 0 ps Iteration: 0 Instance: /tb/top_i/peripherals_i/apb_uart_i/UART_RXFF
# ** Warning: NUMERIC_STD."=": metavalue detected, returning FALSE
# Time: 0 ps Iteration: 0 Instance: /tb/top_i/peripherals_i/apb_uart_i/UART_TXFF
# Using MEMLOAD method: PRELOAD
# Using ri5cy core
# [SPI] Enabling QPI mode
# [adv_dbg_if] AXI4 WRITE 32 burst @1a107008 for 4 bytes.
# Preloading memory
# Preloading instruction memory from slm_files/l2_stim.slm
# Preloading data memory from slm_files/tcdm_bank0.slm
# [TRACER] Output filename is: trace_core_00_0.log
|
|
|
waves |
Posted by: mahalakshmir.ma - 11-29-2019, 10:28 AM - Forum: PULP General questions
- Replies (1)
|
|
hi
How to see waveforms in questasim while running the given testcases. I tried to add the signals to waveform window, but I am not able to do it. Is there any command available?.
|
|
|
Problem installing PULP-SDK |
Posted by: jmmarostegui - 11-27-2019, 12:49 PM - Forum: PULP General questions
- Replies (7)
|
|
Hello,
I'm trying to install PULP-SDK following the instructions provided in GitHub, but I get an error I can't understand and for which I haven't found any solution.
I'm starting from a clean Ubuntu 16.04 install, and the sequence of steps I follow (first I install the riscv gnu toolchain and then the PULP SDK) is:
1 - sudo -s
2 - apt install git python3-pip python-pip gawk texinfo libgmp-dev libmpfr-dev libmpc-dev swig3.0 libjpeg-dev lsb-core doxygen python-sphinx sox graphicsmagick-libmagick-dev-compat libsdl2-dev libswitch-perl libftdi1-dev cmake scons libsndfile1-dev
3 - pip3 install artifactory twisted prettytable sqlalchemy pyelftools openpyxl xlsxwriter pyyaml numpy configparser pyvcd
4 - sudo pip2 install configparser
5 - cd /opt
6 - mkdir riscv
7 - cd riscv
8 - git clone https://github.com/pulp-platform/pulp-ri...-toolchain
9 - cd pulp-riscv-gnu-toolchain
10 - git submodule update --init --recursive
11 - apt-get install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev
12 - export PATH=$PATH:/opt/riscv/bin
13 - ./configure --prefix=/opt/riscv --with-arch=rv32imc --with-cmodel=medlow --enable-multilib
14 - make
15 - export PULP_RISCV_GCC_TOOLCHAIN=/opt/riscv
16 - export VSIM_PATH=/opt/riscv/pulpissimo/sim
17 - cd ..
18 - git clone https://github.com/pulp-platform/pulp-sdk.git -b master
19 - cd pulp-sdk
20 - source configs/pulpissimo.sh
21 - make all
After this last command I get the following error:
Configuring Pulp project at /opt/riscv/pulp-sdk
Traceback (most recent call last):
File "./pulp-tools/bin/plpbuild", line 3, in <module>
import plptools as plp
File "/opt/riscv/pulp-sdk/pulp-tools/bin/plptools.py", line 27, in <module>
from plpobjects import *
File "/opt/riscv/pulp-sdk/pulp-tools/bin/plpobjects.py", line 32, in <module>
from openpyxl import Workbook
File "/usr/local/lib/python3.5/dist-packages/openpyxl/__init__.py", line 6, in <module>
from openpyxl.workbook import Workbook
File "/usr/local/lib/python3.5/dist-packages/openpyxl/workbook/__init__.py", line 4, in <module>
from .workbook import Workbook
File "/usr/local/lib/python3.5/dist-packages/openpyxl/workbook/workbook.py", line 7, in <module>
from openpyxl.worksheet.worksheet import Worksheet
File "/usr/local/lib/python3.5/dist-packages/openpyxl/worksheet/worksheet.py", line 392
return f"{get_column_letter(min_col)}{min_row}:{get_column_letter(max_col)}{max_row}"
^
SyntaxError: invalid syntax
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 1
Following the instructions provided in GitHub I check the versions of both python and pip. What I get is:
root@VBox:/opt/riscv/pulp-sdk# pip --version
pip 19.3.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
root@VBox:/opt/riscv/pulp-sdk# python3 --version
Python 3.5.2
Then I execute the commands suggested in GitHub:
python3 -m pip install --upgrade pip
python3 -m pip install artifactory twisted prettytable sqlalchemy pyelftools openpyxl xlsxwriter pyyaml numpy configparser pyvcd
However, when I run again 'make all' I get the same error. Since after looking for a solution I haven't found any clue how to fix it, could you provide me any hint to overcome this problem? Thank you very much in advance for your help.
Best regards,
Manuel
|
|
|
GDB Debugging with JTAG on Ariane |
Posted by: jthoma - 11-26-2019, 09:58 AM - Forum: PULP General questions
- Replies (4)
|
|
Hi,
I have problems using the JTAG debugging connection with GDB for the Ariane Softcore. The Genesys 2 Board is connected to my PC via JTAG. I have OpenOCD with RISC-V support installed on my machine and it seems to connect just fine:
Code: ~/Desktop/ariane $ openocd -f fpga/ariane.cfg
Open On-Chip Debugger 0.10.0+dev-00828-gde00906eb (2019-11-25-14:04)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
Info : clock speed 1000 kHz
Info : JTAG tap: riscv.cpu tap/device found: 0x00000001 (mfg: 0x000 (<invalid>), part: 0x0000, ver: 0x0)
Info : datacount=2 progbufsize=8
Info : Examined RISC-V core; found 1 harts
Info : hart 0: XLEN=64, misa=0x800000000014112d
Info : Listening on port 3333 for gdb connections
Ready for Remote Connections
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : accepting 'gdb' connection on tcp/3333
This does look quite similar to the output in the Ariane git with the exception of this line:
Info : JTAG tap: riscv.cpu tap/device found: 0x00000001 (mfg: 0x000 (<invalid>), part: 0x0000, ver: 0x0)
I don't know whether this causes the problem or not gdb seems to connect just fine.
Okay, now to the actual problem. If I connect gdb and load the binary (a simple hello world), the PC points to _start. Unfortunately, _start contains loads of unimp instructions and does not redirect the program flow to the main function. Thus, if I do a continue, nothing happens. Same goes for break main etc. as the main function is apparently never called. See the GDB output below:
Code: Reading symbols from ./out...
(gdb) target extended-remote :3333
Remote debugging using :3333
0x000000000001071c in _vfprintf_r ()
(gdb) load
Loading section .text, size 0xbd2c lma 0x100b0
Loading section .rodata, size 0xd08 lma 0x1bde0
Loading section .eh_frame, size 0x4 lma 0x1dae8
Loading section .init_array, size 0x10 lma 0x1daf0
Loading section .fini_array, size 0x8 lma 0x1db00
Loading section .data, size 0x1100 lma 0x1db08
Loading section .sdata, size 0x58 lma 0x1ec08
Start address 0x100c6, load size 56232
Transfer rate: 47 KB/sec, 5623 bytes/write.
(gdb) where
#0 0x00000000000100c6 in _start ()
(gdb) x/5i $pc
=> 0x100c6 <_start>: unimp
0x100c8 <_start+2>: unimp
0x100ca <_start+4>: unimp
0x100cc <_start+6>: unimp
0x100ce <_start+8>: unimp
(gdb) cont
Continuing.
Interestingly, if I disassemble the _start function in a local GDB Session, it looks like this:
Code: (gdb) disassemble _start
Dump of assembler code for function _start:
0x00000000000100c6 <+0>: auipc gp,0xe
0x00000000000100ca <+4>: addi gp,gp,1066 # 0x1e4f0 <__malloc_av_+248>
0x00000000000100ce <+8>: addi a0,gp,1904
0x00000000000100d2 <+12>: auipc a2,0xf
0x00000000000100d6 <+16>: addi a2,a2,-994 # 0x1ecf0
0x00000000000100da <+20>: sub a2,a2,a0
0x00000000000100dc <+22>: li a1,0
0x00000000000100de <+24>: jal ra,0x1020c <memset>
0x00000000000100e2 <+28>: auipc a0,0x9
0x00000000000100e6 <+32>: addi a0,a0,-1238 # 0x18c0c <atexit>
0x00000000000100ea <+36>: beqz a0,0x100f8 <_start+50>
0x00000000000100ec <+38>: auipc a0,0x2
0x00000000000100f0 <+42>: addi a0,a0,1108 # 0x12540 <__libc_fini_array>
0x00000000000100f4 <+46>: jal ra,0x18c0c <atexit>
0x00000000000100f8 <+50>: jal ra,0x101a2 <__libc_init_array>
0x00000000000100fc <+54>: lw a0,0(sp)
0x00000000000100fe <+56>: addi a1,sp,8
0x0000000000010100 <+58>: li a2,0
0x0000000000010102 <+60>: jal ra,0x1015c <main>
0x0000000000010106 <+64>: j 0x10184 <exit>
Am I missing something here? Do I need an extra GDB command to load the _start funtion or does it have to be compiled in a specific way? I compiled the binary with riscv64-unknown-elf-gcc test.c -o out and also tried adding -ffreestanding.
Thank you!
- Jan
|
|
|
HEX Files |
Posted by: mahalakshmir.ma - 11-25-2019, 07:10 AM - Forum: PULP General questions
- Replies (5)
|
|
Hi,
In PULPino environment there are some HEX Files getting generated while i tried to run testcase. So my query is where the conversion from C to HEX file is taking place (code & path).
thanks in advance.
(11-25-2019, 07:10 AM)mahalakshmir.ma Wrote: Hi,
In PULPino environment there are some HEX Files getting generated while i tried to run testcase. So my query is where the conversion from C to HEX file is taking place (code & path).
thanks in advance.
PULPino environment - https://github.com/pulp-platform/pulpino
|
|
|
PULPissimo Synthesis and Clock Distribution |
Posted by: AhmedZaky - 11-20-2019, 06:55 AM - Forum: PULP General questions
- Replies (1)
|
|
Hi all,
First of all, thanks a lot for your help and support.
I was wondering if there is a synthesis - clean version of PULPissimo that's already released to the public. If not, is there any document / way to understand how the clock the distribution is going ?
What I understand, correct me if I am wrong, that in the case of:
1- FPGA, u r using a reference clock of 200 MHz to generate two internal clocks by divisions: A- Soc_clk = 20Mhz , B- periph_clk = 10Mhz.
2- In case of the RTL simulation, you r feeding from the TB a reference clock of ~ 32KHz and somehow, using DCO, FLL generating two clocks soc_clk = periph_clk = 17.5 MHz.
If I am correct, are this on-chip clock generation modules synthesizable? Or they should be mapped to IPs in the PDK ?
---------
Assuming that I want to drive the whole chip using the external clock, is it save to just remove all the " fll, DCO.. etc" modules and pass the signal through the modules to all the system components ? I mean the PAD_xtal_clk, pass it for the fc_subsystem, l2_memory .. etc and the system can work on that clock ? I already did simulation and it worked, but I am making sue that I didn't miss anything as I didn't test the system exhaustively.
Thanks in advance.
|
|
|
|