2021-09-22 10:34:20 -05:00
|
|
|
module attrib09_bar(clk, rst, inp, out);
|
2019-06-03 02:12:51 -05:00
|
|
|
input wire clk;
|
|
|
|
input wire rst;
|
|
|
|
input wire [1:0] inp;
|
|
|
|
output reg [1:0] out;
|
|
|
|
|
|
|
|
always @(inp)
|
|
|
|
(* full_case, parallel_case *)
|
|
|
|
case(inp)
|
|
|
|
2'd0: out <= 2'd3;
|
|
|
|
2'd1: out <= 2'd2;
|
|
|
|
2'd2: out <= 2'd1;
|
|
|
|
2'd3: out <= 2'd0;
|
|
|
|
endcase
|
|
|
|
|
|
|
|
endmodule
|
|
|
|
|
2021-09-22 10:34:20 -05:00
|
|
|
module attrib09_foo(clk, rst, inp, out);
|
2019-06-03 02:12:51 -05:00
|
|
|
input wire clk;
|
|
|
|
input wire rst;
|
|
|
|
input wire [1:0] inp;
|
|
|
|
output wire [1:0] out;
|
|
|
|
|
2021-09-22 10:34:20 -05:00
|
|
|
attrib09_bar bar_instance (clk, rst, inp, out);
|
2019-06-03 02:12:51 -05:00
|
|
|
endmodule
|
|
|
|
|