lastland / ScalaHDL2

The second version of ScalaHDL. Scala style!
6 stars 1 forks source link

Better type system should be supported #2

Open lastland opened 9 years ago

lastland commented 9 years ago

For now, the type system in ScalaHDL is not good enough. For example, Signed(-1) % Unsigned(2) or Unsigned(1) % Signed(-2) should be allowed, and the result type can be deduced, but they are not currently supported in this version of ScalaHDL (they are, however, supported in the first version – details can be found in our paper Express and Test Hardware Designs in a Scala DSL, and the source code here).

We should implement a type system at least as good as the first version of ScalaHDL.