119 Chisel 16-bit GCD with scan in and out

119 : Chisel 16-bit GCD with scan in and out

Select Project123456789ONSW2
  • Author: Steve Burns
  • Description: Simple chisel based design based on Knuth's BinaryGDC algorithm using scan chains for I/O.
  • GitHub repository
  • Clock: 0 Hz

How it works

With the ld signal true, the u_bit and v_bit inputs are used to scan the n-bit numbers into the block. Simulataneously, the high-order bit of the u register is scanned out, allowing access to the result of the last computation. Upon lowering the ld signal, the Euclid iteration starts. When done, the done signal is raised.

How to test

Chiseltest enabled tests. Go to chisel and run sbt test.

External hardware

None

IO

#InputOutput
0clockz_bit
1resetdone
2ld
3u_bit
4v_bit
5
6
7