We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For a simple firmware with a small-footprint printf:
#include <stdint.h> //#include <stdio.h> #include "bsp.h" #include "printf.h" #define GPIO_REG 0x01000000 int main(void) { volatile uint32_t *gpio = (void*) GPIO_REG; uint32_t cnt = 0; printf("Hello world\n"); while(1) { printf("%u miliseconds passed\n",time_in_ms()); *gpio = cnt; cnt++; delay_ms(1000); } return 0; }
I get .text section of size 22kB.
.text
As a result fixing:
imem
dmem
.data
Resulting utilization:
Info: Device utilisation: Info: TRELLIS_SLICE: 23649/41820 56% Info: TRELLIS_IO: 91/ 365 24% Info: DCCA: 1/ 56 1% Info: DP16KD: 49/ 208 23% Info: MULT18X18D: 0/ 156 0% Info: ALU54B: 0/ 78 0% Info: EHXPLLL: 0/ 4 0% Info: EXTREFB: 0/ 2 0% Info: DCUA: 0/ 2 0% Info: PCSCLKDIV: 0/ 2 0% Info: IOLOGIC: 0/ 224 0% Info: SIOLOGIC: 0/ 141 0% Info: GSR: 0/ 1 0% Info: JTAGG: 0/ 1 0% Info: OSCG: 0/ 1 0% Info: SEDGA: 0/ 1 0% Info: DTR: 0/ 1 0% Info: USRMCLK: 0/ 1 0% Info: CLKDIVF: 0/ 4 0% Info: ECLKSYNCB: 0/ 10 0% Info: DLLDELD: 0/ 8 0% Info: DDRDLL: 0/ 4 0% Info: DQSBUFM: 0/ 14 0% Info: TRELLIS_ECLKBUF: 0/ 8 0% Info: ECLKBRIDGECS: 0/ 2 0% Info: DCSC: 0/ 2 0%
Synthesis time: 26min
The text was updated successfully, but these errors were encountered:
With dmem being 8kB (more reasonable) I am getting:
Info: Device utilisation: Info: TRELLIS_SLICE: 32701/41820 78% Info: TRELLIS_IO: 91/ 365 24% Info: DCCA: 1/ 56 1% Info: DP16KD: 49/ 208 23% Info: MULT18X18D: 0/ 156 0% Info: ALU54B: 0/ 78 0% Info: EHXPLLL: 0/ 4 0% Info: EXTREFB: 0/ 2 0% Info: DCUA: 0/ 2 0% Info: PCSCLKDIV: 0/ 2 0% Info: IOLOGIC: 0/ 224 0% Info: SIOLOGIC: 0/ 141 0% Info: GSR: 0/ 1 0% Info: JTAGG: 0/ 1 0% Info: OSCG: 0/ 1 0% Info: SEDGA: 0/ 1 0% Info: DTR: 0/ 1 0% Info: USRMCLK: 0/ 1 0% Info: CLKDIVF: 0/ 4 0% Info: ECLKSYNCB: 0/ 10 0% Info: DLLDELD: 0/ 8 0% Info: DDRDLL: 0/ 4 0% Info: DQSBUFM: 0/ 14 0% Info: TRELLIS_ECLKBUF: 0/ 8 0% Info: ECLKBRIDGECS: 0/ 2 0% Info: DCSC: 0/ 2 0%
Sorry, something went wrong.
podhrmic
No branches or pull requests
For a simple firmware with a small-footprint printf:
I get
.text
section of size 22kB.As a result fixing:
imem
at 24kB.dmem
at 4kB which is barely enough for a tiny stack/heap and.data
section.Resulting utilization:
Synthesis time: 26min
The text was updated successfully, but these errors were encountered: