daq1 : There is a single CSN from master

main
Istvan Csomortani 2016-02-12 14:38:32 +02:00
parent 9675df15c6
commit c32d7147d5
1 changed files with 1 additions and 3 deletions

View File

@ -73,13 +73,11 @@ module daq1_spi (
// internal signals
wire spi_csn_s;
wire spi_enable_s;
// check on rising edge and change on falling edge
assign spi_csn_s = & spi_csn;
assign spi_enable_s = spi_enable & ~spi_csn_s;
assign spi_enable_s = spi_enable & ~spi_csn;
always @(posedge spi_clk or posedge spi_csn_s) begin
if (spi_csn_s == 1'b1) begin