question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UInt(width=...) constructor broken instead of deprecated?

See original GitHub issue

According 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:closed
  • Created 6 years ago
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
ducky64commented, Sep 25, 2017

Sure, I guess I can write up a @removedApi annotation.

0reactions
ducky64commented, Dec 13, 2017
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found