Skip to content
Open
2 changes: 1 addition & 1 deletion frontend/enso/enso_nic.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(
tx_credits: int = DEFAULT_NB_TX_CREDITS,
ethernet_port: int = DEFAULT_ETH_PORT,
desc_per_pkt: bool = False,
latency_opt: bool = False,
latency_opt: bool = True,
skip_config: bool = False,
verbose: bool = False,
log_file: Union[bool, TextIO] = False,
Expand Down
14 changes: 14 additions & 0 deletions scripts/load_bitstream.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,22 @@ DEVICE_ID="0000"

FPGA_NB=${1:-"1-13"}

BITSTREAM_NAME="enso.sof"

cd $SCRIPT_DIR

# Check and download the bitstream
if ! [ -f $PWD/$BITSTREAM_NAME ]; then
$PWD/update_bitstream.sh --download
if [ $? -eq 0 ]; then
echo "Programming bitstream now..."
else
echo "Failed: Could not download bitstream!"
exit 1
fi
fi


# We use taskset and chrt to benefit from multiple cores even when they are
# isolated from the linux scheduler. This significantly speeds up loading the
# bitstream. Note that we use all but the last core.
Expand Down
2 changes: 1 addition & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ else
fi

# Setup the software.
./scripts/sw_setup.sh 16384 32768 false
./scripts/sw_setup.sh 16384 32768 true
return_code=$?

if [ $return_code -ne 0 ]; then
Expand Down
Loading