|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
请教,module spe的输入i_tap0是负数,那么我只需要在该模块的接口定义signed就可以了,还是在top层或spe的上一层,或spe的上面所有层涉及到i_tap0的地方都声称 singed? 谢谢
tb.u_dut.u4_vpe0.u_spe0.i_tap0[11:0] //这是i_tap0的路径,有很多层
module spe #(parameter COEF_WIDTH = 12, COMP_WIDTH = 8, RGB_WIDTH = 10)
(
input i_clk,
input i_rst_n,
input signed [COEF_WIDTH-1:0] i_tap0,
input signed [COEF_WIDTH-1:0] i_tap1,
input i_data_vld,
output [RGB_WIDTH-1:0] o_data
); |
|