Commit 525e4dd7 authored by Jan Pospisil's avatar Jan Pospisil

fixed simulation to prevent cases Overflow > TriggerPeriodicity

parent 1f9e5784
......@@ -336,6 +336,7 @@ package TestbenchPackage;
}
constraint OverflowConstraint {
Overflow inside {[0:500]};
Overflow inside {[0:`STREAM_SIZE-1]};
}
......@@ -442,6 +443,8 @@ package TestbenchPackage;
class SeqGenerateBeamSignals extends ReportingSequence #(FfpgFmcDriverTransaction);
`uvm_object_utils(SeqGenerateBeamSignals)
int Overflow;
function new (string name = "");
super.new(name);
endfunction
......@@ -456,6 +459,8 @@ package TestbenchPackage;
tx = FfpgFmcDriverTransaction::type_id::create("tx");
start_item(tx);
assert(tx.randomize());
if (tx.TriggerPeriodicity < this.Overflow)
tx.TriggerPeriodicity = this.Overflow;
finish_item(tx);
endtask
......@@ -572,7 +577,7 @@ package TestbenchPackage;
//#1000;
SeqGenerate = SeqGenerateBeamSignals::type_id::create("SeqGenerate");
assert(SeqStart.randomize());
SeqGenerate.Overflow = SeqSet.Overflow;
SeqGenerate.start(Env_h.FmcAgent.Sequencer_h);
phase.drop_objection(this);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment