I am trying to interface PMOD DA4 with atlys FPGA but nothing is coming at output. help me to rectify what wrong with code.
module spi_master_v1(
input sys_clk,
input rst,
output reg cs,
output reg MOSI,
output reg sclk,
// input [31:0] in_data,
output reg done
);
// Internal registers
reg [10:0] count;
reg [31:0] temp_data;
reg [5:0] bit_count;
reg [11:0] count2;
// state declearation
reg [1:0] state;
parameter idle = 2'b00;
parameter data_tx = 2'b01;