Sims error Code C

40 views
Skip to first unread message

Hung Tran Quoc

unread,
Apr 17, 2024, 11:13:38 AMApr 17
to OpenPiton Discussion
Hi there, 
I'm running a sims OpenPiton test file code C to read data from a text file, but encountering an error. imgpsh_fullsize_anim (1).png
The error is in the "fopen" function. I don't know how to fix this error because it have library of toolchains.

Jonathan Balkind

unread,
Apr 17, 2024, 11:15:31 AMApr 17
to OpenPiton Discussion
The simulation is a bare metal environment. There is no filesystem so there is no fopen. BlackParrot has a creative approach to this issue known as dramfs (https://github.com/black-parrot-sdk/black-parrot-sdk) which you could consider adopting but I likely wouldn't be able to provide any meaningful support in pursuing that.

--
You received this message because you are subscribed to the Google Groups "OpenPiton Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpiton+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openpiton/18d5db23-5e17-4507-89e4-cbae58a4969dn%40googlegroups.com.

Quoocs Huwng

unread,
Apr 22, 2024, 3:27:29 PMApr 22
to OpenPiton Discussion
I have a question that the noc data is being transmitted in 64 bits while my IP transmits data in 32 bits. I think they won't be compatible with each other. So can I change the noc data width to 32 bits? 

Vào lúc 22:15:31 UTC+7 ngày Thứ Tư, 17 tháng 4, 2024, jbal...@ucsb.edu đã viết:

Jonathan Balkind

unread,
Apr 23, 2024, 12:02:54 AMApr 23
to OpenPiton Discussion
The noc width cannot be easily changed. However our AXI-Lite bridge can easily be used with 32b devices. If this is a peripheral device then it should be connectable similarly without issue.

Thanks,
Jon

Quoocs Huwng

unread,
Apr 25, 2024, 5:51:22 PMApr 25
to OpenPiton Discussion
Thank Jon, 
And Could you provide the memory map of all available components in OpenPiton or have datasheets for this SoC?

Vào lúc 11:02:54 UTC+7 ngày Thứ Ba, 23 tháng 4, 2024, jbal...@ucsb.edu đã viết:

Jonathan Balkind

unread,
Apr 29, 2024, 6:23:00 PMApr 29
to OpenPiton Discussion
You can find the information you are looking for in riscvlib.py, devices_ariane.xml, and the output .dts file. It depends on the configuration of the system that you choose so I cannot give you a single answer.

Thanks,
Jon

Reply all
Reply to author
Forward
0 new messages