diff options
| author | Andrew Waterman | 2016-09-21 12:44:36 -0700 |
|---|---|---|
| committer | GitHub | 2016-09-21 12:44:36 -0700 |
| commit | a2cb95bfe9e9c30b73284e97048fa0187ab0ee1d (patch) | |
| tree | 5a3f9d21bd56d39fb605e72ed418b0d91be43397 /src/main/resources | |
| parent | dda64c1dee16b5da15ac690bd3cd6759c3d5c032 (diff) | |
Make implicit clock name consistent (#288)
In the Chisel frontend, the implicit clock is named clock, but in the
generated FIRRTL, it is named clk. There is no reason for this
discrepancy, and yet fixing it is painful, as it will break test harnesses.
Better to take the pain now than later.
Resolves #258.
Diffstat (limited to 'src/main/resources')
| -rw-r--r-- | src/main/resources/top.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/resources/top.cpp b/src/main/resources/top.cpp index 8bfe2a99..075d7085 100644 --- a/src/main/resources/top.cpp +++ b/src/main/resources/top.cpp @@ -44,10 +44,10 @@ int main(int argc, char** argv) { top->reset = 0; // Deassert reset } if ((main_time % 10) == 1) { - top->clk = 1; // Toggle clock + top->clock = 1; // Toggle clock } if ((main_time % 10) == 6) { - top->clk = 0; + top->clock = 0; } top->eval(); // Evaluate model #if VM_TRACE @@ -69,10 +69,10 @@ int main(int argc, char** argv) { vluint64_t end_time = main_time + 100; while (main_time < end_time) { if ((main_time % 10) == 1) { - top->clk = 1; // Toggle clock + top->clock = 1; // Toggle clock } if ((main_time % 10) == 6) { - top->clk = 0; + top->clock = 0; } top->eval(); // Evaluate model #if VM_TRACE |
