J
Jason Zheng
Guest
Is this synthesizable?
wire empty;
reg [1:0] ptr;
reg [3:0] isEmpty;
assign empty = isEmpty[ptr];
....
always (posedge clk)
if (rst) begin
ptr <= 0;
isEmpty <= 0;
end
else begin
ptr <= ...
isEmpty <= ...
end
thanks,
wire empty;
reg [1:0] ptr;
reg [3:0] isEmpty;
assign empty = isEmpty[ptr];
....
always (posedge clk)
if (rst) begin
ptr <= 0;
isEmpty <= 0;
end
else begin
ptr <= ...
isEmpty <= ...
end
thanks,