mirror of
https://github.com/EEVengers/ThunderScope.git
synced 2025-04-08 06:25:30 +00:00
Added s2mm_halt_cmplt signal to datamover reg
This commit is contained in:
parent
4796d819dd
commit
df83a7d854
Firmware/XDMA
@ -946,6 +946,7 @@ proc create_hier_cell_Datamover { parentCell nameHier } {
|
||||
create_bd_pin -dir O s2mm_err
|
||||
create_bd_pin -dir I s2mm_halt
|
||||
create_bd_pin -dir O s2mm_wr_xfer_cmplt
|
||||
create_bd_pin -dir O s2mm_halt_cmplt
|
||||
|
||||
# Create instance: axi_datamover_0, and set properties
|
||||
set axi_datamover_0 [ create_bd_cell -type ip -vlnv xilinx.com:ip:axi_datamover:5.1 axi_datamover_0 ]
|
||||
@ -972,6 +973,7 @@ proc create_hier_cell_Datamover { parentCell nameHier } {
|
||||
connect_bd_net -net axi_aclk_1 [get_bd_pins axi_aclk] [get_bd_pins axi_datamover_0/m_axi_s2mm_aclk] [get_bd_pins axi_datamover_0/m_axis_s2mm_cmdsts_awclk]
|
||||
connect_bd_net -net axi_aresetn_1 [get_bd_pins axi_aresetn] [get_bd_pins axi_datamover_0/m_axi_s2mm_aresetn] [get_bd_pins axi_datamover_0/m_axis_s2mm_cmdsts_aresetn]
|
||||
connect_bd_net -net axi_datamover_0_s2mm_err [get_bd_pins axi_datamover_0/s2mm_err] [get_bd_pins s2mm_err]
|
||||
connect_bd_net -net axi_datamover_0_s2mm_halt_cmplt [get_bd_pins axi_datamover_0/s2mm_halt_cmplt] [get_bd_pins s2mm_halt_cmplt]
|
||||
connect_bd_net -net axi_datamover_0_s2mm_wr_xfer_cmplt [get_bd_pins axi_datamover_0/s2mm_wr_xfer_cmplt] [get_bd_pins s2mm_wr_xfer_cmplt]
|
||||
connect_bd_net -net s2mm_halt_0_1 [get_bd_pins s2mm_halt] [get_bd_pins axi_datamover_0/s2mm_halt]
|
||||
connect_bd_net -net xlconstant_0_dout [get_bd_pins xlconstant_0/dout] [get_bd_pins axi_datamover_0/s2mm_allow_addr_req]
|
||||
@ -1510,6 +1512,7 @@ proc create_root_design { parentCell } {
|
||||
set s2mm_wr_xfer_cmplt [ create_bd_port -dir O s2mm_wr_xfer_cmplt ]
|
||||
set ss_o_0 [ create_bd_port -dir O -from 0 -to 0 ss_o_0 ]
|
||||
set gpio2_io_o_0 [ create_bd_port -dir O -from 31 -to 0 gpio2_io_o_0 ]
|
||||
set s2mm_halt_cmplt [ create_bd_port -dir O s2mm_halt_cmplt ]
|
||||
|
||||
# Create instance: AXI_LITE_IO
|
||||
create_hier_cell_AXI_LITE_IO [current_bd_instance .] AXI_LITE_IO
|
||||
@ -1542,6 +1545,7 @@ proc create_root_design { parentCell } {
|
||||
connect_bd_net -net AXI_LITE_IO_ss_o_0 [get_bd_pins AXI_LITE_IO/ss_o_0] [get_bd_ports ss_o_0]
|
||||
connect_bd_net -net AXI_LITE_IO_temp_out_0 [get_bd_pins AXI_LITE_IO/temp_out_0] [get_bd_pins Memory/device_temp_i]
|
||||
connect_bd_net -net Datamover_s2mm_err_0 [get_bd_pins Datamover/s2mm_err] [get_bd_ports s2mm_err]
|
||||
connect_bd_net -net Datamover_s2mm_halt_cmplt_0 [get_bd_pins Datamover/s2mm_halt_cmplt] [get_bd_ports s2mm_halt_cmplt]
|
||||
connect_bd_net -net Datamover_s2mm_wr_xfer_cmplt_0 [get_bd_pins Datamover/s2mm_wr_xfer_cmplt] [get_bd_ports s2mm_wr_xfer_cmplt]
|
||||
connect_bd_net -net Memory_init_calib_complete_0 [get_bd_pins Memory/init_calib_complete_0] [get_bd_ports init_calib_complete_0]
|
||||
connect_bd_net -net PCIe_axi_aresetn [get_bd_pins PCIe/axi_aresetn] [get_bd_ports axi_aresetn] [get_bd_pins AXI_LITE_IO/axi_resetn] [get_bd_pins Memory/S00_ARESETN]
|
||||
|
@ -80,6 +80,7 @@ module dso_top
|
||||
|
||||
wire s2mm_err;
|
||||
wire s2mm_halt;
|
||||
wire s2mm_halt_cmplt;
|
||||
wire s2mm_wr_xfer_cmplt;
|
||||
|
||||
wire fe_sda_buf;
|
||||
@ -245,6 +246,7 @@ module dso_top
|
||||
.adc_divclk(divclk),
|
||||
.s2mm_err(s2mm_err),
|
||||
.s2mm_halt(s2mm_halt),
|
||||
.s2mm_halt_cmplt(s2mm_halt_cmplt),
|
||||
.s2mm_wr_xfer_cmplt(s2mm_wr_xfer_cmplt),
|
||||
.gpio_io_o_0(gpio_io_o_0),
|
||||
.gpio2_io_i(gpio2_io_i),
|
||||
@ -311,6 +313,7 @@ module dso_top
|
||||
.pcie_perstn(pcie_perstn),
|
||||
.s2mm_err(s2mm_err),
|
||||
.s2mm_halt(s2mm_halt),
|
||||
.s2mm_halt_cmplt(s2mm_halt_cmplt),
|
||||
.s2mm_wr_xfer_cmplt(s2mm_wr_xfer_cmplt),
|
||||
.Vp_Vn_0_v_n(Vp_Vn_0_v_n),
|
||||
.Vp_Vn_0_v_p(Vp_Vn_0_v_p),
|
||||
|
@ -15,6 +15,7 @@ module adc_to_datamover(
|
||||
input adc_divclk,
|
||||
input s2mm_err,
|
||||
output s2mm_halt,
|
||||
input s2mm_halt_cmplt,
|
||||
input s2mm_wr_xfer_cmplt,
|
||||
input[31:0] gpio_io_o_0,
|
||||
output[31:0] gpio2_io_i,
|
||||
@ -96,7 +97,7 @@ module adc_to_datamover(
|
||||
fifo_full_cdc <= { fifo_full_cdc[1:0], fifo_full};
|
||||
assign fifo_full_aclk = fifo_full_cdc[2];
|
||||
|
||||
reg [11:0] fifo_full_counter;
|
||||
reg [10:0] fifo_full_counter;
|
||||
always @(posedge axi_aclk) begin
|
||||
if (!S01_ARESETN) begin
|
||||
fifo_full_counter <= 0;
|
||||
@ -128,7 +129,7 @@ module adc_to_datamover(
|
||||
end
|
||||
|
||||
//Status GPIOs
|
||||
assign gpio2_io_i = {s2mm_err,fifo_full_aclk,fifo_full_counter,wraparound_overflow,wraparound,transfer_counter};
|
||||
assign gpio2_io_i = {s2mm_err,fifo_full_aclk,s2mm_halt_cmplt,fifo_full_counter,wraparound_overflow,wraparound,transfer_counter};
|
||||
assign S01_ARESETN = (axi_aresetn & gpio_io_o_0[1]);
|
||||
assign s2mm_halt = ~gpio_io_o_0[0];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user