Commit 15b89784 by Eddie Hung

Resolve multiple driver

parent ae57d068
...@@ -5,6 +5,7 @@ module top ...@@ -5,6 +5,7 @@ module top
input cin, input cin,
output reg A, output reg A,
output B,
output reg cout output reg cout
); );
...@@ -31,11 +32,11 @@ always @(*) begin ...@@ -31,11 +32,11 @@ always @(*) begin
cout <= cout1&cin~|y; cout <= cout1&cin~|y;
end end
bb ubb (cin,y,x,A); bb ubb (cin,y,x,B);
endmodule endmodule
(* black_box *) module bb(in1, in2, clk, out1); (* blackbox *) module bb(in1, in2, clk, out1);
input in1; input in1;
input in2; input in2;
input clk; input clk;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment