Welcome, Guest
You have to register before you can post on our site.



Search Forums

(Advanced Search)

Forum Statistics
» Members: 678
» Latest member: mituakter1
» Forum threads: 172
» Forum posts: 591

Full Statistics

Latest Threads
PULPino or PULPismo ? for...
Forum: PULP General questions
Last Post: sit-vlsi
Yesterday, 11:46 AM
» Replies: 3
» Views: 57
Queries in FPU for cv32e4...
Forum: PULP General questions
Last Post: meggiman
02-25-2021, 08:05 PM
» Replies: 1
» Views: 55
Getting input from consol...
Forum: PULP General questions
Last Post: nayan
02-25-2021, 12:35 PM
» Replies: 4
» Views: 222
Interrupt Service Routine...
Forum: PULP General questions
Last Post: RiscV
02-24-2021, 09:16 AM
» Replies: 2
» Views: 152
Question about bitstream ...
Forum: PULP General questions
Last Post: zorrolee777
02-23-2021, 08:22 PM
» Replies: 4
» Views: 448
using axi from rtl and C ...
Forum: PULP General questions
Last Post: meggiman
02-23-2021, 02:20 PM
» Replies: 5
» Views: 3,347
fullduplex communication ...
Forum: PULP General questions
Last Post: chikku
02-23-2021, 07:27 AM
» Replies: 0
» Views: 57
pulp-rt-example Makefile ...
Forum: PULP General questions
Last Post: nikolas
02-18-2021, 03:39 PM
» Replies: 1
» Views: 390
how to simulate CV32E40P ...
Forum: PULP General questions
Last Post: gsaitejareddy
02-08-2021, 03:58 PM
» Replies: 2
» Views: 399
Compiling for RISCY witho...
Forum: PULP General questions
Last Post: LarsKeuninckx
01-28-2021, 09:28 AM
» Replies: 2
» Views: 473

  pulp-rt-example Makefile and assembly code
Posted by: monniaux - 01-21-2021, 10:37 PM - Forum: PULP General questions - Replies (1)

What is the correct way to add assembly files (.s) to a project compiled with the Makefile system in the SDK?
Adding them to PULP_APP_FC_SRCS leads to strange errors.

Print this item

  simple runtime vs full SDK, when to use which one?
Posted by: LarsKeuninckx - 01-21-2021, 12:37 PM - Forum: PULP General questions - Replies (2)

Two questions regarding the SDK.
The readme at https://github.com/pulp-platform/pulpissimo says:

"We provide a simple runtime and a full featured runtime for PULPissimo. We recommend you try out first the minimal runtime and when you hit its limitations you can try the full runtime by installing the SDK."

1. What exactly are the limitations of the "simple runtime" vs the "full runtime SDK"? When to use which one?

2. How do you switch between the simple runtime and full runtime SDK? What is the proper way to uninstall the SDK? Just delete the pulp-sdk folder and git clone again?


Print this item

  Maximum frequency obtained when synthesizing the RI5CY core multiplier with 28 FD-SOI
Posted by: Olivier - 01-18-2021, 08:57 AM - Forum: PULP General questions - Replies (1)


Out of curiosity, I'm learning more about the RI5CY core, especially the ex_stage. I read the Near-Threshold RISC-VCore With DSP Extensions for Scalable IoT Endpoint Devices paper and I got the core from the dedicated github page. Using Synopsys Design Compiler and the 28nm FD-SOI technology (the only technology available to me), I synthesized the multiplier (mult.sv) present in the RI5CY core. I obtain a maximum operating frequency of the multiplier of 200 MHz.

This frequency seems to me a little low. Considering the various documents I have seen on the internet, I would expect to obtain a frequency rather between 450 and 650 MHz.

Does anyone know if the maximum frequency of 200MHz is actually too low for the RI5CY core multiplier?

Thank you in advance.

Print this item

  μClinux on Ibex or CV32E40P?
Posted by: limone - 01-15-2021, 05:13 AM - Forum: PULP General questions - Replies (3)


I am exploring the various pros and cons to adapting 32-bit cores Ibex & CV32E40P to run μClinux (w/o MMU). If the power efficiency is not much less, I can understand the benefits of using CVA6 which can run full-featured (MMU) linux, but I am curious what the power consumption is for CVA6- I do not have access to the paper: "Slow and steady wins the race? A comparison of ultra-low-power RISC-V cores for Internet-of-Things applications." 

However I did read, "Micro-riscy is 1.6× smaller than Zero-riscy (∼11.6 kgates in UMC 65nm), has a power envelope of just 100μW at 160MHz and it is 1.4× more energy efficient than Zero-riscy on pure control code."

I would also like access to: "Near-Threshold RISC-V Core With DSP Extensions for Scalable IoT Endpoint Devices" In a low-power 28-nm FD-SOI process, a peak efficiency of 193 MOPS/mW (40 MHz and 1 mW) can be achieved." 

From reading the abstract, it appears Ibex can run at 100uW, and another core, in the 2nd article, runs at 1mW- Is that CV32E40P?

