I made my module whish looks like this
from pygears import gear
from pygears.typing import Fixp, Tuple
from pygears.lib import add, qround, saturate, drv, collect
from pygears.sim import sim
from pygears.hdl import hdlgen
@gear
def adder(data: Tuple[Fixp[10, 32], Fixp[10, 32]]):
return add(data[0],data[1]) \
| qround (fract=21) \
| saturate(t=Fixp[11, 32])
hdlgen('/adder',outdir='./Example1/adder_hdl',copy_files='True')
Now, my top level module interfaces are DTI interfaces
module adder(
input logic clk,
input logic rst,
dti.consumer data, // (q10.22, q10.22) (64)
dti.producer dout // q11.21 (32)
);
Since Vivado is expecting top level wrapper to be in Verilog is there any way to tell PyGears to convert top level interfaces into standard ports?