Skip to content

Realtime HAT python package

ulbricht-inr edited this page Oct 13, 2025 · 16 revisions

Contains python bindings to control your Realtime-HAT. See https://github.com/InnoRoute/RealtimeHAT

Binaries

INR_FPGA_license

  • Displays license information and a FPGA feature list

INR_FPGA_status

  • Displays status information of the FPGA

INR_change_bitstream

  • Replaces update-bitstream
  • Displays available bistreams and installs selected

run sudo INR_change_bitstream

INR-config

  • Realtime-HAT network mode config and options
  • Select System network configuration mode
  • Allows installation of additional features

run sudo INR-config

Examples

SIGGEN_test.py

run python3 SIGGEN_test.py

TAS_test.py

run python3 TAS_test.py

fpga_status.py

run python3 fpga_status.py

  • Displays status information of the FPGA

/UC1

  • examples for UC1(Flowcache+TAS), see PDF for description

functions

RT_HAT_TAS.set_GCL

RT_HAT_TAS.set_GCL(my_GCL,port)

  • sets GCL of port

RT_HAT_TAS.get_GCL

RT_HAT_TAS.get_GCL(port)

  • returns GCL of port

RT_HAT_TAS.apply

RT_HAT_TAS.apply(port)

  • applies TAS settings to port

RT_HAT_FPGA.init

RT_HAT_FPGA.init(envfile)

  • loads environment addresses from envfile

RT_HAT_FPGA.status

RT_HAT_FPGA.status()

  • returns FPGA status information

RT_HAT_SIGGEN.set

RT_HAT_SIGGEN.set(DUTY_CYCLE,PERIOD,PHASE,CNT)

  • DUTY_CYCLE: duty cycle (between 0 and 1)
  • PERIOD: period time (between 0s and 2s, in ns)
  • START: start time (in ns)
  • CNT: count of pulses to generate (0 = infinite)