mirror of
https://github.com/fpganinja/taxi.git
synced 2025-12-09 17:08:38 -08:00
stats: Add gate input to statistics collector
Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
@@ -39,6 +39,8 @@ class TB(object):
|
||||
for k in range(len(dut.stat_inc)):
|
||||
dut.stat_inc[k].setimmediatevalue(0)
|
||||
dut.stat_valid[k].setimmediatevalue(0)
|
||||
|
||||
dut.gate.setimmediatevalue(1)
|
||||
dut.update.setimmediatevalue(0)
|
||||
|
||||
def set_backpressure_generator(self, generator=None):
|
||||
|
||||
@@ -42,6 +42,7 @@ taxi_axis_if #(
|
||||
.ID_W(STAT_ID_W)
|
||||
) m_axis_stat();
|
||||
|
||||
logic gate;
|
||||
logic update;
|
||||
|
||||
taxi_stats_collect #(
|
||||
@@ -68,6 +69,7 @@ uut (
|
||||
/*
|
||||
* Control inputs
|
||||
*/
|
||||
.gate(gate),
|
||||
.update(update)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user