Skip to content

Commit 26a6670

Browse files
committedSep 11, 2017
Updated Adder test
1 parent c7319a2 commit 26a6670

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed
 

‎tests/greenpak4/slg46620v/Adder.v

+8-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/**
2222
TODO
2323
*/
24-
module Adder(din_a, din_b, dout, xorin, xorout);
24+
module Adder(din_a, din_b, din_c, dout/*, xorin, xorout*/);
2525

2626
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2727
// I/O declarations
@@ -32,19 +32,24 @@ module Adder(din_a, din_b, dout, xorin, xorout);
3232
(* LOC = "P3 P19 P6 P15" *)
3333
input wire[3:0] din_b;
3434

35+
(* LOC = "P13 P8 P10 P16" *)
36+
input wire[3:0] din_c;
37+
3538
(* LOC = "P9 P4 P5 P12" *)
3639
output wire[3:0] dout;
3740

41+
/*
3842
(* LOC = "P13 P8" *)
3943
input wire[1:0] xorin;
4044
4145
(* LOC = "P10" *)
4246
output wire xorout;
47+
*/
4348

4449
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4550
// The adder
4651

47-
assign dout = din_a + din_b;
48-
assign xorout = ^xorin;
52+
assign dout = din_a + din_b/* + din_c*/;
53+
//assign xorout = ^xorin;
4954

5055
endmodule

0 commit comments

Comments
 (0)
Please sign in to comment.