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
Peripheral model

 
Post new topic   Reply to topic    Open Virtual Platforms Forum Index -> First time - readme
View previous topic :: View next topic  
Author Message
PriyamvadAcharya



Joined: 25 Sep 2019
Posts: 35

PostPosted: Sun Dec 22, 2019 9:31 pm    Post subject: Peripheral model Reply with quote

Hello DuncGraph,

In OVP peripheral C model can we give clock?

If yes,then how?

I want to build peripheral model for timer and as clock is needed in timer so I was searching if we can model behavior of clock in OVP peripheral C model.


With Regards,
Priyamvad Acharya
Back to top
View user's profile Send private message
DuncGrah
OVP Technologist
OVP Technologist


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

PostPosted: Mon Dec 30, 2019 12:22 am    Post subject: Reply with quote

Instruction accurate simulations do not use 'clocks', instead simulation time is used which is based upon procesors executing instructions.

There are several timer peripherals in the library, load the html page Imperas/ImperasLib/libraryREADME.html and look for models of type TIMER

these are provided as source in the library. If you edit any of them you will see the use of the BHM API bhmWaitDelay(time), where time is the delay required in microseconds resolution.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Open Virtual Platforms Forum Index -> First time - readme 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-2020 Imperas Software