|
一 donot care case(addr) 3’d0: output = 3’d0; 3’d1: output = 3’d1; 3’d2: output = 3’d2; 3’d3: output = 3’d3; 3’d4: output = 3’d4;
defaultutput = 3'dx; endcase 二 synopsys 编译指导 case(addr) // // synopsys full_case 3’d0: output = 3’d0; 3’d1: output = 3’d1; 3’d2: output = 3’d2; 3’d3: output = 3’d3; 3’d4: output = 3’d4; endcase
加入default和fullcase两者应该都是为了避免锁存器,采用x引入无关项应该可以更好的优化,default x和full_case是不是一样的效果呢?
|
|