-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathboard.v
26 lines (23 loc) · 815 Bytes
/
board.v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* ------------------------------------------------ *
* Title : Pmod DPOT test board *
* Project : Pmod DPOT interface *
* ------------------------------------------------ *
* File : board.v *
* Author : Yigit Suoglu *
* Last Edit : 01/04/2021 *
* ------------------------------------------------ *
* Description : Test code for Pmod DPOT interface *
* ------------------------------------------------ */
module testboard(
input clk,
input rst,
output nCS,
output MOSI,
output SCLK,
input [7:0] sw,
input update,
output ready);
wire spi_clk_i;
dpot uut(rst, nCS, MOSI, SCLK, spi_clk_i, sw, update, ready);
clkDiv4 clkGen(clk, rst, spi_clk_i);
endmodule