How kowdoorshashank/python works
Project type and purpose
• This is a hardware-verification/simulation project implementing and testing AMBA CHI node models in SystemVerilog, driven by a Python testbench (likely via cocotb or a similar framework).
• The SV files define the CHI protocol package (chi_pkg.sv), a “home” node (chi_home_node.sv), and a “requester” node (chi_requester_node.sv). The Makefile builds the simulation, and test_AMBA_CHI.py exercises the DUT.
File structure
• Top-level:
• Makefile – simulation build & run scripts
• README.md – links to edaplayground example
• chi_pkg.sv – package of CHI constants/types/interfaces
• chi_home_node.sv – home-node behavioral model
• chi_requester_node.sv – requester-node behavioral model
• test_AMBA_CHI.py – Python-driven testbench
• No “frontend”/“backend” directories; instead this is a unified SV design + external test harness.
• The absence of UVM folders suggests a lightweight cocotb (or similar) approach.
README for additional insights
• The linked EDAPLAYGROUND example shows instantiation of both nodes and driving CHI-style request/response flows, verifying correct packet sequencing, response matching, etc.
Detailed component breakdown
• Python Testbench:
• cocotb harness
• test sequences (burst reads, writes)
• Simulator:
• Build stage (Makefile)
• VHPI/DPI interface
• chi_pkg.sv:
• Data structs, enums, interface definitions
• chi_requester_node:
• Packet encoder
• State machine for request issuance
• chi_home_node:
• Packet decoder
• Memory model or response generator
• CHI Interconnect:
• Arbitration (if modeled)
• Channels: request, response