xmxn3559 / doc

1 stars 0 forks source link

uvm例子 加法器 #15

Open xmxn3559 opened 6 years ago

xmxn3559 commented 6 years ago

https://github.com/naragece/uvm-testbench-tutorial-simple-adder

xmxn3559 commented 6 years ago

https://blog.csdn.net/yfcheng_yzc/article/details/29797097 让我们来嚼makefile---make给makefile内部变量赋值

xmxn3559 commented 6 years ago

https://blog.csdn.net/cym_anhui/article/details/80717298

xmxn3559 commented 6 years ago
  1. makefile 文件变量赋值有以下几种

    = 最通用的用法,用在递归展开方式较多

    例子 OPT = add 把add赋给OPT

    := 变量必须之前就定义了,用在直接展开方式较多

    ?= 如果该变量没有赋值,则对该变量赋值

    += 给变量追加赋值

  2. 变量使用

    @echo $(OPT)

    @echo “OPT=” $(OPT) //

  3. make 传递参数

    make OPT=add