1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-02-07 06:44:09 +08:00
oh/spi/hdl/spi_regmap.vh
Andreas Olofsson 2b62ffb1cd Adding SPI master
-code compiles, but still needs debugging
-small parts not implemented
2016-03-08 19:33:53 -05:00

17 lines
594 B
Systemverilog

//64 bit register positions [5:0]
`ifndef GPIO_REGMAP_V_
`define GPIO_REGMAP_V_
`define SPI_CONFIG 6'd0 // config register
`define SPI_STATUS 6'd1 // status register
`define SPI_CMD 6'd2 // command register (first byte)
`define SPI_PSIZE 6'd3 // package size
`define SPI_CLKDIV 6'd4 // baud rate (master)
`define SPI_START 6'd5 // manual transfer (master)
`define SPI_JUNK 6'd6 // reserved
`define SPI_JUNK 6'd7 // reserved
`define SPI_TX 6'd16 // 16 regs for tx
`define SPI_RX 6'd32 // 16 regs for rx
`endif // `ifndef GPIO_REGMAP_V_