Caravel User Project

License UPRJ_CI Caravel Build

Tensor calculation using NNgen

This project uses NNgen https://github.com/NNgen/nngen to generate a simple tensor calculation. Code is as follows

a = ng.placeholder(ng.int8, shape=(1), name=‘a’)

b = ng.placeholder(ng.int8, shape=(1), name=‘b’)

c = ng.add(a, b, dtype=ng.int8, name=‘c’)

rtl = ng.to_verilog([c], ‘Basic’, silent=False)