sameh_yassin99
Member level 3
Hi,
I use the following code to implement a generic shift register.
The output is just fine as shown in the following image,
It works as desired but I don't understand what the symbol "#" do. The symbol makes no difference.
It is used in the OpenBTS project in many positions so I need to know what does i do.
regards,
I use the following code to implement a generic shift register.
Code:
/////////////////////////////////////////////
module Equalizer_IP(parallel_o,serial_in,clk_in,enable,reset_in);
parameter filter_order = 7;
parameter bw = 4;
parameter maxbitgain = 21;
output [bw-1:0] parallel_o;
input [bw-1:0] serial_in;
input clk_in;
input enable;
input reset_in;
reg [bw-1:0] pipeline [0:filter_order-1];
integer i;
/////////////////////////////////////////////
assign parallel_o = pipeline[filter_order-1];
always @(posedge clk_in) begin
pipeline[0] = serial_in;
for(i=1;i<filter_order;i=i+1)begin
pipeline[i] <= #3 pipeline[i-1];
end
end
/////////////////////////////////////////////
endmodule // end main
The output is just fine as shown in the following image,
It works as desired but I don't understand what the symbol "#" do. The symbol makes no difference.
It is used in the OpenBTS project in many positions so I need to know what does i do.
regards,
Last edited: