44 lines
1.5 KiB
Plaintext
44 lines
1.5 KiB
Plaintext
# work-Bibliothek erzeugen, falls nicht schon vorhanden
|
|
if { [file exists work] == 0} {
|
|
vlib work
|
|
}
|
|
|
|
# Benoetigte Dateien uebersetzen
|
|
vcom -work work spi_transmitter.vhd
|
|
vcom -work work spi_transmitter_tb.vhd
|
|
|
|
# Simulator starten
|
|
vsim -voptargs=+acc spi_transmitter_tb
|
|
|
|
# Breite der Namensspalte
|
|
configure wave -namecolwidth 128
|
|
configure wave -datasetprefix 0
|
|
configure wave -signalnamewidth 1
|
|
configure wave -namecolwidth 154
|
|
configure wave -valuecolwidth 100
|
|
set NumericStdNoWarnings 1
|
|
|
|
add wave -divider "Externe Signale"
|
|
add wave -noupdate /spi_transmitter_tb/clk
|
|
add wave -noupdate /spi_transmitter_tb/reset
|
|
add wave -noupdate /spi_transmitter_tb/s_data
|
|
add wave -noupdate /spi_transmitter_tb/s_valid
|
|
add wave -noupdate /spi_transmitter_tb/s_ready
|
|
add wave -noupdate /spi_transmitter_tb/sck
|
|
add wave -noupdate /spi_transmitter_tb/mosi
|
|
add wave -noupdate /spi_transmitter_tb/ssel
|
|
|
|
add wave -divider "Interne Signale"
|
|
add wave -noupdate /spi_transmitter_tb/dut/state
|
|
add wave -noupdate /spi_transmitter_tb/dut/state_next
|
|
add wave -noupdate /spi_transmitter_tb/dut/CntSckTc
|
|
add wave -noupdate /spi_transmitter_tb/dut/CntSckRst
|
|
add wave -noupdate /spi_transmitter_tb/dut/RegDataLd
|
|
add wave -noupdate /spi_transmitter_tb/dut/RegDataEn
|
|
add wave -noupdate /spi_transmitter_tb/dut/CntBitsEn
|
|
add wave -noupdate /spi_transmitter_tb/dut/CntBitsTC
|
|
add wave -noupdate /spi_transmitter_tb/dut/CntBitsRst
|
|
add wave -noupdate -label CntBits /spi_transmitter_tb/dut/CntBits/cntVal
|
|
add wave -noupdate -label RegDataQ /spi_transmitter_tb/dut/RegData/Q
|
|
|
|
run 1000 us |