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
Need help starting an interAptivUP core in EVA mode.

 
Post new topic   Reply to topic    Open Virtual Platforms Forum Index -> Questions and Discussion on MIPS Models
View previous topic :: View next topic  
Author Message
DavidC



Joined: 07 Feb 2014
Posts: 3

PostPosted: Fri Jun 13, 2014 8:29 am    Post subject: Need help starting an interAptivUP core in EVA mode. Reply with quote

Hi,

I'm trying to simulate an interAptivUP core in EVA mode. This is the code:


Code:

int
main(int argc, char *argv[])
{
    icmInitPlatform(ICM_VERSION, ICM_VERBOSE | CM_STOP_ON_CTRLC, NULL, 0, "Test");

    const char *model = icmGetVlnvString(NULL, "mips.com", "processor", "mips32", "1.0", "model");
    const char *semihost = icmGetVlnvString(NULL, "ovpworld.org", "modelSupport", "imperasExit", "1.0", "model");

    icmAttrListP u_attrs = icmNewAttrList();
    icmAddBoolAttr(u_attrs, "EVAReset", True);

    icmNewProcAttrs p_attrs = ICM_ATTR_TRACE | ICM_ATTR_TRACE_CHANGE | ICM_ATTR_SIMEX;

    icmProcessorP ecpu0 = icmNewProcessor(
        "ecpu0",            // CPU name
        "MIPS",             // CPU type
        0,                  // CPU cpuId
        0,                  // CPU model flags
        32,                 // address bits
        model,              // model file
        0,                  // not used
        p_attrs,            // simulation attributes
        u_attrs,            // user-defined attributes
        semihost,           // semi-hosting file
        0                   // not used
    );
    icmLoadProcessorMemory(ecpu0, "boot", ICM_LOAD_DEFAULT, True, False);
    icmSimulatePlatform();
    icmTerminate();
    return 0;
}


The 'boot' program simply does:

Code:

    mfc0 t0, c0_config5
exit:


... to allow me to see the value of Config5.K, which should be 1 when EVA mode is selected via the SI_EVAReset core input, which I'm assuming this attribute models.

When I run this however, I see Config5.K=0.

This is with version 20140127.0.

Thanks for the help.
David.
Code:
Back to top
View user's profile Send private message
DavidC



Joined: 07 Feb 2014
Posts: 3

PostPosted: Fri Jun 13, 2014 2:43 pm    Post subject: Reply with quote

My example was a little over-edited. I also set:

Code:
    icmAddStringAttr(u_attrs, "variant", "interAptivUP");
    icmAddStringAttr(u_attrs, "endian", "little");
Back to top
View user's profile Send private message
JimStraus
OVP Technologist
OVP Technologist


Joined: 09 Dec 2008
Posts: 157

PostPosted: Tue Jun 17, 2014 9:27 pm    Post subject: Reply with quote

Hi David,

Looking at the latest documentation I see you are correct, config5.k should be 1 when EVAReset is asserted.

We should get this fixed in the next release. If it is causing you major problems, let us know and we can try and come up with a workaround in the meantime.

Sorry for the inconvenience and thank you for pointing out the issue to us.

Jim Straus
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 -> Questions and Discussion on MIPS Models 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