chisel-tutorial icon indicating copy to clipboard operation
chisel-tutorial copied to clipboard

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

Open bqwer opened this issue 8 years ago • 2 comments

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

bqwer avatar Jan 07 '17 18:01 bqwer

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

alaasal avatar Nov 02 '19 09:11 alaasal

thanks, it fixes my problem.

y1lan avatar Apr 04 '22 10:04 y1lan