The data is converted from binary-weighted to a serial probability code data stream with two signals, allowing negative numbers to be processed by a stochastic computer. Then multiple and add operations are computed and converted back into a serial binary weighted stream.
Input two serial binary weighted serial streams in 2-complement format. Begin reading the data when the serial clock signal goes high.
ADALM2000 and Python to set up the serial data stream and to analyze the data coming out.
# | Input | Output | Bidirectional |
---|---|---|---|
0 | serial_input_1 | serial_output_mul | |
1 | serial_input_2 | serial_output_add | |
2 | serial_output_smul | ||
3 | clk_counter_reset | ||
4 | |||
5 | |||
6 | |||
7 |