Skip to content

Commit

Permalink
packet_filter: Interprocess communication fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Istvan-Zsolt Szekely <[email protected]>
  • Loading branch information
IstvanZsSzekely committed Sep 10, 2024
1 parent 8c5b617 commit d6b046c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 0 additions & 2 deletions common/sv/scoreboard.sv
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ package scoreboard_pkg;
packet[i] = source_byte;
end
this.source_monitor.put_key();
this.source_monitor.scoreboard_notified();

if (this.filter_enabled)
this.filter_tree_source.apply_filter(packet);
Expand Down Expand Up @@ -239,7 +238,6 @@ package scoreboard_pkg;
packet[i] = sink_byte;
end
this.sink_monitor.put_key();
this.sink_monitor.scoreboard_notified();

if (this.filter_enabled)
this.filter_tree_sink.apply_filter(packet);
Expand Down
12 changes: 2 additions & 10 deletions common/sv/x_monitor.sv
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,6 @@ package x_monitor_pkg;
@this.transaction_event;
endtask

task scoreboard_notified();
->>this.scoreboard_event;
endtask

task wait_for_scoreboard_event();
@this.scoreboard_event;
endtask

// run task
task run();
fork
Expand Down Expand Up @@ -137,7 +129,7 @@ package x_monitor_pkg;
this.put_key();
`INFOV(("Packet mail length: %d", this.mailbox.num()), 200);
this.transaction_captured();
this.wait_for_scoreboard_event();
#1;
this.get_key();
this.mailbox.flush();
this.put_key();
Expand Down Expand Up @@ -215,7 +207,7 @@ package x_monitor_pkg;
`INFOV(("Packet mail length: %d", this.mailbox.num()), 200);
axi_packet = new [0];
this.transaction_captured();
this.wait_for_scoreboard_event();
#1;
this.get_key();
this.mailbox.flush();
this.put_key();
Expand Down

0 comments on commit d6b046c

Please sign in to comment.