forsyde / forsyde-shallow-examples

BSD 3-Clause "New" or "Revised" License
1 stars 4 forks source link

Added mulacc example #8

Closed tpvidigal closed 7 years ago

tpvidigal commented 7 years ago

Adapted ForSyDe-SystemC's mulacc synchronous (sy) example to ForSyDe-Shallow.

joseedil commented 7 years ago

@ingo-sander

I reviewed Tiago's code and now it seems to be compliant to the SystemC example. There are two variants of the source-code, one cloning the SystemC implementation names and another one in a more functional style. There is also a simple testbench replicating the behavior of the SystemC simulation and the comments are much more inscructive. It looks quite good now.

To run it yourself, go to your local copy of the repo and do:

$> git fetch origin pull/8/head:tiago-PR $> git checkout tiago-PR

This will fetch the pull request changes into a new local branch called tiago-PR. To run it, on the main folder forsyde-shallow-examples:

$> cabal repl ghci> :l src/ForSyDe/Shallow/Example/Synchronous/MulAcc.hs ghci> sim_mullac ghci> sim_alt

Shall I merge it on the public master branch?

Regards. Edil.