OVP Forums - A community of assistance, help, questions, and answers.
  FAQFAQ    SearchSearch      RegisterRegister  ProfileProfile    Log in to check your private messagesLog in to check your private messages    Log inLog in
SystemC model and OVP environment

 
Post new topic   Reply to topic    Open Virtual Platforms Forum Index -> Getting started
View previous topic :: View next topic  
Author Message
YoudD



Joined: 15 Mar 2021
Posts: 22

PostPosted: Wed Oct 27, 2021 1:26 am    Post subject: SystemC model and OVP environment Reply with quote

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
View user's profile Send private message
DuncGrah
OVP Technologist
OVP Technologist


Joined: 27 Feb 2008
Posts: 1642
Location: United Kingdom

PostPosted: Wed Oct 27, 2021 8:26 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
YoudD



Joined: 15 Mar 2021
Posts: 22

PostPosted: Wed Oct 27, 2021 6:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
DuncGrah
OVP Technologist
OVP Technologist


Joined: 27 Feb 2008
Posts: 1642
Location: United Kingdom

PostPosted: Thu Oct 28, 2021 1:45 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
YoudD



Joined: 15 Mar 2021
Posts: 22

PostPosted: Mon Nov 08, 2021 12:59 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Open Virtual Platforms Forum Index -> Getting started All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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