Skip to content

Commit

Permalink
Merge pull request #15 from miharulidze/synth_bench
Browse files Browse the repository at this point in the history
Fixing FMQ overflow
  • Loading branch information
miharulidze authored Nov 24, 2022
2 parents 1b766ae + 066a1ba commit 8ee2e02
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions hw/verilator_model/src/NICInbound.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,14 +386,14 @@ namespace PsPIN
// Progress HERs
void her_progress_posedge()
{
if (her_cmd_wait)
{
*ni_ctrl.her_valid_o = 0;

if (!(*ni_ctrl.her_ready_i))
{
ni_ctrl_stalls++;
return;
}

*ni_ctrl.her_valid_o = 0;

if (ready_hers.empty())
{
return;
Expand Down Expand Up @@ -454,11 +454,7 @@ namespace PsPIN

void her_progress_negedge()
{
her_cmd_wait = false;
if (*ni_ctrl.her_valid_o && !(*ni_ctrl.her_ready_i))
{
her_cmd_wait = true;
}
/* Nothing to do here yet */
}

// Get feedback
Expand Down

0 comments on commit 8ee2e02

Please sign in to comment.