spi_engine: Expose DATA_WIDTH to software

The value of DATA_WIDTH can be read back from register 0x44
The DATA_WIDTH will define the size of a word in a transaction.
main
Istvan Csomortani 2017-01-18 13:21:17 +02:00
parent 801fb2281e
commit 18a671cdb7
1 changed files with 1 additions and 0 deletions

View File

@ -264,6 +264,7 @@ always @(posedge clk) begin
8'h00: up_rdata_ff <= PCORE_VERSION; 8'h00: up_rdata_ff <= PCORE_VERSION;
8'h01: up_rdata_ff <= ID; 8'h01: up_rdata_ff <= ID;
8'h02: up_rdata_ff <= up_scratch; 8'h02: up_rdata_ff <= up_scratch;
8'h03: up_rdata_ff <= DATA_WIDTH;
8'h10: up_rdata_ff <= up_sw_reset; 8'h10: up_rdata_ff <= up_sw_reset;
8'h20: up_rdata_ff <= up_irq_mask; 8'h20: up_rdata_ff <= up_irq_mask;
8'h21: up_rdata_ff <= up_irq_pending; 8'h21: up_rdata_ff <= up_irq_pending;