The reason I am asking is, I would like to build upon a research paper, the "Battery-Free Game Boy" in Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies September 2020 Article No.: 111, which uses an Ambiq Micro Apollo3 board running at sub-threshold voltage, similar to the near-threshold voltage of the RISC-V Core mentioned above. The theory is, if μClinux could be adapted to run on Ibex or CV32E40P, using external memory for RAM, an iPod, android phone, or even a laptop could be built with it and be powered by amorphous solar panels, and ultra-low power e-ink, with battery backup. Thank you.

Print this item

  Configuring Pulpissimo as IP for Vivado IP Integrator to use AXI peripherals
Posted by: FrankieTankie - 01-07-2021, 03:53 PM - Forum: PULP General questions - No Replies

I'm currently trying to set up a Pulpissimo IP Core which can be used with Vivado IP Integrator to fasten the integration of AXI peripherals. I managed so far to route the AXI slave channels to the TL domain where I added corresponding pads which can be used to create an AXI AMBA interface. As the slave interface uses a 64-bit data channel I'm going to use Xilinx data converter IP to get a 32-bit data channel. What I'm missing at the moment is AXI clock and reset channels. 
My question therefore is if the cluster clock would be suitable to use it, if there is already a dedicated AXI clock or reset, or if a dedicated clock divider for AXI has to be integrated. In the last case the question would be where to get a suitable clock signal.
Any is appreciated.

Print this item

  Interrupt handling problem
Posted by: nikolas - 01-05-2021, 03:01 PM - Forum: PULP General questions - Replies (1)

Hi there 

I have a question about the interrupt handling of a PULPissimo with a RI5CY core. 

The thing is, I am able to generate timer interrupts as long as I use the rt_api.h file and the functions, that are implemented there. Everything works fine then. 
It would be very nice now, if it is possible to write my own functions. So I took the PULPissimo datasheet and started to set the right registers. 
For testing reasons I want to generate interrupts from one of the APB Timers, jump into a callback function and toggle an LED. But that does not happen.

The program jumps once into the callback function but after never again. If I debug and set a breakpoint in the callback function, this breakpoint will never be reached twice.
Also tested the timer if everything works there as expected and it looks like the timer is fine. And in the interrupt pending register the correct bit is set but it does not jump.

My question now is, is there something else, maybe an other register or something, that I have to clear or set? Maybe I did not understand the interrupt handling right?

Would be nice if someone can help me here.

* @file    main.c
* @author    
* @brief    This is a testing program for the PULPissimo microcontroller that is implemented on a FPGA NEXYS4 board.
*        There is a hardware abstraction layer, that was created for that board. This program helps to find out
*        if everything is working as expected.
* @date    2021-01-02
* @version    v1.0
//#include <stdio.h>
#include <stdint.h>
#include "HAL/hal_gpio.h"
#include "HAL/HAL_Defines.h"
#include "HAL/hal_timer.h"
#include "HAL/hal_interrupt.h"
#include "HAL/pulpissimo.h"
//#include <rt/rt_api.h>

//int __rt_fpga_fc_frequency = 20000000;
//int __rt_fpga_periph_frequency = 10000000;
//unsigned int __rt_iodev_uart_baudrate = 115200;

* @note   -
* @brief  Callback function for timer interrupt.
* @param  -
* @return -
void callback_3(void)
 INT_MASK_R &= ~0x400; //disable timer interrupt line
 TIM_CFG_LO &= ~0x4;    //diasable timer interrupts
 INT_ACK_R  &= ~0x400; //clear interrupt ACK flag

 hal_gpio_toggle(LED0); //toggle LED0

 INT_CTR_R &= ~0x400; //clear pending interrupt flag
 INT_MASK_R |= 0x400; //enable timer interrupt line
 TIM_CFG_LO |= 0x4;   //enable timer interrupts    

int main()
 hal_gpio_init(LED0, OUTPUT); //init LED0
 hal_gpio_init(LED1, OUTPUT); //init LED1

 hal_gpio_write(LED0, LOW); //turn off LED0
 hal_gpio_write(LED1, LOW); //turn off LED1

 INT_MASK_R &= ~0xFFFFFFFF; //disable all interrupt lines
 INT_CTR_R  &= ~0xFFFFFFFF; //clear all pending interrupts
 TIM_CNT_LO &= ~0xFFFFFFFF; //set timer count register to zero
 hal_interrupt_set_handler(10, callback_3); //register callback function for timer interrupt

 hal_timer1_init(0, RTC_32KHZ, CONTINUE,CMP_RST);     //init timer
 hal_timer1_set_cmp(0xFFFF);                //set timer compare register value            
 hal_timer1_en_int(1);                    //enable timer interrupts
 hal_timer1_start();                    //start timer

   //checks if timer is running as expected
   if(TIM_CNT_LO >= 0xFFF)
    hal_gpio_write(LED1, 1);
    hal_gpio_write(LED1, 0);
 return 0;

