UInt(width=...) constructor broken instead of deprecated?
See original GitHub issueAccording to https://github.com/freechipsproject/chisel3/blob/6e12ed9fd7a771eb30f44b8e1c4ab33f6ad8e0a6/src/main/scala/chisel3/package.scala#L142 the UInt(width=...)
methods should only be deprecated (as opposed to removed). However, the following block seems to cause a type mismatch error with the latest 3.0 snapshot:
class TestBlock extends Module {
val io = IO(new Bundle {
val output = Output(UInt(width=3))
})
}
type mismatch;
[error] found : Int(3)
[error] required: chisel3.internal.firrtl.Width
[error] val output = Output(UInt(width=3))
It seems that this hard breaks some previously-valid Chisel3 code (as opposed to giving a warning, which seems like a regression).
sbt 0.13.12, scala 2.11.8
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (15 by maintainers)
Top Results From Across the Web
RHS Vector of Bundles UInt Index Broken · Issue #419 - GitHub
I'm seeing some strange behavior that seems to relate to using a variable indexed Vector of Bundles in the RHS of an assignment....
Read more >Common Mistakes - OpenGL Wiki - Khronos Group
This problem usually manifests itself with constructors, when a user creates a texture object or similar OpenGL object wrapper at global scope.
Read more >"@Deprecated" code should not be used - SonarSource Rules
Once deprecated, classes, and interfaces, and their members should be avoided, rather than used, inherited or extended. Deprecation is a warning that the ......
Read more >A tour of the Dart language
This page shows you how to use each major Dart feature, from variables and operators to classes and libraries, with the assumption that...
Read more >String (Java Platform SE 8 ) - Oracle Help Center
Deprecated. This method does not properly convert bytes into characters. As of JDK 1.1, the preferred way to do this is via the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sure, I guess I can write up a @removedApi annotation.
@ucbjrl