71 lines
2.8 KiB
Plaintext
71 lines
2.8 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_rom_control.vhd
|
|
vcom -work work spi2display_rom.vhd
|
|
vcom -work work spi2display.vhd
|
|
vcom -work work spi2display_tb.vhd
|
|
|
|
# Simulator starten
|
|
vsim -voptargs=+acc spi2display_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
|
|
|
|
if {1} {
|
|
add wave -divider "Externe Signale - spi2display"
|
|
add wave -noupdate /spi2display_tb/dut/clk
|
|
add wave -noupdate /spi2display_tb/dut/reset
|
|
add wave -noupdate /spi2display_tb/dut/sck
|
|
add wave -noupdate /spi2display_tb/dut/mosi
|
|
add wave -noupdate /spi2display_tb/dut/ssel
|
|
}
|
|
|
|
if {1} {
|
|
add wave -noupdate -divider {Interne Signale}
|
|
add wave -noupdate /spi2display_tb/dut/addr
|
|
add wave -noupdate -radix ascii /spi2display_tb/dut/data_rom
|
|
add wave -noupdate -radix ascii /spi2display_tb/dut/data
|
|
add wave -noupdate /spi2display_tb/dut/valid
|
|
add wave -noupdate /spi2display_tb/dut/ready
|
|
add wave -noupdate -divider spi_rom_control
|
|
add wave -noupdate -divider Steuerwerk
|
|
add wave -noupdate /spi2display_tb/dut/Control_Inst/state
|
|
add wave -noupdate /spi2display_tb/dut/Control_Inst/state_next
|
|
add wave -noupdate /spi2display_tb/dut/Control_Inst/CtrlBits
|
|
add wave -noupdate /spi2display_tb/dut/Control_Inst/CntAddrEn
|
|
add wave -noupdate /spi2display_tb/dut/Control_Inst/CntAddrRst
|
|
add wave -noupdate /spi2display_tb/dut/Control_Inst/RegDataEn
|
|
add wave -noupdate -divider Rechenwerk
|
|
add wave -noupdate -label RegData -radix ascii /spi2display_tb/dut/Control_Inst/RegData/Q
|
|
add wave -noupdate -label CntAddr /spi2display_tb/dut/Control_Inst/CntAddr/cntVal
|
|
}
|
|
|
|
if {1} {
|
|
add wave -noupdate -divider "spi_transmitter"
|
|
add wave -noupdate -divider Steuerwerk
|
|
add wave -noupdate /spi2display_tb/dut/SPI_Transmitter_Inst/state
|
|
add wave -noupdate /spi2display_tb/dut/SPI_Transmitter_Inst/state_next
|
|
add wave -noupdate /spi2display_tb/dut/SPI_Transmitter_Inst/CntSckTc
|
|
add wave -noupdate /spi2display_tb/dut/SPI_Transmitter_Inst/CntSckRst
|
|
add wave -noupdate /spi2display_tb/dut/SPI_Transmitter_Inst/RegDataLd
|
|
add wave -noupdate /spi2display_tb/dut/SPI_Transmitter_Inst/RegDataEn
|
|
add wave -noupdate /spi2display_tb/dut/SPI_Transmitter_Inst/CntBitsEn
|
|
add wave -noupdate /spi2display_tb/dut/SPI_Transmitter_Inst/CntBitsTC
|
|
add wave -noupdate /spi2display_tb/dut/SPI_Transmitter_Inst/CntBitsRst
|
|
add wave -noupdate -divider Rechenwerk
|
|
add wave -noupdate -label RegData /spi2display_tb/dut/SPI_Transmitter_Inst/RegData/Q
|
|
add wave -noupdate -label CntSck /spi2display_tb/dut/SPI_Transmitter_Inst/CntSck/cntVal
|
|
add wave -noupdate -label CntBits /spi2display_tb/dut/SPI_Transmitter_Inst/CntBits/cntVal
|
|
}
|
|
|
|
run 1000 us |