module signedadder (Arb,Bet,Lot)
input [1:0] Arb,Bet;
output [2:0] Lot;
reg [2:0] Lot;
always @ (Arb or Bet)
begin:LABEL_A
integer ArbInt, BetInt;
ArbInt = -Arb;
BetInt = Bet
Lot = ArbInt + BetInt;
end
endmodule
这个代码,如果要模拟出来,还需要test vector ,这个好像是叫“测试向量”,请高手帮忙吧测试向量帮忙写成来吧,在国外求学不容易,刚刚接触,verilog HDL,希望高手帮帮忙,万分感谢!