How is this code implementing a 3 by 8 decoder?
module decoder #(parameter N = 3) (input logic [N–1:0] a, output logic [2**N–1:0] y);
always_comb begin
y = 0; y[a] = 1;
end
endmodule
How is this code implementing a 3 by 8 decoder?
module decoder #(parameter N = 3) (input logic [N–1:0] a, output logic [2**N–1:0] y);
always_comb begin
y = 0; y[a] = 1;
end
endmodule