software, integration/export: rename and reimplement CSR accessors
authorGabriel Somlo <gsomlo@gmail.com>
Wed, 18 Dec 2019 20:53:21 +0000 (15:53 -0500)
committerGabriel Somlo <gsomlo@gmail.com>
Mon, 13 Jan 2020 15:09:02 +0000 (10:09 -0500)
commit2c393041105e9b10ef8bfcc97eb83027f23c1107
treee2d3b983d4e30a89681e1191ba240acd2a5ad147
parent63cd23c9c3b7496f6518849fc84deeab01dc837d
software, integration/export: rename and reimplement CSR accessors

Implement CSR accessors for all standard integer types and
combinations of subregister alignments (32 or 64 bit) and
sizes (i.e., csr_data_width 8, 16, or 32).

Rename accessors to better reflect the size of the register
being accessed, and correspondingly update the generation
of "csr.h" in "export.py".

Additionally, provide read/write accessors that superimpose arrays
of standard unsigned C types over a CSR register (which may itself
be spread across multiple subregisters).

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
litex/soc/integration/export.py
litex/soc/software/include/hw/common.h