Skip to content

Commit

Permalink
Fix C++ lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvan Tortorella committed Nov 7, 2024
1 parent 812dd8d commit 3aa7577
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions target/sim/src/redmule_tb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,18 @@

vluint64_t sim_time = 0;

void dut_reset(Vredmule_tb *dut, vluint64_t &sim_time, vluint64_t rst_time, vluint64_t rst_cycles){
void dut_reset(Vredmule_tb *dut, vluint64_t &sim_time, vluint64_t rst_time, vluint64_t rst_cycles) {
dut->rst_ni = 0;
if(sim_time > rst_time && sim_time < rst_time + rst_cycles) dut->rst_ni = 1;
if (sim_time > rst_time && sim_time < rst_time + rst_cycles) dut->rst_ni = 1;

if(sim_time > rst_time + rst_cycles && sim_time < rst_time + 2*rst_cycles) dut->rst_ni = 0;
if (sim_time > rst_time + rst_cycles && sim_time < rst_time + 2 * rst_cycles) dut->rst_ni = 0;

if(sim_time > rst_time + 2*rst_cycles) dut->rst_ni = 1;
if (sim_time > rst_time + 2 * rst_cycles) dut->rst_ni = 1;
}

void dut_set_fetch_en(Vredmule_tb *dut, vluint64_t &sim_time, bool value){
void dut_set_fetch_en(Vredmule_tb *dut, vluint64_t &sim_time, bool value) {
dut->fetch_enable_i = 0;
if(sim_time > 100){
if (sim_time > 100) {
dut->fetch_enable_i = value;
}
}
Expand Down

0 comments on commit 3aa7577

Please sign in to comment.