Я искал какой-то код Verilog и наткнулся на то, чего я никогда раньше не видел, и не смог найти информацию об Интернете.Уточнение синтаксиса модуляции модуля Verilog
module FA_n_bit(c_out, Sum, A, B, c_in);
parameter word_size = 4; // the default size of this n bit adder
input [word_size-1:0] A, B;
input c_in;
output [word_size-1:0] Sum;
output c_out;
wire [word_size-1:0] c_inner;
// the c_out of the ith 1-bit full aderr is the c_in of the (i+1)th full adder
FA_one_bit fullAdder [word_size-1:0](
{c_out, c_inner[word_size-1:1]},
Sum,
A,
B,
{c_inner[word_size-1:1], c_in}
);
endmodule
Я понимаю синтаксис параметра, но я с трудом понимая, что FA_one_bit fullAdder [word_size-1: 0] (...) синтаксис делает.
всякая помощь была бы принята с благодарностью. До сих пор я думаю, что его объявление 4 fullAdders, но я теряюсь при конкатенации c_out и c_inner [word_size-1: 1].