From 4b6e0102d20d9ab060ce930e4b846c8be446bb06 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Mon, 12 Dec 2016 21:51:10 +0000 Subject: public push --- part_4/ex16/simulation/modelsim/init_spi.do | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 part_4/ex16/simulation/modelsim/init_spi.do (limited to 'part_4/ex16/simulation/modelsim/init_spi.do') diff --git a/part_4/ex16/simulation/modelsim/init_spi.do b/part_4/ex16/simulation/modelsim/init_spi.do new file mode 100644 index 0000000..b99ff7a --- /dev/null +++ b/part_4/ex16/simulation/modelsim/init_spi.do @@ -0,0 +1,25 @@ +add wave -position end sim:/spi2dac/sysclk +add wave -position end sim:/spi2dac/div2 +add wave -position end sim:/spi2dac/div4 +add wave -position end sim:/spi2dac/status_busy +add wave -position end -hexadecimal sim:/spi2dac/data_in +add wave -position end sim:/spi2dac/ld +add wave -position end -hexadecimal sim:/spi2dac/state +add wave -position end sim:/spi2dac/sck_ena +add wave -position end sim:/spi2dac/dac_ld +add wave -position end -hexadecimal sim:/spi2dac/shift_reg +add wave -position end sim:/spi2dac/spi_sdo +add wave -position end sim:/spi2dac/spi_cs +add wave -position end sim:/spi2dac/spi_sck +add wave -position end sim:/spi2dac/spi_ld +add wave -position end sim:/spi2dac/rs_state +force -freeze sim:/spi2dac/sysclk 1 0, 0 {10 ns} -r 20 ns +run 20ns +force data_in 10'h2c3 +force ld 0 +run 20ns +force ld 1 +run 20ns +force ld 0 +run 20ns + \ No newline at end of file -- cgit v1.2.3-54-g00ecf