Minor changes to improve code readability
This commit is contained in:
@@ -81,10 +81,8 @@ void Slots::blockSlots(sc_time begin, sc_time end, bool excludeBorders)
|
||||
end -= clk;
|
||||
}
|
||||
|
||||
for (sc_time time = begin; time <= end; time += clk)
|
||||
{
|
||||
slotSet.insert(time);
|
||||
for (sc_time time = begin; time <= end; time += clk) {
|
||||
blockSlot(time);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -46,15 +46,16 @@ class Slots
|
||||
public:
|
||||
Slots(sc_time clk);
|
||||
virtual ~Slots();
|
||||
|
||||
void moveCommandToNextFreeSlot(ScheduledCommand& command);
|
||||
void cleanUpSlots(sc_time time);
|
||||
void blockSlots(sc_time begin, sc_time end, bool excludeBorders);
|
||||
void blockSlot(sc_time time);
|
||||
bool isFree(sc_time);
|
||||
std::set<sc_time> slotSet;
|
||||
|
||||
private:
|
||||
sc_time clk;
|
||||
std::set<sc_time> slotSet;
|
||||
void blockSlots(sc_time begin, sc_time end, bool excludeBorders);
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user