aboutsummaryrefslogtreecommitdiff
path: root/examples/example_toplevel.v
diff options
context:
space:
mode:
authorWojciech Kosior <kwojtus@protonmail.com>2020-12-24 13:03:25 +0100
committerWojciech Kosior <kwojtus@protonmail.com>2020-12-24 13:03:25 +0100
commit5ed2dafa6910e211cae1d83d364d5c24d3b21b4c (patch)
treeadda605f1895f9287ae45b7a71f0fb037f48631e /examples/example_toplevel.v
parent10392220fd4ed6c9fdbb108260d9fdb6cf5d9d8f (diff)
downloadAGH-engineering-thesis-5ed2dafa6910e211cae1d83d364d5c24d3b21b4c.tar.gz
AGH-engineering-thesis-5ed2dafa6910e211cae1d83d364d5c24d3b21b4c.zip
add example, that measures time and prints it to screen
Diffstat (limited to 'examples/example_toplevel.v')
-rw-r--r--examples/example_toplevel.v5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/example_toplevel.v b/examples/example_toplevel.v
index 1da1750..3359bb3 100644
--- a/examples/example_toplevel.v
+++ b/examples/example_toplevel.v
@@ -125,6 +125,11 @@ module example();
end
end
+ always @ (image_writes) begin
+ if (image_writes)
+ `MSG(("Display refreshed %0d times", image_writes));
+ end
+
generate
if (`FINISH_RULE_PROVIDED) begin
always @ (image_writes or led1 or led2 or can_finish) begin