Hi, 如果不是很多位 (ex: 0~255), 直接用table lookup吧.很多Designer都喜欢用C的想法去写verilog,所以认为码愈短愈好,但我各人以为,写verilog要看synthesizer干完事以后的area大小.以上.