summaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
authorAndrew Waterman2016-01-23 21:11:09 -0800
committerAndrew Waterman2016-01-23 21:11:09 -0800
commit86a6c6bcdc349f40dcc31bce1931dc7c427da674 (patch)
tree37fe805a7eea16e2ae6bdb1d6a516974cfaae89a /src/main/resources
parentb4517e0fb563271464bd40ddf9a46a40fd827da4 (diff)
Change implicit clock name to clk to match Chisel2
This allows us to share Verilog test harnesses between the two.
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/top.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/resources/top.cpp b/src/main/resources/top.cpp
index 075d7085..8bfe2a99 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->clock = 1; // Toggle clock
+ top->clk = 1; // Toggle clock
}
if ((main_time % 10) == 6) {
- top->clock = 0;
+ top->clk = 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->clock = 1; // Toggle clock
+ top->clk = 1; // Toggle clock
}
if ((main_time % 10) == 6) {
- top->clock = 0;
+ top->clk = 0;
}
top->eval(); // Evaluate model
#if VM_TRACE