- use async. FIFOs

git-svn-id: http://moon:8086/svn/vhdl/trunk@1275 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2015-06-02 19:16:16 +00:00
parent fb41f345fa
commit 7ad5c7f3c2
5 changed files with 215 additions and 35 deletions
+7
View File
@@ -5,6 +5,13 @@ if {[file exists work]} {vdel -lib work -all}
vlib work
vcom -explicit -93 "../../misc/utils_pkg.vhd"
vcom -explicit -93 "../../FIFO/src/fifo_ctrl_pkg.vhd"
vcom -explicit -93 "../../rams/dpram_1w1r2c_ra_sim.vhd"
vcom -explicit -93 "../../FIFO/src/gray_counter.vhd"
vcom -explicit -93 "../../FIFO/src/fifo_async_ctrl.vhd"
vcom -explicit -93 "../../FIFO/src/fifo_async.vhd"
vcom -explicit -93 "../../FIFO/src/fifo_sync_ctrl.vhd"
vcom -explicit -93 "../../FIFO/src/fifo_sync.vhd"
vcom -explicit -93 "../src/spi_types.vhd"
vcom -explicit -93 "../src/spi_tx.vhd"
vcom -explicit -93 "../src/spi_rx.vhd"
+17 -6
View File
@@ -3,10 +3,10 @@ quietly WaveActivateNextPane {} 0
add wave -noupdate -format Logic /tb_spi/clk
add wave -noupdate -format Logic /tb_spi/rst
add wave -noupdate -format Logic /tb_spi/tx_cmd_vld
add wave -noupdate -format Logic /tb_spi/tx_cmd_ack
add wave -noupdate -format Logic /tb_spi/tx_cmd_rdy
add wave -noupdate -format Literal -radix hexadecimal /tb_spi/tx_cmd
add wave -noupdate -format Logic /tb_spi/tx_din_vld
add wave -noupdate -format Logic /tb_spi/tx_din_re
add wave -noupdate -format Logic /tb_spi/tx_din_rdy
add wave -noupdate -format Literal -radix hexadecimal /tb_spi/tx_din
add wave -noupdate -format Logic /tb_spi/tx_shift_en
add wave -noupdate -format Logic /tb_spi/tx_mosi
@@ -16,25 +16,36 @@ add wave -noupdate -format Literal /tb_spi/inst_spi_tx/word_width
add wave -noupdate -format Logic /tb_spi/inst_spi_tx/rst
add wave -noupdate -format Logic /tb_spi/inst_spi_tx/clk
add wave -noupdate -format Logic /tb_spi/inst_spi_tx/cmd_vld
add wave -noupdate -format Logic /tb_spi/inst_spi_tx/cmd_ack
add wave -noupdate -format Logic /tb_spi/inst_spi_tx/cmd_rdy
add wave -noupdate -format Literal -radix hexadecimal /tb_spi/inst_spi_tx/cmd
add wave -noupdate -format Logic /tb_spi/inst_spi_tx/din_vld
add wave -noupdate -format Logic /tb_spi/inst_spi_tx/din_re
add wave -noupdate -format Logic /tb_spi/inst_spi_tx/din_rdy
add wave -noupdate -format Literal -radix hexadecimal /tb_spi/inst_spi_tx/din
add wave -noupdate -format Logic /tb_spi/inst_spi_tx/shift_en
add wave -noupdate -format Logic /tb_spi/inst_spi_tx/data_out
add wave -noupdate -format Literal -radix hexadecimal /tb_spi/inst_spi_tx/shift_reg
add wave -noupdate -format Logic /tb_spi/inst_spi_tx/clk_out
add wave -noupdate -format Literal -radix hexadecimal /tb_spi/inst_spi_tx/xfer_count
add wave -noupdate -format Literal -radix hexadecimal /tb_spi/inst_spi_tx/data_count
add wave -noupdate -format Literal -radix hexadecimal /tb_spi/inst_spi_tx/word_count
add wave -noupdate -format Literal -radix hexadecimal /tb_spi/inst_spi_tx/cmd_reg
add wave -noupdate -format Literal /tb_spi/inst_spi_tx/state
add wave -noupdate -format Logic /tb_spi/inst_spi_tx/data_load_en
add wave -noupdate -format Literal /tb_spi/inst_spi_tx/shift_cnt_pipe
add wave -noupdate -format Logic /tb_spi/inst_spi_tx/cmd_reg_we
add wave -noupdate -format Logic /tb_spi/inst_spi_tx/xfer_count_en
add wave -noupdate -format Logic /tb_spi/inst_spi_tx/data_count_en
add wave -noupdate -format Logic /tb_spi/inst_spi_tx/xfer_count_busy
add wave -noupdate -format Logic /tb_spi/inst_spi_tx/data_count_busy
add wave -noupdate -format Logic /tb_spi/inst_spi_tx/spi_clk
add wave -noupdate -format Literal -radix hexadecimal /tb_spi/inst_spi_tx/cat_fifo_din
add wave -noupdate -format Literal -radix hexadecimal /tb_spi/inst_spi_tx/cat_fifo_dout
add wave -noupdate -format Logic /tb_spi/inst_spi_tx/cat_fifo_re
add wave -noupdate -format Logic /tb_spi/inst_spi_tx/cat_fifo_we
add wave -noupdate -format Logic /tb_spi/inst_spi_tx/cat_fifo_full
add wave -noupdate -format Logic /tb_spi/inst_spi_tx/cat_fifo_empty
TreeUpdate [SetDefaultTree]
WaveRestoreCursors {{Cursor 1} {5674147 ps} 0}
WaveRestoreCursors {{Cursor 1} {6254805 ps} 0}
configure wave -namecolwidth 197
configure wave -valuecolwidth 131
configure wave -justifyvalue left
@@ -48,4 +59,4 @@ configure wave -gridperiod 1
configure wave -griddelta 40
configure wave -timeline 0
update
WaveRestoreZoom {0 ps} {21 us}
WaveRestoreZoom {5843806 ps} {8445242 ps}