Accelergy-Project / timeloop-accelergy-tutorial

Docker container with tools for the Timeloop/Accelergy tutorial
http://accelergy.mit.edu/tutorial.html
MIT License
23 stars 11 forks source link

Issue with replacing the mac unit with an adder #7

Closed Olivier-Dopeli closed 3 years ago

Olivier-Dopeli commented 3 years ago

Hello,

I am testing the exercises in the tutorial on Timeloop and Accelergy. All the exercises worked well. To better understand how Timeloop+Accelergy works, I am trying to modify the exercises.

To begin with, I tried to replace the arithmetic unit in the exercises:

    - name: mac      |> - name: add
      class: intmac  |>   class: intadder

But I get the following errors:

For the moment I don't understand why I can't replace the mac unit by an adder. The class: intadder is defined in the list of "primitive_component_libs.yaml" and there is no constraint to use the mac class.

Do you have any idea what I did wrong?

Thank you in advance

nellie-wu commented 3 years ago

You need to update the constraint file for timeloop+accelergy and update the action counts file for accelergy exercise 04.