. 将所有Verilog源文件编译成一个库文件:
```
vlog -work work *.v
```
2. 编译主文件:
```
vlog -work work main.v
```
3. 执行仿真:
```
vsim -work work main
```
. 将所有Verilog源文件编译成一个库文件:
```
vlog -work work *.v
```
2. 编译主文件:
```
vlog -work work main.v
```
3. 执行仿真:
```
vsim -work work main
```