ssnetsim / supersim

A flexible event-driven cycle-accurate network simulator
Apache License 2.0
8 stars 1 forks source link

Allow CongestionSensor module to support dynamic buffer allocation #23

Closed nicmcd closed 4 years ago

nicmcd commented 4 years ago

To allow the congestion sensor to support dynamic buffer allocation, there are a few changes needed.

  1. Normalized mode should allow values greater than 1.0. Remove clamping.
  2. BufferOccupancy needs to use signed integers because the credit count may go negative.

A couple other bugs/fixes desired are: Make CongestionSensor::initCredits only callable once. InputQueued shouldn't allow output normalized OutputQueued comment about output queue should change: s/is infinite/may be infinite/ InputOutputQueued no plus 1, make incr/decr at the same point.