Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cat(x,y) and Fill(x,y) are utilities and require separate import statement #58

Open
bqwer opened this issue Jan 7, 2017 · 2 comments
Open

Comments

@bqwer
Copy link
Contributor

bqwer commented Jan 7, 2017

To use Cat(x,y) and Fill(x,y) one need to import chisel3.utils._ besides import chisel3._
It's demonstrated in examples so it's not critical issue but I believe it should be stated in Chisel Tutorial in explicit way.

When you are reading a tutorial you assume that you don't need to do anything special to be able to use all Chisel operators ( Cat(x,y) and Fill(x,y) are mentioned in section "5. Builtin Operators" and in "Table 1: Chisel operators on builtin data types" )

Chisel Manual and Chisel CheatSheet doesn't mention it either.
Chisel 3 Wiki mentions only import chisel3._ in xviii and xix.

After reading Scala documentation I expected that import chisel3._ would automatically import chisel3.utils._ but it seems to be wrong. If you don't import chisel3.utils._ while using Cat(x,y) or Fill(x,y) you will get compilation error: not found: value Cat or not found: value Fill

@alaasal
Copy link

alaasal commented Nov 2, 2019

Hello,
It is now ( chisel3.util._ ) there is no s in util.

@y1lan
Copy link

y1lan commented Apr 4, 2022

thanks, it fixes my problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants