Creating your own new problem inside tutorial directory

apaj edited this page Sep 3, 2018 · 1 revision

Learner: "I wrote my own code of FullAdder in ''problems'' package by creating a new file."

Here is what you need to do to add the new file/circuit to the existing package. Say that you want to add it to the package Problems, than go to /src/test/scala/problems and open the file Launcher.scala for editing. Once there, you will note the pattern, but for completeness, what you need to do is add the following piece of code:

"NewCircuitName" -> { (manager: TesterOptionsManager) =>
  Driver.execute(() => new NewCircuitName (), manager) {
    (c) => new NewCircuitNameTests(c)
  }
},

where NewCircuitName is the name of your circuit, FullAdder in your case, and NewCircuitNameTests is the name of the testbench you wrote for that new circuit.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.