Author |
Message |
Topic: RISC-V Cannot add U-type instruction |
JensVkb
Replies: 2
Views: 501
|
Forum: Ask a Question Posted: Tue Apr 19, 2022 10:23 pm Subject: RISC-V Cannot add U-type instruction |
We are trying to add a U-type instruction to the RISC-V model, but the available API seems to be missing some necessary definitions.
We've used the RISC-V model API and its documentation available ... |
Topic: I want to know how to write my own module or peripherals? |
JensVkb
Replies: 20
Views: 9509
|
Forum: Ask a Question Posted: Thu Apr 15, 2021 4:31 am Subject: I want to know how to write my own module or peripherals? |
I'm not allowed to share all my models, but a simple TimeOut peripheral I built once:
pse.tcl
# peripheral that generates one interrupt
imodelnewperipheral \
-name timeOut \
-vendor ovpwor ... |
Topic: I want to know how to write my own module or peripherals? |
JensVkb
Replies: 20
Views: 9509
|
Forum: Ask a Question Posted: Thu Apr 15, 2021 3:45 am Subject: I want to know how to write my own module or peripherals? |
It' been a while since I wrote my own peripherals, but if I'm not mistaken the process was as follows:
1) write a pse.tcl file, which describes the hardware your peripheral (addresses, registers et ... |
Topic: I want to know how to write my own module or peripherals? |
JensVkb
Replies: 20
Views: 9509
|
Forum: Ask a Question Posted: Thu Apr 15, 2021 2:17 am Subject: I want to know how to write my own module or peripherals? |
Dear LinFengJ
The documentation is great place to start: https://www.ovpworld.org/igen-peripheral-generator-user-guide and https://www.ovpworld.org/function-by-function-reference-guide-for-bhm-ppm- ... |
Topic: How to know if a conditional instruction is executed ? |
JensVkb
Replies: 1
Views: 2198
|
Forum: Ask a Question Posted: Thu Apr 15, 2021 2:08 am Subject: How to know if a conditional instruction is executed ? |
Hi
In ARMv7-M, instructions can be made conditional, so they only have to execute when a certain condition (equal, less than, greater than, etc.) is true.
I want to do some instruction and regis ... |
Topic: memory leak? |
JensVkb
Replies: 3
Views: 5240
|
Forum: Ask a Question Posted: Tue Apr 24, 2018 3:50 am Subject: memory leak? |
Thanks again for investigating. |
Topic: memory leak? |
JensVkb
Replies: 3
Views: 5240
|
Forum: Ask a Question Posted: Thu Apr 19, 2018 5:10 am Subject: memory leak? |
Hi
I have the following code in the main() of my harness.cpp (simplified):
opSessionInit(OP_VERSION);
cmdParser = myCustomCmdParser();
cmdParser->parseCmd();
bool c ... |
Topic: Filling up unused code space |
JensVkb
Replies: 1
Views: 3990
|
Forum: Ask a Question Posted: Fri Apr 13, 2018 3:52 am Subject: Filling up unused code space |
Hi
I would like to fill up the unused code space of my program with the 0xE7FE instruction, so the program would halt if the program counter would ever point to such unused address.
According to ... |
Topic: Object Oriented C++ harness |
JensVkb
Replies: 11
Views: 11412
|
Forum: Ask a Question Posted: Fri Mar 23, 2018 7:25 am Subject: Object Oriented C++ harness |
I tried your suggestion on a dummy project, and you're right. Using $(OBJDIR) to specify the LINK_OBJ compiles them with the correct options.
The entire makefile then becomes:
IMPERAS_HOME : ... |
Topic: Object Oriented C++ harness |
JensVkb
Replies: 11
Views: 11412
|
Forum: Ask a Question Posted: Thu Mar 22, 2018 5:56 am Subject: Object Oriented C++ harness |
My test confirmed the created harness works.
For those interested: my makefile looks like this now. (as said, it is based on the Makefile.harness)
IMPERAS_HOME := $(shell getpath.exe & ... |
Topic: Object Oriented C++ harness |
JensVkb
Replies: 11
Views: 11412
|
Forum: Ask a Question Posted: Thu Mar 22, 2018 5:40 am Subject: Object Oriented C++ harness |
Hi
I tried that, but it does not compile otherClass.cpp using the correct options. It reverts back to a standard buitin recipe:
g++ -c -o otherClass.o otherClass.cpp
As can be seen, this mi ... |
Topic: Object Oriented C++ harness |
JensVkb
Replies: 11
Views: 11412
|
Forum: Ask a Question Posted: Thu Mar 22, 2018 1:40 am Subject: Object Oriented C++ harness |
So, in my quest to build a more OO styled c++ harness, I've come across a new problem: i cannot include "op/op.hpp" in any other file than the harness.cpp file (which contains the main-metho ... |
Topic: opRootModuleStateSaveFile/RestoreFile |
JensVkb
Replies: 4
Views: 6330
|
Forum: Ask a Question Posted: Mon Jan 29, 2018 1:02 am Subject: opRootModuleStateSaveFile/RestoreFile |
Yes that is what I want.
I thought about that option, but wouldn't that retrieve and release a license each time? And would that break the simulation if a license is not found? 'My license(s)' are ... |
Topic: opRootModuleStateSaveFile/RestoreFile |
JensVkb
Replies: 4
Views: 6330
|
Forum: Ask a Question Posted: Mon Jan 29, 2018 12:16 am Subject: opRootModuleStateSaveFile/RestoreFile |
Is there a way to surpress the warning Warning (OP_SRUS) 'u1' might not support save and restore ? |
Topic: opRootModuleStateSaveFile/RestoreFile |
JensVkb
Replies: 4
Views: 6330
|
Forum: Ask a Question Posted: Fri Jan 26, 2018 5:07 am Subject: Sorry, My Bad! |
Hi,
Sorry, the opRootModuleStateSafeFile and -RestoreFile do work. The problem is with the startup procedure of my Cortex-M3. I use the CMSIS and startup files from Cortex-M3 based microcontrolle ... |
|