def test(request, silent=True):
    veriloggen.reset()

    simtype = request.config.getoption('--sim')

    rslt = matrix_multiply_shared.run(a_shape, b_shape, c_shape,
                                      a_dtype, b_dtype, c_dtype, d_dtype,
                                      par, axi_datawidth, silent,
                                      filename=None, simtype=simtype,
                                      outputfile=os.path.splitext(os.path.basename(__file__))[0] + '.out')

    verify_rslt = rslt.splitlines()[-1]
    assert(verify_rslt == '# verify: PASSED')
a_dtype = ng.int32
b_dtype = ng.int32
c_dtype = ng.int32
d_dtype = ng.int32
par = 2
axi_datawidth = 32


def test(request, silent=True):
    veriloggen.reset()

    simtype = request.config.getoption('--sim')

    rslt = matrix_multiply_shared.run(a_shape, b_shape, c_shape,
                                      a_dtype, b_dtype, c_dtype, d_dtype,
                                      par, axi_datawidth, silent,
                                      filename=None, simtype=simtype,
                                      outputfile=os.path.splitext(os.path.basename(__file__))[0] + '.out')

    verify_rslt = rslt.splitlines()[-1]
    assert(verify_rslt == '# verify: PASSED')


if __name__ == '__main__':
    rslt = matrix_multiply_shared.run(a_shape, b_shape, c_shape,
                                      a_dtype, b_dtype, c_dtype, d_dtype,
                                      par, axi_datawidth, silent=False,
                                      filename='tmp.v',
                                      outputfile=os.path.splitext(os.path.basename(__file__))[0] + '.out')
    print(rslt)