2021-09-22 10:34:20 -05:00
|
|
|
module attrib06_bar(clk, rst, inp_a, inp_b, out);
|
2019-06-03 02:12:51 -05:00
|
|
|
input wire clk;
|
|
|
|
input wire rst;
|
|
|
|
input wire [7:0] inp_a;
|
|
|
|
input wire [7:0] inp_b;
|
|
|
|
output reg [7:0] out;
|
|
|
|
|
|
|
|
always @(posedge clk)
|
|
|
|
if (rst) out <= 0;
|
|
|
|
else out <= inp_a + (* ripple_adder *) inp_b;
|
|
|
|
|
|
|
|
endmodule
|
|
|
|
|
2021-09-22 10:34:20 -05:00
|
|
|
module attrib06_foo(clk, rst, inp_a, inp_b, out);
|
2019-06-03 02:12:51 -05:00
|
|
|
input wire clk;
|
|
|
|
input wire rst;
|
|
|
|
input wire [7:0] inp_a;
|
|
|
|
input wire [7:0] inp_b;
|
|
|
|
output wire [7:0] out;
|
|
|
|
|
2021-09-22 10:34:20 -05:00
|
|
|
attrib06_bar bar_instance (clk, rst, inp_a, inp_b, out);
|
2019-06-03 02:12:51 -05:00
|
|
|
endmodule
|
|
|
|
|