ipbus / ipbus-firmware

Firmware that implements a reliable high-performance control link for particle physics electronics, based on the IPbus protocol
https://ipbus.web.cern.ch
Other
39 stars 31 forks source link

"ipbb ipbus gendecoders" does not work #221

Closed abunickabhi closed 11 months ago

abunickabhi commented 1 year ago

While setting up a firmware project, I follow the instructions listed https://serenity.web.cern.ch/serenity/emp-fwk/walkthroughs/walkthrough1.html#walkthrough1 here.

I am unable to ipbb ipbus gendecoders as it does not recognize ipbus as a valid keyword.

How do I execute this command successfully? What does this command do exactly?

tswilliams commented 1 year ago

Hi,

Can you paste the output of the command here?

Thanks, Tom

abunickabhi commented 12 months ago

Hi, Here is the output when I execute the command in ipbb environment.

(ipbb) (base) abhi@abhi:~/Desktop/CMS_Trigger_TIFR/ipbb/algo-work/proj/my_algo$ ipbb ipbus gendecoders
Usage: ipbb [OPTIONS] COMMAND [ARGS]...
Try 'ipbb -h' for help.

Error: No such command 'ipbus'.

Edit: I have installed ipbus firmware and added the /opt/cactuspath.

abunickabhi commented 11 months ago

What could be the issue for not recognising the ipbus keyword @tswilliams ?

tswilliams commented 11 months ago

I'm not completely sure what the cause of this could be. What operating system are you using? Could you try skipping that command, and running the ipbb vivado commands listed after that?

abunickabhi commented 11 months ago

I am using Ubuntu 20.04.

Skipping the command is working as I am able to create a bitstream using ipbb vivado.

Is the ipbus gendecoders command optional while making a bitstream project for Serenity?

tswilliams commented 11 months ago

Yeah, as long as you don't need to add address decoding in the payload (and this is the case for most payloads right now), you don't need to run the gendecoders command

abunickabhi commented 11 months ago

Got it thanks!