+ 1
guys i wanna write a 4-bit complementary 2-bit multiplier circuit in verilog code
module multiplier (); reg signed [3 : 0] number1; reg signed [3 : 0] number2; wire signed [7 : 0] result; assign result = number1 * number2; //test bench initial begin // -4 * 3 number1 = 4'b1100; //-4 number2 = 4'b0011; //3 // 5 * 6 #1000 number1 = 4'b0101; //5 number2 = 4'b0110; //6 end endmodule
11 Answers
+ 1
What language is that?From where you can learn it?
+ 1
Verilog.
+ 1
Verilog is that a powerful lang Coder ?what kind of programs you can build with it?
+ 1
We create circuits, make fulladder,half adder,multipliers with verilog code
+ 1
It has warnings like memory warnings
0
@Coder don't you wanna put your test bench and design code in separate files first
0
Coder what are the errors you get when you run it?
0
If it is a warning it should work. But if it is an error that's another thing Coder
0
It's on xilinx. It has warnings so test bech won't run successfully
0
Coder could you try just with wire instead of wire signed and in the test bench take the - off and try it if it works
0
Also try to use just reg instead of reg signed. This just to debug and see what my cause the problem