|
|
楼主 |
发表于 2012-6-14 23:04:17
|
显示全部楼层
回复 4# peppermint
en,u are right,thanks.
i have another question.
code : reg [4:0]data;
...
if (data[4] == 1'b1)
begin
tmp <= a;
end
else if (data[3] == 1'b1)
begin
tmp <= b;
end
...
else if (data[0] == 1'b1)
begin
tmp <= e;
end
...
i think this is not a good coding and when data == 5'b11111,the DC's result may be different.
what about your idea? |
|