Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
30
Issues
30
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit core collection
Commits
9401beec
Commit
9401beec
authored
Oct 28, 2011
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr_core_v2: testbench
parent
4d6c5748
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
88 additions
and
15 deletions
+88
-15
minic.c
testbench/wrc_core/main_tb/sw/minic.c
+1
-1
uart.c
testbench/wrc_core/main_tb/sw/uart.c
+2
-2
wave.do
testbench/wrc_core/main_tb/wave.do
+85
-12
No files found.
testbench/wrc_core/main_tb/sw/minic.c
View file @
9401beec
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
#include "endpoint_regs.h"
#include "endpoint_regs.h"
#define BASE_MINIC 0x10000
#define BASE_MINIC 0x10000
#define BASE_EP 0x
200
00
#define BASE_EP 0x
101
00
#define MINIC_DMA_TX_BUF_SIZE 1024
#define MINIC_DMA_TX_BUF_SIZE 1024
...
...
testbench/wrc_core/main_tb/sw/uart.c
View file @
9401beec
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
#define CPU_CLOCK 1000000
#define CPU_CLOCK 1000000
#define UART_BAUDRATE 10000
#define UART_BAUDRATE 10000
#define BASE_UART 0x
608
00
#define BASE_UART 0x
105
00
#include "wb_uart.h"
#include "wb_uart.h"
...
@@ -33,4 +33,4 @@ int uart_poll()
...
@@ -33,4 +33,4 @@ int uart_poll()
int
uart_read_byte
()
int
uart_read_byte
()
{
{
return
uart
->
RDR
&
0xff
;
return
uart
->
RDR
&
0xff
;
}
}
\ No newline at end of file
testbench/wrc_core/main_tb/wave.do
View file @
9401beec
onerror {resume}
onerror {resume}
quietly WaveActivateNextPane {} 0
quietly WaveActivateNextPane {} 0
add wave -noupdate /main/DUT/U_Endpoint/g_interface_mode
add wave -noupdate /main/DUT/PERIPH/rst_n_i
add wave -noupdate /main/DUT/U_Endpoint/g_address_granularity
add wave -noupdate /main/DUT/PERIPH/rst_ext_n_i
add wave -noupdate /main/DUT/U_Endpoint/g_simulation
add wave -noupdate /main/DUT/rst_net_n
add wave -noupdate /main/DUT/U_Endpoint/g_pcs_16bit
add wave -noupdate /main/DUT/rst_wrc_n
add wave -noupdate /main/DUT/U_Endpoint/g_rx_buffer_size
#add wave -noupdate /main/DUT/PERIPH/sysc_regs_o.rstr_hrst_wr_o #add wave -noupdate /main/DUT/PERIPH/sysc_regs_o.rstr_hrst_o
add wave -noupdate /main/DUT/U_Endpoint/g_with_rx_buffer
#add wave -noupdate /main/DUT/PERIPH/sysc_regs_o.gpsr_net_rst_o
add wave -noupdate /main/DUT/U_Endpoint/g_with_flow_control
#add wave -noupdate /main/DUT/PERIPH/slave_i(0).adr
add wave -noupdate /main/DUT/U_Endpoint/g_with_timestamper
#add wave -noupdate /main/DUT/PERIPH/slave_i(0).dat
add wave -noupdate /main/DUT/U_Endpoint/g_with_dpi_classifier
#add wave -noupdate /main/DUT/PERIPH/slave_i(0).cyc
add wave -noupdate /main/DUT/U_Endpoint/g_with_vlans
#add wave -noupdate /main/DUT/PERIPH/slave_i(0).stb
add wave -noupdate /main/DUT/U_Endpoint/g_with_rtu
#add wave -noupdate /main/DUT/PERIPH/slave_o(0).dat
add wave -noupdate /main/DUT/U_Endpoint/g_with_leds
#add wave -noupdate /main/DUT/PERIPH/slave_o(0).ack
add wave -noupdate /main/DUT/PERIPH/SYSCON/wr_int
add wave -noupdate /main/DUT/PERIPH/sysc_regs_o
add wave -noupdate /main/DUT/PERIPH/sysc_regs_i
add wave -divider LM32
add wave -noupdate /main/DUT/rst_wrc_n
add wave -noupdate /main/DUT/cbar_slave_i(1).cyc
add wave -noupdate /main/DUT/cbar_slave_i(1).stb
add wave -noupdate /main/DUT/cbar_slave_i(1).we
add wave -noupdate /main/DUT/cbar_slave_i(1).adr
add wave -noupdate /main/DUT/cbar_slave_o(1).dat
add wave -noupdate /main/DUT/cbar_slave_o(1).ack
add wave -noupdate /main/DUT/cbar_slave_i(0).cyc
add wave -noupdate /main/DUT/cbar_slave_i(0).stb
add wave -noupdate /main/DUT/cbar_slave_i(0).we
add wave -noupdate /main/DUT/cbar_slave_i(0).adr
add wave -noupdate /main/DUT/cbar_slave_i(0).dat
add wave -noupdate /main/DUT/cbar_slave_o(0).dat
add wave -noupdate /main/DUT/cbar_slave_o(0).ack
add wave -noupdate /main/DUT/lm32_irq_slv
add wave -divider PERIPH
add wave -noupdate /main/DUT/cbar_master_o(1).cyc
add wave -noupdate /main/DUT/cbar_master_o(1).stb
add wave -noupdate /main/DUT/cbar_master_o(1).we
add wave -noupdate /main/DUT/PERIPH/UART/U_Wrapped_UART/wb_cyc_i
add wave -noupdate /main/DUT/PERIPH/UART/U_Wrapped_UART/wb_stb_i
add wave -noupdate /main/DUT/PERIPH/UART/U_Wrapped_UART/wb_we_i
add wave -noupdate /main/DUT/PERIPH/UART/U_Wrapped_UART/wb_ack_o
add wave -noupdate /main/DUT/PERIPH/UART/U_Wrapped_UART/wb_stall_o
add wave -noupdate /main/DUT/PERIPH/UART/U_Wrapped_UART/wb_adr_i
add wave -noupdate /main/DUT/PERIPH/UART/U_Wrapped_UART/wb_dat_i
add wave -noupdate /main/DUT/PERIPH/UART/U_Wrapped_UART/wb_dat_o
add wave -noupdate /main/DUT/uart_rxd_i
add wave -noupdate /main/DUT/uart_txd_o
add wave -noupdate /main/DUT/periph/uart/u_wrapped_uart/u_wb_slave/regs_i.sr_tx_busy_i
add wave -divider MINIC
add wave -noupdate /main/DUT/minic_wb_in
add wave -noupdate /main/DUT/minic_wb_out
add wave -noupdate /main/DUT/MINI_NIC/wb_i
add wave -noupdate /main/DUT/MINI_NIC/wb_o
add wave -noupdate /main/DUT/MINI_NIC/U_Wrapped_Minic/ntx_state
add wave -noupdate /main/DUT/MINI_NIC/U_Wrapped_Minic/nrx_state
add wave -noupdate /main/DUT/MINI_NIC/U_Wrapped_Minic/regs_out.mcr_tx_start_o
add wave -noupdate /main/DUT/MINI_NIC/U_Wrapped_Minic/regs_out.mcr_rx_en_o
add wave -noupdate /main/DUT/MINI_NIC/U_Wrapped_Minic/regs_out.mcr_rx_class_o
add wave -noupdate /main/DUT/MINI_NIC/U_Wrapped_Minic/regs_out.tx_addr_o
add wave -noupdate /main/DUT/xwr_mini_nic_1/U_Wrapped_Minic/regs_out.tx_addr_load_o
add wave -noupdate /main/DUT/mnic_mem_addr_o
add wave -noupdate /main/DUT/mnic_mem_wr_o
add wave -noupdate /main/DUT/mnic_mem_data_o
add wave -noupdate /main/DUT/mnic_mem_data_i
add wave -noupdate /main/DUT/dpram_wbb_i
add wave -noupdate /main/DUT/dpram_wbb_o
add wave -divider ENDPOINT
add wave -noupdate /main/DUT/U_Endpoint/rst_n_i
#add wave -noupdate /main/DUT/U_Endpoint/g_interface_mode
#add wave -noupdate /main/DUT/U_Endpoint/g_address_granularity
#add wave -noupdate /main/DUT/U_Endpoint/g_simulation
#add wave -noupdate /main/DUT/U_Endpoint/g_pcs_16bit
#add wave -noupdate /main/DUT/U_Endpoint/g_rx_buffer_size
#add wave -noupdate /main/DUT/U_Endpoint/g_with_rx_buffer
#add wave -noupdate /main/DUT/U_Endpoint/g_with_flow_control
#add wave -noupdate /main/DUT/U_Endpoint/g_with_timestamper
#add wave -noupdate /main/DUT/U_Endpoint/g_with_dpi_classifier
#add wave -noupdate /main/DUT/U_Endpoint/g_with_vlans
#add wave -noupdate /main/DUT/U_Endpoint/g_with_rtu
#add wave -noupdate /main/DUT/U_Endpoint/g_with_leds
add wave -noupdate /main/DUT/U_Endpoint/clk_ref_i
add wave -noupdate /main/DUT/U_Endpoint/clk_ref_i
add wave -noupdate /main/DUT/U_Endpoint/clk_sys_i
add wave -noupdate /main/DUT/U_Endpoint/clk_sys_i
add wave -noupdate /main/DUT/U_Endpoint/rst_n_i
add wave -noupdate /main/DUT/U_Endpoint/rst_n_i
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment