ipbus / ipbb

IPbus Builder Tool
GNU General Public License v3.0
12 stars 12 forks source link

Introduce a feature to run small simulations/tests as Vivado projects #206

Closed jhegeman closed 2 months ago

jhegeman commented 4 months ago

This new feature allows one to run small 'unit tests' as Vivado simulation projects as part of the well-known IPBB command structure and work flow.

This basically introduces the following conventions and functionality:

jhegeman commented 3 months ago

As promised, here is a little recipe to demonstrate how this could be used. The recipe uses the TCDS2 cyclic generator testbench as example.

ipbb init trial_area
cd trial_area
ipbb add git https://:@gitlab.cern.ch:8443/cms-tcds/cms-tcds2-firmware.git
cd proj
ipbb proj create vivado sim_cyclic_gen cms-tcds2-firmware:components/cyclic_generator tb_cyclic_generator.d3
cd sim_cyclic_gen
ipbb dep report
ipbb vivado generate-project
ipbb vivado check-syntax
ipbb vivado simulate
tswilliams commented 2 months ago

@jhegeman : This all looks good to me, but just as I was about to merge, I realised that there's an errant new file included in the branch: a

Can you remove this? I'll then proceed with the merge. Thanks!

jhegeman commented 2 months ago

Ok, done. Sorry for the delay.