Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
As mentioned in the Big Picture, Chisel is embedded into Scala. That of course, means that some knowledge of Scala principles and syntax is a prerequisite to learning Chisel. However, that can be done along the road, i.e. lack of familiarity with Scala should not stop you from starting on the Chisel Learning Journey.
This page represents a prerequisites references collection and, therefore, it is kindly advised not to spend to much time on these resources initially. The list, of course, is not complete and it serves only to provide starting points in different investigations. If the starting point here does not prove to be also the ending point of the investigation, then the answer should be looked for in the advanced section. If your investigation still does not end there, that means we need either another resource here or another page in that section. Please feel free to add useful resource here or another page to the Wiki following the instructions given here.
When adding a reference here, please try not to be redundant - i.e. if answer is found within the already listed reference, there is no need for repetition. The exceptions are very concrete examples of Scala code (either in the context of the code paradigm or syntax) found directly in Sodor or Rocket code - those may be added as pages here.
Scala is a modern multi-paradigm programming language designed to express common programming patterns in a concise, elegant, and type-safe way. The most important resources to start learning Scala as well as look for specific answers are listed in this section:
- A very general introduction to scala
- Scala things you should know, an article by the creators of Chisel
- Scala syntax cheat-sheet
- Scala language official home page
- Scala tutorial with the possibility of running the Scala code you enter right there
- Scala Hands On (intended for java programmers)
- Programming in Scala, 1st Ed. - a book by Martin Odersky, creator of Scala
- Functional Programming Principles in Scala - a MOOC by Martin Odersky, creator of Scala
Scala smoothly integrates features of object-oriented and functional languages. In this section pages towards the discussions, concerns and improvements of the programming paradigm used in the context of hardware design are listed:
Scala code examples to improve understanding of Chisel code
At the moment what follows will be just a list of questions-and-answers on Scala programming principles and syntax, that result from the weekly Hangout sessions and turn out to be a (very often) source of confusion when just starting with Chisel.