1. 06 Jul, 2015 1 commit
  2. 26 Jun, 2015 1 commit
  3. 07 Nov, 2014 2 commits
  4. 18 Jul, 2014 1 commit
    • Pietro Fezzardi's avatar
      arch-sim: new simulator diagnostics and config · 717a8f5e
      Pietro Fezzardi authored
      For testing purposes we can't just read the ofm value
      printed out by the slave, because that's only the offset
      perceived by the slave and can be wrong. We need instead to
      print out the offset obtained subtracting the real time of
      the master from the real time of the slave.
      To print out the ofm we use the "ext" flag of pp_diag.
      The ofm is printed only when the slave gets a
      DelayResp message from the master.
      A new tool to strip ofm out of simulator log is provided
      now the max number of simulated ptp iterations can be configured.
      previously one could set the number of seconds to simulate.
      this is not possible anymore.
  5. 21 Mar, 2014 5 commits
    • Pietro Fezzardi's avatar
      arch-sim: use new functions to access instances · 77db1c77
      Pietro Fezzardi authored
      when possible substitute the access pattern
      	ppi = &ppg->pp_instances[n];
      	ppi = INST(ppg, n);
      In the simulator-specific code also pp_sim_get_master() and
      pp_sim_get_slave() are used. Finally pp_sim_is_master() and
      pp_sim_is_slave() are used to make the conditions easier to
    • Pietro Fezzardi's avatar
      arch-sim: added config option "sim_duration_sec" · c70c124a
      Pietro Fezzardi authored
      It sets how much time the simulator should simulate. The default value
      is set to 3600 so that running the simulator without specifying the
      sim_duration_sec option will result in a simulation representing an hour
      of real time
    • Pietro Fezzardi's avatar
      arch-sim: network operations and main loop · dcddecbc
      Pietro Fezzardi authored
      New struct sim_pending_pkt is introduced to hold information on pakets still in
      fly. An array of such structures is stored in ppg->arch_data. This array is
      written by every send. The insertion is designed to sort automatically the
      packets so that the first element of the array after an insertion is always
      the first packet that will be received. Function sim_fast_forward_ns is changed
      to update also the reception times into this array, so that when you fast
      forward, also the pending packets are fast_forwarded.
      The main loop works in this way:
      	- if there are packets to be received check when
      	- if the first packet to be received is coming before the state machine
      	  timestamps expire, then fast forward till it's time to receive it.
      	  Then receive it and call the state machine of the receiver
      	- if there are no packet pending or the first pending packet is coming
      	  after a timeout, then fast forward till the timeout expires and
      	  run all the state machines
    • Pietro Fezzardi's avatar
    • Pietro Fezzardi's avatar
      arch-sim: initial commit with directory tree · 8d898988
      Pietro Fezzardi authored
      Kconfig is updated with new arch.
      It compiles but it's actually doing nothing