Skip to main content

cocotb extension for HyperBus

PyPI version

Installation

Installation from pip (release version, stable):

pip install cocotbext-hyperbus

Installation for active development:

git clone https://github.com/meeeeet/cocotbext_hyperbus
pip install -e cocotbext_hyperbus

Documentation and usage examples

See the tests directory for complete testbenches using these modules.

Configuration

  1. Alter the following parameter in the Infineon HyperRAM RTL code to avoid the cocotb having to wait a long time and the simulation crashing.

    // tdevice values: values for internal delays
    // power-on reset
    specparam tdevice_VCS    = 150;
    // Deep Power Down to Idle wake up time
    specparam tdevice_DPD    = 150;
    // Exit Event from Deep Power Down
    specparam tdevice_DPDCSL = 20;
    // Warm HW reset
    specparam tdevice_RPH    = 40;
    // Refresh time
    specparam tdevice_REF100 = 40;
    // Page Open Time
    specparam tdevice_PO100 = 40;
    
  2. Make a wrapper module for better experience and make sure to use signal names in lowercase in wrapper module as shown in test/wrapper_ram.v.

HyperBus

The HyperBusController class can be used to drive and receive data from HyperRAM.

To use these modules, import the one you need and connect it to the DUT:

from cocotbext_hyperbus import HyperBusController
@cocotb.test()
async def sample_test(dut):
    hbc=HyperBusController(dut)

Methods

  • Reset(dut): Reset the dut
  • WriteReg(addr,data): Write data into register at addr
  • ReadReg(addr): Read from register at addr
  • generate_random_data(len): Generate random 32-bit data of len length
  • WriteMem(addr,data): Write data into memory at addr
  • ReadMem(addr,len): Read len 32-bit data from memory starting from addr

Metadata

Release files for cocotbext-hyperbus 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cocotbext-hyperbus 0.2.2
File Size Uploaded Provenance Actions
cocotbext_hyperbus-0.2.2.tar.gz 6.0 kB Without provenance Details for cocotbext_hyperbus-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cocotbext-hyperbus 0.2.2
File Interpreter ABI Platform Actions
cocotbext_hyperbus-0.2.2-py3-none-any.whl Python 3 none any Details for cocotbext_hyperbus-0.2.2-py3-none-any.whl

Total release size: 12.7 kB

Release files / cocotbext_hyperbus-0.2.2.tar.gz

Download URL cocotbext_hyperbus-0.2.2.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
63493a04f1a2f1dc6af934d7046a6b47ee90cbcbb5534d3a5d7e6eb784686623
BLAKE2b-256 checksum
How to use checksums
5f4d5c8f91c49d8a5536d9f55470c56329ecfed6fb15db0fb8d00be6676c63be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.9.19

Release files / cocotbext_hyperbus-0.2.2-py3-none-any.whl

Download URL cocotbext_hyperbus-0.2.2-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a63c25b389d0fa176d2db0b752f796c344b933aa8a414ca77288a44fb9e0409
BLAKE2b-256 checksum
How to use checksums
9108f9023eb15b3d40b5796c249a99326aa26ea99ff8d163d902f1049b903599
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.9.19

Security for cocotbext-hyperbus 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page