naps.cores.peripherals package

Submodules

naps.cores.peripherals.bitbang_i2c module

class naps.cores.peripherals.bitbang_i2c.BitbangI2c(*args, src_loc_at=0, **kwargs)

Bases: nmigen.hdl.ir.Elaboratable

elaborate(platform: naps.soc.soc_platform.SocPlatform)

naps.cores.peripherals.bitbang_spi module

class naps.cores.peripherals.bitbang_spi.BitbangSPI(*args, src_loc_at=0, **kwargs)

Bases: nmigen.hdl.ir.Elaboratable

elaborate(platform: naps.soc.soc_platform.SocPlatform)

naps.cores.peripherals.csr_bank module

class naps.cores.peripherals.csr_bank.CsrBank(*args, src_loc_at=0, **kwargs)

Bases: nmigen.hdl.ir.Elaboratable

elaborate(platform)
reg(name: str, signal: naps.soc.csr_types._Csr)

naps.cores.peripherals.csr_bank_zynq_test module

class naps.cores.peripherals.csr_bank_zynq_test.TestAxiSlave(methodName='runTest')

Bases: unittest.case.TestCase

check_csr_bank(num_csr=10, testdata=305419896, use_axi_interconnect=False)
test_csr_bank_aggregator()
test_csr_bank_interconnect()
test_simple_test_csr_bank()

naps.cores.peripherals.drp_bridge module

class naps.cores.peripherals.drp_bridge.DrpBridge(*args, src_loc_at=0, **kwargs)

Bases: nmigen.hdl.ir.Elaboratable

elaborate(platform: naps.soc.soc_platform.SocPlatform)
class naps.cores.peripherals.drp_bridge.DrpInterface(DWE, DEN, DADDR, DI, DO, DRDY, DCLK)

Bases: object

naps.cores.peripherals.mmio_gpio module

class naps.cores.peripherals.mmio_gpio.MmioGpio(*args, src_loc_at=0, **kwargs)

Bases: nmigen.hdl.ir.Elaboratable

elaborate(platform)

naps.cores.peripherals.soc_memory module

class naps.cores.peripherals.soc_memory.SocMemory(*args, src_loc_at=0, **kwargs)

Bases: nmigen.hdl.ir.Elaboratable

A memory that can be read / written to by the soc

elaborate(platform)
handle_read(m, addr, data, read_done)
handle_write(m, addr, data, write_done)
read_port(domain='sync', **kwargs)
write_port(domain='sync', **kwargs)

naps.cores.peripherals.soc_memory_test module

class naps.cores.peripherals.soc_memory_test.SocMemoryTest(methodName='runTest')

Bases: unittest.case.TestCase

test_smoke()
test_with_driver()

Module contents