直接上代碼
foldLeft:
結果:
foldRight:
結果:
foldLeft和foldRight的參數“0”,表示初始值爲0.如果你改爲1,結果就會爲56了。
總結:
直接上代碼
foldLeft:
結果:
foldRight:
結果:
foldLeft和foldRight的參數“0”,表示初始值爲0.如果你改爲1,結果就會爲56了。
總結:
https://github.com/nhynes/chisel3-axi Axi.scala Initial commit 3 years ago AxiLite.scala Initi