Skip to content

Commit 03b5361

Browse files
committed
Removing the redundant spaces in the template code.
1 parent 481aff9 commit 03b5361

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

veriloggen/simulation/verilator_template.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ double sc_time_stamp(){
2222
int main(int argc, char** argv)
2323
{
2424
Verilated::commandArgs(argc, argv);
25-
25+
2626
Top *top = new Top();
2727

28-
#ifdef TRACE
28+
#ifdef TRACE
2929
Verilated::traceEverOn(true);
3030
VerilatedVcdC* tfp = new VerilatedVcdC;
3131
top->trace(tfp, 99);
@@ -34,17 +34,17 @@ int main(int argc, char** argv)
3434

3535
{%- for clk in clks.keys() %}
3636
top->{{ clk }} = 0;
37-
{% endfor %}
38-
37+
{%- endfor %}
38+
3939
{%- for rst, (period, positive) in rsts.items() %}
4040
top->{{ rst }} = {% if positive %}0{% else %}1{% endif %};
41-
{% endfor %}
41+
{%- endfor %}
4242

4343
{%- for init_name, init_val in inits.items() %}
4444
top->{{ init_name }} = {{ init_val }};
45-
{% endfor %}
45+
{%- endfor %}
4646

47-
// input initialization
47+
// input initialization
4848
{%- for input_name in inputs %}
4949
top->{{ input_name }} = 0;
5050
{%- endfor %}
@@ -55,7 +55,7 @@ int main(int argc, char** argv)
5555
top->{{ clk }} = !top->{{ clk }};
5656
}
5757
{%- endfor %}
58-
58+
5959
{%- for rst, (period, positive) in rsts.items() %}
6060
if(main_time == {{ period }}){
6161
top->{{ rst }} = {% if positive %}1{% else %}0{% endif %};
@@ -65,14 +65,14 @@ int main(int argc, char** argv)
6565
}
6666
{%- endfor %}
6767

68-
// update input
68+
// update input
6969
{%- for input_name in inputs %}
7070
top->{{ input_name }} = 0;
7171
{%- endfor %}
7272

7373
top->eval();
74-
75-
#ifdef TRACE
74+
75+
#ifdef TRACE
7676
tfp->dump(main_time);
7777
#endif
7878

@@ -84,10 +84,10 @@ int main(int argc, char** argv)
8484
main_time += TIME_STEP;
8585
}
8686

87-
#ifdef TRACE
87+
#ifdef TRACE
8888
tfp->close();
8989
#endif
90-
90+
9191
top->final();
9292

9393
return 0;

0 commit comments

Comments
 (0)