intel / rohd

The Rapid Open Hardware Development (ROHD) framework is a framework for describing and verifying hardware in the Dart programming language.
https://intel.github.io/rohd-website
BSD 3-Clause "New" or "Revised" License
374 stars 67 forks source link

Add more informative looped connection error message #315

Closed chykon closed 1 year ago

chykon commented 1 year ago

Motivation

Might be worth adding a more descriptive looped connection error message. Currently showing Unhandled exception: LateInitializationError: Field '_preTickSubscription@22087482' has already been initialized..

Code:

import 'package:rohd/rohd.dart';

void main() {
  final a = Logic();
  final b = Logic();

  a <= b;
  b <= a;
}

Desired solution

Add more informative looped connection error message.

Alternatives considered

No response

Additional details

No response

mkorbel1 commented 1 year ago

That error is certainly not what we want to see for this. Thank you for filing!

I guess this is related to https://github.com/intel/rohd/issues/316