Download Bluespec SystemVerilog compiler (bsc) from https://github.com/B-Lang-org/bsc and add the installation appropriately to your PATH enviroment variable before calling the Python network generator.
Run the gen_network.py tool. Use the -h flag for further usage information.
A sample script can be found in the command.sh file.