If it helps to understand my problem, here is the little test application I would like to run. The functions, that I wrote do not much more than setting the right bits of the right registers.

Thank you very much and wish you all a nice evening

Print this item

  The signed/unsigned operation support by the Dotp-Unit of the RI5CY core
Posted by: Olivier - 01-05-2021, 09:42 AM - Forum: PULP General questions - Replies (1)

Hello and Happy New Year,

I took a look at the Near-Threshold RISC-VCore With DSP Extensions for Scalable IoT Endpoint Devices paper.

At the Dotp-Unit side, there are two 17bx17b multipliers and four 9bx9b multipliers respectively the input operands are 16b and 8b. The support of signed operations is achieved by adding a sign bit to each input operand.

The input values supported by the 17bx17b and 9bx9b multipliers should be between -65536 to 65535 and -256 to 255 respectively. With this choice, we move away from the classical short and char data types supporting data values between -32768 to 32767 and -128 to 127 respectively.

I can't understand why an extra sign bit is needed on data 16b and 8b for the execution of signed operations.
Can someone enlighten me with additional information about this choice to add an extra sign bit to data 16b and 8b?

Thank you in advance,

Print this item

  Does Pulpissimo already contain VCC & GND pins?
Posted by: traVc - 01-03-2021, 06:16 PM - Forum: PULP General questions - Replies (3)

I was wondering whether Pulpissimo already contains VCC & GND (power supply) pins or if those have to be added for ASIC design?

If they have to be added - what would be the easiest way to do so?

Print this item

  [Vivado] behavioural simulation won't start
Posted by: andrea.spitale - 12-10-2020, 11:14 AM - Forum: PULP General questions - Replies (7)

Hi there!
I'm posting here as I am having some trouble with setting up PULPissimo to be behaviourally simulated (i.e. pre synthesis) on Vivado. In order to do so, I've cloned the PULPissimo repository, then run the update ips script and finally loaded all files from ips and rtl folders into vivado project. I'll list the issues I've encountered, together with vivado logs describing the errors and warning the software detected, considering I am running a fully licensed 2020.2 version under Linux.

1) i've a huge issue with "include" files, that is the files referred by `include directives. The vivado log referring to this issue is the one named "vivado_include.log".
1.1) Initially I managed to fix some of these errors by adding the paths to the folders containing those files in "Verilog Include Files Search Paths", which is a setting that can be found by going through Project Manager -> Settings -> General(and Simulation) -> Verilog Options, but this means adding one path for every "include" error the compiler detects, so it requires a lot of work. Moreover it doesn't seem to be always working, as it didn't fix the problem when I created a new project and the log content was the same as "vivado_include.log".

2) I created another project, this time copying and including all .sv, .svh, .v files from ips and rtl PULPissimo folders, so all files are in the same folder. I had to modify the `include directives of "fpnew" IP files in order to have correct `include paths. Moreover I had to comment out the "`ifdef synthesis" directive in hwpe_ctrl_interfaces.sv, as the compiler was not able to recognize "timeunit" and "timeprecision" keywords, although it should. Then, using xilinx related scripts inside "fpga/zcu102" folder as a guideline, I created the Xilinx IPs PULPissimo requires, that is two BRAMs and two clock generators, named xilinx_clk_mngr, xilinx_slow_clk_mngr, xilinx_private_ram and xilinx_interleaved_ram. Once I ran the behavioural simulation process, the compile phase went fine, but then the elaborate one was stopped with errors listed in "vivado_elaborate.log" file. I have to say I also read some warnings during compile phase, which details are again listed in "vivado_elaborate.log".

3) I created a new project, importing all files from ip and rtl folders. I've set some of the files referred by `include directives as "verilog header" from the files properties. Then I copied the registers.svh file inside "common_cells" folder of FPNEW ip, as the compiler was not able to find it. Moreover I had to comment out the "`ifdef synthesis" directive in hwpe_ctrl_interfaces.sv. However I still encountered errors after running behavioural simulation process, one of them referring to file riscv_alu.sv, with compiler indicating that  "riscv_defines" packanot being declared.ge has not been declared. The log of this operation is inside "vivado_third_attempt.log".

All .log files are inside the attached "vivado_error_logs.zip" file.

Hope everything is clear. Thank you for your time!

Attached Files
.zip   vivado_errors_logs.zip (Size: 6.6 KB / Downloads: 0)
Print this item

  How to solve the problem of missing modules “pulpissimo”?
Posted by: LanXu - 12-08-2020, 09:05 AM - Forum: PULP General questions - Replies (1)

   I want run openPULP project in zcu104 FPGA.After i ran update_ips script,i make  zcu104 under the path ../workspace/pulp/pulp/fpga.The following error occurred:
  ERROR: [Synth 8-439] module 'pulpissimo' not found [../workspace/pulp/pulp/fpga/pulpissimo-zcu104/rtl/xilinx_pulpissimo.v:99]
   I want to know how to fix this problem,and Is it necessary to build the SDK?  Can the SDK be built on the centos7 system?and how?

Print this item