kelvin_sg
Advanced Member level 4
I was studying codes written by others, one style is confusing me,
The code is from a well known IC design companies, whom we outsource
RTL design to.
Will synthesizer do well with this? I was taught not to use this style previously.
Code:
always @(posedge clk or negedge rst) begin
if (rst == 1'b0) begin
dat <= 10'd0;
end
else begin
if (sel0) begin
dat <= dat0;
end
if (sel1) begin
dat <= dat1;
end
end
end
The code is from a well known IC design companies, whom we outsource
RTL design to.
Will synthesizer do well with this? I was taught not to use this style previously.