[xilinx]: Fixed issue again, hopefully for sure this time. Added small __main__ built-in test.