Skip to content

Commit

Permalink
Update sgutil to hdev
Browse files Browse the repository at this point in the history
  • Loading branch information
bo3z committed Dec 13, 2024
1 parent d1ece45 commit e336868
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ in the original build-directory as described before.
## Deploying on the ETHZ HACC-cluster
The ETHZ HACC is a premiere cluster for research in systems, architecture and applications (https://github.com/fpgasystems/hacc/tree/main). Its hardware equipment provides the ideal environment to run Coyote-based experiments, since users can book up to 10 servers with U55C-accelerator cards connected via a fully switched 100G-network. User accounts for this platform can be obtained following the explanation on the previously cited homepage.

The interaction with the HACC-cluster can be simplified by using the sgutil-run time commands. They also allow to easily program the accelerator with a Coyote-bitstreamd and insert the driver. For this purpose, the script `program_coyote.sh` has been generated. Under the assumption that the hardware-project has been created in `examples_hw/build` and the driver is already compiled in `driver`, the workflow should look like this:
The interaction with the HACC-cluster can be simplified by using the hdev-run time commands. They also allow to easily program the accelerator with a Coyote-bitstreamd and insert the driver. For this purpose, the script `program_coyote.sh` has been generated. Under the assumption that the hardware-project has been created in `examples_hw/build` and the driver is already compiled in `driver`, the workflow should look like this:

~~~
$ bash program_coyote.sh examples_hw/build/bitstreams/cyt_top.bit driver/coyote_drv.ko
Expand Down
8 changes: 4 additions & 4 deletions program_coyote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ fi


##
## Program the FPGA via the sgutil call - only work locally for the server that you are currently logged in to
## Program the FPGA via the hdev call - only work locally for the server that you are currently logged in to
##

if [ $PROGRAM_FPGA -eq 1 ]; then
echo "***"
echo "** Programming the FPGA with $BIT_PATH"
echo "***"
sgutil program vivado -b $BIT_PATH
hdev program vivado -b $BIT_PATH
echo "***"
echo "** FPGA programmed"
echo "***"
Expand All @@ -56,8 +56,8 @@ if [ $DRV_INSERT -eq 1 ]; then
echo "***"
echo "** IP_ADDRESS: $DEVICE_1_IP_ADDRESS_HEX_0"
echo "** MAC_ADDRESS: $DEVICE_1_MAC_ADDRESS_0"
sgutil program driver -i $DRV_PATH -p ip_addr=$DEVICE_1_IP_ADDRESS_HEX_0,mac_addr=$DEVICE_1_MAC_ADDRESS_0
# sgutil program driver -m $DRV_PATH
hdev program driver -i $DRV_PATH -p ip_addr=$DEVICE_1_IP_ADDRESS_HEX_0,mac_addr=$DEVICE_1_MAC_ADDRESS_0
# hdev program driver -m $DRV_PATH
echo "***"
echo "** Driver loaded "
echo "***"
Expand Down

0 comments on commit e336868

Please sign in to comment.