axi_adc_trigger: added triggered flag
parent
ca12938873
commit
9d572b406b
|
@ -6,6 +6,7 @@ source $ad_hdl_dir/library/scripts/adi_ip.tcl
|
||||||
adi_ip_create axi_adc_trigger
|
adi_ip_create axi_adc_trigger
|
||||||
adi_ip_files axi_adc_trigger [list \
|
adi_ip_files axi_adc_trigger [list \
|
||||||
"$ad_hdl_dir/library/common/up_xfer_cntrl.v" \
|
"$ad_hdl_dir/library/common/up_xfer_cntrl.v" \
|
||||||
|
"$ad_hdl_dir/library/common/up_xfer_status.v" \
|
||||||
"$ad_hdl_dir/library/common/up_axi.v" \
|
"$ad_hdl_dir/library/common/up_axi.v" \
|
||||||
"axi_adc_trigger_constr.xdc" \
|
"axi_adc_trigger_constr.xdc" \
|
||||||
"axi_adc_trigger_reg.v" \
|
"axi_adc_trigger_reg.v" \
|
||||||
|
|
|
@ -79,6 +79,7 @@ module axi_adc_trigger_reg (
|
||||||
// internal signals
|
// internal signals
|
||||||
|
|
||||||
wire [ 9:0] config_trigger;
|
wire [ 9:0] config_trigger;
|
||||||
|
wire adc_triggered;
|
||||||
|
|
||||||
// internal registers
|
// internal registers
|
||||||
|
|
||||||
|
@ -167,11 +168,11 @@ module axi_adc_trigger_reg (
|
||||||
if ((up_wreq == 1'b1) && (up_waddr[4:0] == 5'he)) begin
|
if ((up_wreq == 1'b1) && (up_waddr[4:0] == 5'he)) begin
|
||||||
up_fifo_depth <= up_wdata;
|
up_fifo_depth <= up_wdata;
|
||||||
end
|
end
|
||||||
// if (triggered == 1'b1) begin
|
if (adc_triggered == 1'b1) begin
|
||||||
// up_triggered <= 1'b1;
|
up_triggered <= 1'b1;
|
||||||
// end else if ((up_wreq == 1'b1) && (up_waddr[4:0] == 5'hf)) begin
|
end else if ((up_wreq == 1'b1) && (up_waddr[4:0] == 5'hf)) begin
|
||||||
// up_triggered <= up_wdata[0];
|
up_triggered <= up_wdata[0];
|
||||||
// end
|
end
|
||||||
if ((up_wreq == 1'b1) && (up_waddr[4:0] == 5'h10)) begin
|
if ((up_wreq == 1'b1) && (up_waddr[4:0] == 5'h10)) begin
|
||||||
up_trigger_delay <= up_wdata;
|
up_trigger_delay <= up_wdata;
|
||||||
end
|
end
|
||||||
|
@ -245,6 +246,20 @@ module axi_adc_trigger_reg (
|
||||||
fifo_depth, // 32
|
fifo_depth, // 32
|
||||||
trigger_delay})); // 32
|
trigger_delay})); // 32
|
||||||
|
|
||||||
|
up_xfer_status #(.DATA_WIDTH(1)) i_xfer_status (
|
||||||
|
|
||||||
|
// up interface
|
||||||
|
|
||||||
|
.up_rstn(up_rstn),
|
||||||
|
.up_clk(up_clk),
|
||||||
|
.up_data_status(adc_triggered),
|
||||||
|
|
||||||
|
// device interface
|
||||||
|
|
||||||
|
.d_rst(1'd0),
|
||||||
|
.d_clk(clk),
|
||||||
|
.d_data_status(triggered));
|
||||||
|
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
|
|
Loading…
Reference in New Issue