B
Bill Burris
Guest
Is there a compact way of creating multiple instances of a circuit?
Instead of repeating something like the following 32 times, can I do
this in some kind of a loop with indexing.
Channel U_Channel0 ( .clk(clk),
.reset(reset),
.delay_time(delay_time),
.gate_width(gate_width),
.threshold(threshold),
.ch(5'd0),
.din(db[0]),
.dout(dout[0]),
.empty(empty),
.half_full(half_full),
.full(full) );
Channel U_Channel1 ( .clk(clk),
.reset(reset),
.delay_time(delay_time),
.gate_width(gate_width),
.threshold(threshold),
.ch(5'd1),
.din(db[1]),
.dout(dout[1]),
.empty(empty),
.half_full(half_full),
.full(full) );
thanks
Bill
Instead of repeating something like the following 32 times, can I do
this in some kind of a loop with indexing.
Channel U_Channel0 ( .clk(clk),
.reset(reset),
.delay_time(delay_time),
.gate_width(gate_width),
.threshold(threshold),
.ch(5'd0),
.din(db[0]),
.dout(dout[0]),
.empty(empty),
.half_full(half_full),
.full(full) );
Channel U_Channel1 ( .clk(clk),
.reset(reset),
.delay_time(delay_time),
.gate_width(gate_width),
.threshold(threshold),
.ch(5'd1),
.din(db[1]),
.dout(dout[1]),
.empty(empty),
.half_full(half_full),
.full(full) );
thanks
Bill