Tags: LGTMCU/misoc
Tags
software: use -ffunction-sections when linking. This has no downside and the upside that, if --gc-sections is passed to ld, the generated binary is smaller. Conversely, -fdata-sections can made both code and data somewhat larger, but there is usually little benefit to it.
cores/spi: replace wb interface with csr interface bus => wbus to prepare CSR replacement. Replace data write/data read regs with CSR equivalents. Fix combinational logic error. Convert wishbone xfer reg into CSR equivalents. Convert config register to CSR. Pending not working. Fix broken register definitions in test suite. Pending status needs to be asserted one cycle earlier so that it is valid immediately after write. Remove wishbone bus from core/test files. Variable name cleanup (Remove CSR qualifiers). User friendly register names, minor test suite reg assignment changes (does not affect results). Update/run full test suite for CSR. Core passes. Update inline documentation of SPI API. Remove wishbone import. Remove description of CSR registers. _device_sel => _cs, device_width => cs_width. Remove status record, split status reg into multiple. Remove config record, split config reg into multiple. Update reg names in Notes. Python 3.3/3.4 syntax fix for tests. Remove complex pending logic. PEP8 cleanup (If/Else statements not changed).
PreviousNext