#cocotb

poleguy looking for lost toolspoleguy
2025-05-14

The search engines are failing me.

Dear Lazy Web:
If I wanted to enumerate the hierarchy of a design at the beginning of a cocotb test bench, how would I do it? (I'm aware of _discover_all(), but can't figure out how to iterate the results to print them.)

Extra credit: How do I get an interactive debugger to break within the cocotb python code if I call cocotb from pytest? It seems to run the pytest code in the debugger, but not the cocotb code.

2025-03-06

#cocotb, a #freesoftware cosimulation testbench environment for verifying #VHDL and #SystemVerilog #RTL using #Python, is part now of #guixscience channel. It may be used as any other #guix package with a simple

guix install python-cocotb

This means too that pre-built substitutes are available online 🥳.

#modernhw

poleguy looking for lost toolspoleguy
2024-04-22

@Tathar I would like to see a good one too. I'm all my years doing and for a living the best test benches I ever have seen have just read in golden vectors and wrote out result vectors so they could be checked by an external script. We now use and I'm starting to like it. I don't feel an hdl is a good match for testbench work. Maybe for a fixture layer connecting hdl blocks. But testbenches are not hardware. Why would we expect an hdl would do well for it?

2024-03-21

Implementing HDL verification using #UVM is annoying and tedious. So #cocotb seems to be the right choice. #FPGA #Python #systemverilog #VHDL

Simple verification written using cocotb.
2023-07-25

@poleguy Hey! I'm currently exploring #cocotb and I'm curious if any of your code is public?

poleguy looking for lost toolspoleguy
2023-07-12

@remi Yeah my whole group gave up on mathworks (and Microsoft). We do everything in python now with boost c++ for some bits (on linux). No more dealing with license servers is great. We stimulate on a cluster of machines now and never worry about running out of licenses. It's great. Now when we can get rid of we will be ~100% tool chain. and or with is close but not quite. Xilinx encrypted ip cores are a problem that can only be avoided by saying no...

poleguy looking for lost toolspoleguy
2023-04-13

I have a nominally working simulation of a PI controller for the quadrature current in my scratch designed motor controller. Simulated in and . And the ISE build fits! So I'm back to looking at the blown up hardware. Just pulled the scratch designed motor controller out of the Ice Cream Truck... I don't see a blown FET yet, but I saw a flash and pop the last time I worked on it, so I know it's in there somewhere. Race is on May 20th in Come out and help me!

Traces from a gtkwave view of a ghdl sim showing a feedback waveform starting low and back high again and a pwm_level output of an open-loop PI controller that looks like it should drive the error to zero correctly. Side view of one motor controller PCB showing three phase legs. Lots of wires flying around. FETs are mounted under PCBs so you can't inspect them without disassembly.Two scratch built motor controllers mounted to a heat sink mounted to a plywood box enclosure. Out of the kart and sitting on the concrete floor. Three phase wires hang out from each side. Lots of ribbon cables and colorful dupont wires in a messy configuration with velcro ties.
TheZoq2thezoq2
2023-02-12

Yay, my implementation in spade is now far along that I can run ISA tests.

makes it really simple to generate test cases from the compiled elf files in github.com/riscv-software-src/

A list of tests run on the riscv processorCode I use for running tests on the elf files
2022-12-06

@cocotb #cocotb #python #cooking
In french, if we pronounce «cocotb» without 'b' it sound like #cocotte which is a casserole.
Then if we look for cocotb book on amazon we get this :)

2022-12-01

What open source #VHDL framework should I use ?
#OSVVM or #UVVM ?

Maybe I should just keep #Cocotb ;)

Frédéric Véron :mastodon:Sangokuss@framapiaf.org
2019-01-26

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst