arminalaghi / scsynth

Synthesis tool for stochastic computing
MIT License
21 stars 11 forks source link

Hotfix for previous merge on LFSR seed generation for MReSC #7

Closed danilo-bc closed 5 years ago

danilo-bc commented 5 years ago

Fixes bug introduced in previous merge, discussed in #4 . This has been more thoroughly tested and generates valid seed according to the number of bits specified (m=log2(N)).

User discretion is still advised (for example: it's a bad idea try mapping 3 bits for a circuit with a high number of inputs, like 9)