OVP Forums - A community of assistance, help, questions, and answers.
|
View previous topic :: View next topic |
Author |
Message |
YoudD
Joined: 15 Mar 2021 Posts: 22
|
Posted: Wed Oct 27, 2021 1:26 am Post subject: SystemC model and OVP environment |
|
|
Now I have my own peripheral model written in SystemC and I integrate it into OVP using the following method:
Firstly,I use the Examples/PlatformConstruction/SystemC_TLM which generates an example TLM platform.Then I I wrote a TLM2.0 interface for my model using socket.register_b_transport and directed it to the bus in the platform.sc_constructor.igen.h,such as
[color=blue]////////////////////////////////////////////////////////////////////////////////
// simple Class
////////////////////////////////////////////////////////////////////////////////
class simple : public sc_module {
public:
simple (sc_module_name name);
tlmRam ram1;
tlmRam ram2;
tlmModule Platform;
tlmDecoder bus1;
arm_ARM966E cpu1;
//or1k cpu1;
TLMP TLM1;
extension armNewlib_0;
//extension or1kNewlib_0;
params paramsForsimple() {
params p;
p.set("stoponcontrolc", true);
return p;
}
params paramsForcpu1() {
params p;
return p;
}
}; /* simple */
////////////////////////////////////////////////////////////////////////////////
// simple Constructor
////////////////////////////////////////////////////////////////////////////////
simple::simple (sc_module_name name)
: sc_module (name)
, ram1 (Platform, "ram1", 0xffffff)
, ram2 (Platform, "ram2", 0xffffff)
, Platform ("", paramsForsimple())
, bus1(Platform, "bus1", 2, 3)
, cpu1 ( Platform, "cpu1", paramsForcpu1(), 32, 32)
,TLM1(Platform,"TLM1",0x10)
, armNewlib_0(cpu1, opVLNVString (NULL, "arm.ovpworld.org", "semihosting", "armNewlib", "1.0", OP_EXTENSION, 1), "armNewlib_0")
//, or1kNewlib_0(cpu1, opVLNVString (NULL, "ovpworld.org", "semihosting", "or1kNewlib", "1.0", OP_EXTENSION, 1), "or1kNewlib_0")
{
// bus1 masters
bus1.connect(cpu1.INSTRUCTION);
bus1.connect(cpu1.DATA);
// bus1 slaves
bus1.connect(ram1.sp1,0x0, 0xffffff); // Memory (0)
bus1.connect(ram2.sp1,0xff000000, 0xffffffff); // Memory (1)
bus1.connect(TLM1.bport,0x10001000,0x10001010);
}[/color]
Finally,I write programs to accomplish System functions and run the command:Platform/platform.Linux.exe -program application.ARM9E.elf.
Now I wonder if I can get the performance data or the Power Consumption of the System.If not ,how can I get these data?
Thank you![/b][/code] |
|
Back to top |
|
 |
DuncGrah OVP Technologist

Joined: 27 Feb 2008 Posts: 1642 Location: United Kingdom
|
Posted: Wed Oct 27, 2021 8:26 am Post subject: |
|
|
The OVP simulator provides information at an instruction level. This can be used to provide some estimations.
The Imperas professional products can be used to obtain information from an executingapplication and this has been used by the European SafePower project a few years ago to obtain more accurate performance and power consumption estimations. |
|
Back to top |
|
 |
YoudD
Joined: 15 Mar 2021 Posts: 22
|
Posted: Wed Oct 27, 2021 6:26 pm Post subject: |
|
|
DuncGrah wrote: | The OVP simulator provides information at an instruction level. This can be used to provide some estimations.
The Imperas professional products can be used to obtain information from an executingapplication and this has been used by the European SafePower project a few years ago to obtain more accurate performance and power consumption estimations. |
Thank you!But how can I get the Imperas professional products? |
|
Back to top |
|
 |
DuncGrah OVP Technologist

Joined: 27 Feb 2008 Posts: 1642 Location: United Kingdom
|
Posted: Thu Oct 28, 2021 1:45 am Post subject: |
|
|
Universities can register for the Imperas University Program. This can provide access to the professional products free of charge for academic and educational usage.
Please contact univ@imperas.com |
|
Back to top |
|
 |
YoudD
Joined: 15 Mar 2021 Posts: 22
|
Posted: Mon Nov 08, 2021 12:59 am Post subject: |
|
|
DuncGrah wrote: | Universities can register for the Imperas University Program. This can provide access to the professional products free of charge for academic and educational usage.
Please contact univ@imperas.com |
Sorry,I have sent the email that explained I want to join the Imperas University Program and hope to send the SLA as soon as possible.
But there was no reply.How should I deal with it? |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Information regarding OVP © 2008-2022 Imperas Software
|