vineodd/PIMSim

Fast Simulation is not working

Opened this issue · 2 comments

I think there is a problem with fast simulation. All of input attributes is correct and I'm trying to simulate the examples but I received this err message:
Please make sure that all the args are input correctly.
I'll be so happy if you show an example for me.

I found an interesting thing, if you open SimplePIM.cs, you may find code like this:
if (command.Equals("c", StringComparison.OrdinalIgnoreCase) || command.Equals("cycle", StringComparison.OrdinalIgnoreCase))
{
Config.sim_type = SIM_TYPE.cycle;
Config.sim_cycle = UInt64.Parse(args[i + 1]);
DEBUG.WriteLine("cycle success.");
}
Usage();
Environment.Exit(1);
which means if you give the parameter '-c',program will just print something and exit.
if you put
Usage(); Environment.Exit(1);
in an 'else',this program may work.
btw, one of the examples the author provide can't work.The whole program and 'readme' made me feel that the author didn't want others to use it.

I found an interesting thing, if you open SimplePIM.cs, you may find code like this:
if (command.Equals("c", StringComparison.OrdinalIgnoreCase) || command.Equals("cycle", StringComparison.OrdinalIgnoreCase))
{
Config.sim_type = SIM_TYPE.cycle;
Config.sim_cycle = UInt64.Parse(args[i + 1]);
DEBUG.WriteLine("cycle success.");
}
Usage();
Environment.Exit(1);
which means if you give the parameter '-c',program will just print something and exit.
if you put
Usage(); Environment.Exit(1);
in an 'else',this program may work.
btw, one of the examples the author provide can't work.The whole program and 'readme' made me feel that the author didn't want others to use it.

Excuse me, I have met a problem of how to generate the trace file in a required format as below. Can you tell me what tool should I use and how to do it? Thank you!
18|rdip t7, %ctrl153,
19|st t7, SS:[rsp + 0xffffffffff8]|W|D=0x00000000004001ba A=0x7fffffffee08
20|subi rsp, rsp, 0x8
21|wrip , t7, t1
22|st r15, SS:[rsp + 0xfffffffff8]|W|D=0x0000000000000000 A=0x7fffffffee00