verilog 코드에 아래와 같은 구문이 있다.
wire abc;
`ifdef ABC
`ifdef ABC
assign abc = 1'b1;
`else
assign abc = 1'b0;
`endif
synopsys design compiler에서 합성할 때만 ABC define을 하고 싶은 경우에 (사실 목적은 다른것이지만...)
아래와 같이 사요할 수 있다. { 와 }를 써서 다수의 define을 선언 할 수 있다.
analyze -f verilog -define ABC ddd.v
analyze -f verilog -d { RIPPLE, SIMPLE } mydesign.v
analyze -f verilog -d { RIPPLE, SIMPLE } mydesign.v
'설계' 카테고리의 다른 글
| 간만에 재밌는 책을 봤다. (2) | 2010/08/10 |
|---|---|
| Design Compiler 에서 verilog 를 read 할 때 define 설정하기 (1) | 2010/04/01 |
| Design Compiler Library (1) | 2010/03/23 |
| verilog 2001의 유용한 문법 (0) | 2010/01/22 |
| Verilog 시뮬레이션 시 동적으로 Stimulus 파일 읽어오기 (1) | 2009/10/23 |
| Identify Sample Buffer Depth 지정법 (0) | 2009/10/05 |


