We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c36aea commit 0b2e029Copy full SHA for 0b2e029
example/Makefile
@@ -6,7 +6,7 @@ CXXFLAGS += -g -O0
6
CXXFLAGS += -DCXXRTL_SERVER_TRACE
7
8
design_sim: design_sim.cc design.cc
9
- clang++ $(CXXFLAGS) -o $@ $^
+ clang++ $(CXXFLAGS) -o $@ $(abspath $^)
10
11
design.h: design.cc
12
design.cc: design.v
example/design_sim.cc
@@ -21,15 +21,18 @@ int main(int argc, char **argv) {
21
agent.step();
22
23
size_t steps = 0;
24
- while (true) {
+ do {
25
agent.advance(1_ns);
26
top.p_clk.set(false);
27
28
29
30
top.p_clk.set(true);
31
32
- }
+
33
+ if (steps == 3)
34
+ agent.breakpoint(CXXRTL_LOCATION);
35
+ } while (steps++ < 1000);
36
37
return 0;
38
}
0 commit comments