Add explict types to fix errors caused by https://github.com/B-Lang-org/bsc/pull/916#46
Add explict types to fix errors caused by https://github.com/B-Lang-org/bsc/pull/916#46krame505 wants to merge 2 commits into
Conversation
|
This actually seems unrelated the XXX comments about TLM! The TLM libraries provide specific amba bus interfaces (like AXI) and convert them to an abstracted common interface (TLM), so then modules can be written with a TLM interface and different shims can be used to convert that to AXI etc as needed for the context. The ID field of the TLM is allowed to be a different size than the AXI ID field (I gather?). And so Also, you only add explicit types in one file. In other, you just remove the call to |
|
I am still having a hard time understanding what is going on with the defines here. It seems that the aliases must be expanding to the same size of I'm not sure how those ended up with different fixes - I changed them to both have explicit types for now. |
|
This is inside an instance of As far as this library goes, However, I think we should extract a simple example of what's going on here, to add to the BSC testsuite and to understand the change. Because what's happening here is that an explicit type is needed on a method of a typeclass instance. But the typeclass declaration says what the types are, so the type should be known to BSC. For an explicit type to make a difference, it must be that BSC is typechecking it implicitly and then only later trying to unify that with the declared type? That's what I'd like to understand, and whether there's something that can be fixed by doing that typecheck better (like, inserting an explicit type when there isn't one, or something). That fix may not need to be done now, but should at least be filed as a bug, so we know for later. I think I can boil this down to a small example -- give me a sec. My suggestion, then, is to change this PR to just update 2 lines (remove the |
|
Closing this, see discussion on B-Lang-org/bsc#916. |
|
No longer needed: with the conditional synonym expansion in B-Lang-org/bsc#916, |
No description provided.