if {[file exists work]} {vdel -lib work -all}

vlib work
vcom -explicit  -93 "../src/dpram_2w2r.vhd"
vcom -explicit  -93 "../src/dpram_1w1r.vhd"
vcom -explicit  -93 "../src/fifo_ctrl_pkg.vhd"
vcom -explicit  -93 "../src/gray_counter.vhd"
vcom -explicit  -93 "../src/fifo_sync_ctrl.vhd"
vcom -explicit  -93 "../src/fifo_sync.vhd"
vcom -explicit  -93 "../src/fifo_async_ctrl.vhd"
vcom -explicit  -93 "../src/fifo_async.vhd"
vcom -explicit  -93 "../src/bbfifo_16x8.vhd"
vcom -explicit  -93 "../src/kcuart_rx.vhd"
vcom -explicit  -93 "../src/kcuart_tx.vhd"
vcom -explicit  -93 "../src/uart_rx.vhd"
vcom -explicit  -93 "../src/uart_tx.vhd"
vcom -explicit  -93 "../src/uart_wb.vhd"
vcom -explicit  -93 "../src/gpio_wb.vhd"
vcom -explicit  -93 "../src/async_types.vhd"
vcom -explicit  -93 "../src/async_port_wb.vhd"
vcom -explicit  -93 "../src/async_defs.vhd"
vcom -explicit  -93 "../src/bootloader.ROM.vhd"
vcom -explicit  -93 "../src/rom_wb.vhd"
vcom -explicit  -93 "../src/mips_types.vhd"
vcom -explicit  -93 "../src/mips_instr.vhd"
vcom -explicit  -93 "../src/mips_reg.vhd"
vcom -explicit  -93 "../src/mips_shifter.vhd"
vcom -explicit  -93 "../src/mips_alu.vhd"
vcom -explicit  -93 "../src/mips_muldiv.vhd"
vcom -explicit  -93 "../src/mips_cop.vhd"
vcom -explicit  -93 "../src/mips_icache.vhd"
vcom -explicit  -93 "../src/mips_dcache.vhd"
vcom -explicit  -93 "../src/mips_biu.vhd"
vcom -explicit  -93 "../src/mips_bcu.vhd"
vcom -explicit  -93 "../src/mips_pipeline.vhd"
vcom -explicit  -93 "../src/mips_top.vhd"
vcom -explicit  -93 "../src/mips_sys.vhd"
vcom -explicit  -93 "../src/tb_mips_sys.vhd"
vsim -t 1ps -lib work tb_mips_sys
do {tb_mips_sys.wdo}
view wave
view structure
view signals
run 3000us
