summaryrefslogtreecommitdiffstats
path: root/part_2/ex7/ex7.v
diff options
context:
space:
mode:
Diffstat (limited to 'part_2/ex7/ex7.v')
-rwxr-xr-xpart_2/ex7/ex7.v13
1 files changed, 13 insertions, 0 deletions
diff --git a/part_2/ex7/ex7.v b/part_2/ex7/ex7.v
new file mode 100755
index 0000000..079c34e
--- /dev/null
+++ b/part_2/ex7/ex7.v
@@ -0,0 +1,13 @@
+module ex7(KEY3, HEX0, HEX1);
+
+ input KEY3;
+ output [6:0] HEX0, HEX1;
+
+ wire [7:0] count;
+
+ LFSR(KEY3, count);
+
+ hex_to_7seg h0(HEX0, count[3:0]);
+ hex_to_7seg h1(HEX1, count[7:4]);
+
+endmodule \ No newline at end of file