daq1 : There is a single CSN from master
parent
9675df15c6
commit
c32d7147d5
|
@ -73,13 +73,11 @@ module daq1_spi (
|
||||||
|
|
||||||
// internal signals
|
// internal signals
|
||||||
|
|
||||||
wire spi_csn_s;
|
|
||||||
wire spi_enable_s;
|
wire spi_enable_s;
|
||||||
|
|
||||||
// check on rising edge and change on falling edge
|
// check on rising edge and change on falling edge
|
||||||
|
|
||||||
assign spi_csn_s = & spi_csn;
|
assign spi_enable_s = spi_enable & ~spi_csn;
|
||||||
assign spi_enable_s = spi_enable & ~spi_csn_s;
|
|
||||||
|
|
||||||
always @(posedge spi_clk or posedge spi_csn_s) begin
|
always @(posedge spi_clk or posedge spi_csn_s) begin
|
||||||
if (spi_csn_s == 1'b1) begin
|
if (spi_csn_s == 1'b1) begin
|
||||||
|
|
Loading…
Reference in New Issue