[問題]"乘法"與電路和成(design vision)

看板Electronics作者 (外村尼克)時間17年前 (2008/05/28 01:15), 編輯推噓3(300)
留言3則, 3人參與, 最新討論串1/2 (看更多)
小弟我最近想打個乘法出來 module time1(in3,in4,out3); //作in3和in4的相乘 input [13:0]in3; input [13:0]in4; output reg [13:0]out3 ; reg [27:0]cc ; always@( *) begin cc <= in3*in4 ; out3 <= cc[27:14]; end endmodule 並且利用這種寫法來寫四次方程式,在ISE模擬時出來的值都是對的 但是我把它丟到design vision去做合成gate level compile後要存v檔時,她跑出兩種warning.. 1 . Information: Design 'outadder' has multiply instantiated designs. (check design跑出來的) 2 指令 change_names -rule verilog -hierarchy 時 warning : testLS_DW_mult_uns_4, net 'b[2]' is connecting multiple ports. (testLS 是我更大的module) . . . ...很多 3. 存v檔時 Verilog writer has added 14 nets to module time1 using SYNOPSYS_UNCONNECTED_ as prefix. Please use the change_names command to make the correct changes before invoking the verilog writer. 我想問的是是不是在寫verilog 而且作合成電路時 不可以使用 * 當作乘法 而是得自己寫乘法器?? 有經驗的大大能幫我指導一下嗎?? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.18.232

05/28 03:23, , 1F
wire [13:0] out3 = cc[27:14] ;
05/28 03:23, 1F

05/28 04:16, , 2F
可以直接寫 * 阿,總不能每次用乘法都要自己刻吧.. @@
05/28 04:16, 2F

05/28 10:06, , 3F
先把書看熟再來coding, blocking non-blocking很基本的東西
05/28 10:06, 3F
文章代碼(AID): #18F46hsF (Electronics)
文章代碼(AID): #18F46hsF (Electronics)