summaryrefslogtreecommitdiffstats
path: root/part_3/ex10/ex10.v
diff options
context:
space:
mode:
Diffstat (limited to 'part_3/ex10/ex10.v')
-rwxr-xr-xpart_3/ex10/ex10.v12
1 files changed, 12 insertions, 0 deletions
diff --git a/part_3/ex10/ex10.v b/part_3/ex10/ex10.v
new file mode 100755
index 0000000..7fbea8c
--- /dev/null
+++ b/part_3/ex10/ex10.v
@@ -0,0 +1,12 @@
+module ex10(CLOCK_50, SW, DAC_CS, DAC_SDI, DAC_LD, DAC_SCK);
+
+ input CLOCK_50;
+ input [9:0] SW;
+ output DAC_CS, DAC_SDI, DAC_LD, DAC_SCK;
+
+ wire load;
+
+ tick_5000 t(CLOCK_50, load);
+ spi2dac s(CLOCK_50, SW, load, DAC_SDI, DAC_CS, DAC_SCK, DAC_LD);
+
+endmodule \ No newline at end of file