summaryrefslogtreecommitdiff
path: root/lab_2/SIM
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-13 23:23:19 -0800
committerFuwn <[email protected]>2026-02-13 23:23:19 -0800
commit583bec7ffd3c2809ea41aa8a518f53403af3efaa (patch)
tree551fa62ee04d40616db4f2375176c362ae6f3cbc /lab_2/SIM
downloadcst456-583bec7ffd3c2809ea41aa8a518f53403af3efaa.tar.xz
cst456-583bec7ffd3c2809ea41aa8a518f53403af3efaa.zip
Initial commit
Diffstat (limited to 'lab_2/SIM')
-rw-r--r--lab_2/SIM/run_simulation.bat7
-rw-r--r--lab_2/SIM/run_waveform.bat3
-rw-r--r--lab_2/SIM/xsim_cfg.tcl3
3 files changed, 13 insertions, 0 deletions
diff --git a/lab_2/SIM/run_simulation.bat b/lab_2/SIM/run_simulation.bat
new file mode 100644
index 0000000..1a1f71f
--- /dev/null
+++ b/lab_2/SIM/run_simulation.bat
@@ -0,0 +1,7 @@
+@echo off
+call C:\Xilinx\Vivado\2022.1\bin\xvlog -nolog -sv ../SRC/typedef_pkg.sv ../SRC/tb.sv ../SRC/duv.sv
+call C:\Xilinx\Vivado\2022.1\bin\xelab -debug typical -top tb -snapshot duv_tb_snapshot
+call C:\Xilinx\Vivado\2022.1\bin\xsim duv_tb_snapshot -R
+call C:\Xilinx\Vivado\2022.1\bin\xsim duv_tb_snapshot --tclbatch xsim_cfg.tcl
+call C:\Xilinx\Vivado\2022.1\bin\xsim --gui duv_tb_snapshot.wdb
+pause
diff --git a/lab_2/SIM/run_waveform.bat b/lab_2/SIM/run_waveform.bat
new file mode 100644
index 0000000..b3ddc9a
--- /dev/null
+++ b/lab_2/SIM/run_waveform.bat
@@ -0,0 +1,3 @@
+@echo off
+call C:\Xilinx\Vivado\2022.1\bin\xsim duv_tb_snapshot --tclbatch xsim_cfg.tcl
+call C:\Xilinx\Vivado\2022.1\bin\xsim --gui duv_tb_snapshot.wdb
diff --git a/lab_2/SIM/xsim_cfg.tcl b/lab_2/SIM/xsim_cfg.tcl
new file mode 100644
index 0000000..b7c49f5
--- /dev/null
+++ b/lab_2/SIM/xsim_cfg.tcl
@@ -0,0 +1,3 @@
+log_wave -recursive *
+run all
+exit \ No newline at end of file