copyright

This commit is contained in:
Liqing Qin 2024-10-15 16:39:23 +02:00
parent f9f09c6fc9
commit c822429532
22 changed files with 314 additions and 72 deletions

63
FPGA_firmware/.gitignore vendored Normal file
View File

@ -0,0 +1,63 @@
# Ignore everything
*
!debouncer.v
!.gitignore
!README.txt
!clkctrl.qsys
!debouncer.v
!hit20v3.qsf
!m10_rgmii.out.sdc
!m10_rgmii.v
!q_sys.qsys
!udp_generator.v
!udp_generator_hw.tcl
!sensor_algo_qsys
!sensor_algo_qsys/calibration.v
!sensor_algo_qsys/rms.sv
!sensor_algo_qsys/algo_top_cl_cali_rms.v
!sensor_algo_qsys/bkg_subtraction_pipe.v
!sensor_algo_qsys/calibration.v
!sensor_algo_qsys/cluster_locate.sv
!sensor_algo_qsys/data_caled_ram.v
!sensor_algo_qsys/div.v
!sensor_algo_qsys/frame_counter.v
!sensor_algo_qsys/ram4bkg.v
!sensor_algo_qsys/rms.sv
!sensor_algo_qsys/sensor_algo.v
!sensor_algo_qsys/sensor_interface.v
!sensor_algo_qsys/sensor_recon_hw.tcl
!sensor_algo_qsys/serial_rx.v
!sensor_algo_qsys/serial_tx.v
!sensor_algo_qsys/sqrt.v
!sensor_algo_qsys/sqrt_bb.v
!sensor_algo_qsys/sqrt_inst.v
!sensor_algo_qsys/st2mm.v
!sensor_algo_qsys/st2mm_l2s.v
!sensor_algo_qsys/stl2sts.v
!sensor_algo_qsys/sts2stl.v
!sensor_algo_qsys/q_sys
!sensor_algo_qsys/q_sys/synthesis
!sensor_algo_qsys/q_sys/synthesis/altera_avalon_st_splitter.sv
!sensor_algo_qsys/q_sys/synthesis/st_splitter16.v
!sensor_algo_qsys/testbench
!sensor_algo_qsys/testbench/algo_top_cl_cali_rms_tb.v
!sensor_algo_qsys/testbench/algo_top_cl_cali_tb.v
!sensor_algo_qsys/testbench/algo_top_cl_tb.v
!sensor_algo_qsys/testbench/algo_top_tb.v
!sensor_algo_qsys/testbench/bkg_subtraction_pipe_tb.v
!sensor_algo_qsys/testbench/bkg_subtraction_tb.v
!sensor_algo_qsys/testbench/calibration_tb.v
!sensor_algo_qsys/testbench/cluster_locate_tb.v
!sensor_algo_qsys/testbench/sensor_algo_tb.v
!sensor_algo_qsys/testbench/st2mm_tb.v
!sensor_algo_qsys/testbench/stl2sts_tb.v
!sensor_algo_qsys/testbench/sts2stl_tb.v

View File

@ -1,4 +1,5 @@
This firmware is generted from Simple Socket Server Example. This firmware is generted from Simple Socket Server Example.
M.Dziewiecki created sensor_interface.v in 2019, which controls, collects, and sends ADC data to ethernet.
L.Qin created algo_top_cl_cali_rms.v in 2024, which reconstructs the position and sigma from the ADC data.
M.Dziewiecki created sensor_interface.v in 2019, which controls, collects, and sends ADC data to ethernet.
L.Qin created algo_top_cl_cali_rms.v in 2024, which reconstructs the position and sigma from the ADC data.

View File

@ -664,5 +664,5 @@ set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[11] -
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[21] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[21] -to auto_signaltap_0|vcc -section_id auto_signaltap_0
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[25] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[25] -to auto_signaltap_0|vcc -section_id auto_signaltap_0
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[31] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[31] -to auto_signaltap_0|gnd -section_id auto_signaltap_0
set_global_assignment -name SLD_FILE db/stp2_auto_stripped.stp
set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top
set_global_assignment -name SLD_FILE db/stp2_auto_stripped.stp

View File

@ -1,7 +1,17 @@
/* /******************************************************************************
created by M.Dziwiecki in 2019 * Copyright *
modified by Lq.Qin in 2024 for reconstruction signal position and FWHM * Scintillating Fibre Beam Profile Monitor Software by Michal Dziewiecki, *
*/ * Blake Leverington and Liqing Qin is licensed under CC BY 4.0 *
* https://creativecommons.org/licenses/by/4.0/ *
* funded by the Deutsche Forschungsgemeinschaft *
* (DFG, German Research Foundation) Projektnummer 419255448 *
* Project Leader: B.Leverington *
*******************************************************************************
* Create Date - 2019 *
* Author: M.Dziewiecki *
* Module - m10_rgmii.v *
* Edited by L.Qin on Oct 15. 2024 for reconstruction *
******************************************************************************/
module m10_rgmii ( module m10_rgmii (
//Clock and Reset //Clock and Reset

View File

@ -1,3 +1,16 @@
/******************************************************************************
* Copyright *
* Scintillating Fibre Beam Profile Monitor Software by Michal Dziewiecki, *
* Blake Leverington and Liqing Qin is licensed under CC BY 4.0 *
* https://creativecommons.org/licenses/by/4.0/ *
* funded by the Deutsche Forschungsgemeinschaft *
* (DFG, German Research Foundation) Projektnummer 419255448 *
* Project Leader: B.Leverington *
*******************************************************************************
* Create Date - Oct 15th. 2024 *
* Author: L.Qin *
* Module - algo_top_cl_cali_rms.v *
******************************************************************************/
/*Created by Lq.Qin on Oct 15th. 2024*/ /*Created by Lq.Qin on Oct 15th. 2024*/
//module algo_top_cl_cali_rms //module algo_top_cl_cali_rms

View File

@ -1,3 +1,16 @@
/******************************************************************************
* Copyright *
* Scintillating Fibre Beam Profile Monitor Software by Michal Dziewiecki, *
* Blake Leverington and Liqing Qin is licensed under CC BY 4.0 *
* https://creativecommons.org/licenses/by/4.0/ *
* funded by the Deutsche Forschungsgemeinschaft *
* (DFG, German Research Foundation) Projektnummer 419255448 *
* Project Leader: B.Leverington *
*******************************************************************************
* Create Date - Oct 15th. 2024 *
* Author: L.Qin *
* Module - bkg_subtraction_pipe.v *
******************************************************************************/
/*Created by Lq.Qin on Oct 15th. 2024*/ /*Created by Lq.Qin on Oct 15th. 2024*/
//background subtraction module //background subtraction module

View File

@ -1,3 +1,16 @@
/******************************************************************************
* Copyright *
* Scintillating Fibre Beam Profile Monitor Software by Michal Dziewiecki, *
* Blake Leverington and Liqing Qin is licensed under CC BY 4.0 *
* https://creativecommons.org/licenses/by/4.0/ *
* funded by the Deutsche Forschungsgemeinschaft *
* (DFG, German Research Foundation) Projektnummer 419255448 *
* Project Leader: B.Leverington *
*******************************************************************************
* Create Date - Oct 15th. 2024 *
* Author: L.Qin *
* Module - calibration.v *
******************************************************************************/
/*Created by Lq.Qin on Oct 15th. 2024*/ /*Created by Lq.Qin on Oct 15th. 2024*/
//module calibration has two functions: calibration and merge 16-bit stream to 32-bit stream and then output //module calibration has two functions: calibration and merge 16-bit stream to 32-bit stream and then output

View File

@ -1,3 +1,16 @@
/******************************************************************************
* Copyright *
* Scintillating Fibre Beam Profile Monitor Software by Michal Dziewiecki, *
* Blake Leverington and Liqing Qin is licensed under CC BY 4.0 *
* https://creativecommons.org/licenses/by/4.0/ *
* funded by the Deutsche Forschungsgemeinschaft *
* (DFG, German Research Foundation) Projektnummer 419255448 *
* Project Leader: B.Leverington *
*******************************************************************************
* Create Date - Oct 15th. 2024 *
* Author: L.Qin *
* Module - cluster_locate.sv *
******************************************************************************/
/* /*
Created by Lq.Qin on Oct 15th. 2024 Created by Lq.Qin on Oct 15th. 2024
CLUSTER LOCATE: CLUSTER LOCATE:

View File

@ -1,8 +1,19 @@
/******************************************************************************
* Copyright *
* Scintillating Fibre Beam Profile Monitor Software by Michal Dziewiecki, *
* Blake Leverington and Liqing Qin is licensed under CC BY 4.0 *
* https://creativecommons.org/licenses/by/4.0/ *
* funded by the Deutsche Forschungsgemeinschaft *
* (DFG, German Research Foundation) Projektnummer 419255448 *
* Project Leader: B.Leverington *
*******************************************************************************
* Create Date - Oct 15th. 2024 *
* Author: L.Qin *
* Module - rms.sv *
******************************************************************************/
//the module for rms //the module for rms
/* /*
Created by Lq.Qin on Oct 15th. 2024
if there is cluster: if there is cluster:
go through the data three times: go through the data three times:
first time, calc Xmean; first time, calc Xmean;

View File

@ -1,4 +1,16 @@
/******************************************************************************
* Copyright *
* Scintillating Fibre Beam Profile Monitor Software by Michal Dziewiecki, *
* Blake Leverington and Liqing Qin is licensed under CC BY 4.0 *
* https://creativecommons.org/licenses/by/4.0/ *
* funded by the Deutsche Forschungsgemeinschaft *
* (DFG, German Research Foundation) Projektnummer 419255448 *
* Project Leader: B.Leverington *
*******************************************************************************
* Create Date - Oct 15th. 2024 *
* Author: L.Qin *
* Module - sensor_algo.v *
******************************************************************************/
/*Created by Lq.Qin on Oct 15th. 2024*/ /*Created by Lq.Qin on Oct 15th. 2024*/
//module sensor_algo //module sensor_algo
//combine sensor_interface bkg_subtraction, cluster_locate, and calibration, and rms //combine sensor_interface bkg_subtraction, cluster_locate, and calibration, and rms

View File

@ -1,7 +1,17 @@
// sensor_interface.v /******************************************************************************
/*Created by M.Dziewiecki in 2019 * Copyright *
Modified by Lq.Qin on Oct 15th. 2024*/ * Scintillating Fibre Beam Profile Monitor Software by Michal Dziewiecki, *
* Blake Leverington and Liqing Qin is licensed under CC BY 4.0 *
* https://creativecommons.org/licenses/by/4.0/ *
* funded by the Deutsche Forschungsgemeinschaft *
* (DFG, German Research Foundation) Projektnummer 419255448 *
* Project Leader: B.Leverington *
*******************************************************************************
* Create Date - 2019 *
* Author: M.Dziewiecki *
* Module - sensor_interface.v *
* Edited by L.Qin on Oct 15. 2024 *
******************************************************************************/
`timescale 1 ps / 1 ps `timescale 1 ps / 1 ps

View File

@ -1,3 +1,16 @@
/******************************************************************************
* Copyright *
* Scintillating Fibre Beam Profile Monitor Software by Michal Dziewiecki, *
* Blake Leverington and Liqing Qin is licensed under CC BY 4.0 *
* https://creativecommons.org/licenses/by/4.0/ *
* funded by the Deutsche Forschungsgemeinschaft *
* (DFG, German Research Foundation) Projektnummer 419255448 *
* Project Leader: B.Leverington *
*******************************************************************************
* Create Date - Oct 15th. 2024 *
* Author: L.Qin *
* Module - stl2sts.v *
******************************************************************************/
/* /*
Created by Lq.Qin on Oct 15th. 2024 Created by Lq.Qin on Oct 15th. 2024
*/ */

View File

@ -1,9 +1,16 @@
/* /******************************************************************************
* control.h * Copyright *
* * Scintillating Fibre Beam Profile Monitor Software by Michal Dziewiecki, *
* Created on: Aug 14, 2017 * Blake Leverington and Liqing Qin is licensed under CC BY 4.0 *
* Author: mdziewiecki * https://creativecommons.org/licenses/by/4.0/ *
*/ * funded by the Deutsche Forschungsgemeinschaft *
* (DFG, German Research Foundation) Projektnummer 419255448 *
* Project Leader: B.Leverington *
*******************************************************************************
* Create Date - Aug 14, 2017 *
* Author: M.Dziewiecki *
* Module - control.h *
******************************************************************************/
#ifndef CONTROL_H_ #ifndef CONTROL_H_
#define CONTROL_H_ #define CONTROL_H_

View File

@ -1,4 +1,17 @@
/* Modified on : Oct 15, 2024 by Lq.Qin*/ /******************************************************************************
* Copyright *
* Scintillating Fibre Beam Profile Monitor Software by Michal Dziewiecki, *
* Blake Leverington and Liqing Qin is licensed under CC BY 4.0 *
* https://creativecommons.org/licenses/by/4.0/ *
* funded by the Deutsche Forschungsgemeinschaft *
* (DFG, German Research Foundation) Projektnummer 419255448 *
* Project Leader: B.Leverington *
*******************************************************************************
* Create Date - Aug 14, 2017 *
* Author: M.Dziewiecki *
* Module - dev_commands.h *
* Edited by L.Qin on Oct 15. 2024 *
******************************************************************************/
#ifndef DEV_COMMANDS_H #ifndef DEV_COMMANDS_H
#define DEV_COMMANDS_H #define DEV_COMMANDS_H

View File

@ -1,10 +1,18 @@
/* /******************************************************************************
* sensor.h * Copyright *
* * Scintillating Fibre Beam Profile Monitor Software by Michal Dziewiecki, *
* Created on: Aug 19, 2019 * Blake Leverington and Liqing Qin is licensed under CC BY 4.0 *
* Author: mdziewiecki * https://creativecommons.org/licenses/by/4.0/ *
* Modified on : Oct 15, 2024 by Lq.Qin * funded by the Deutsche Forschungsgemeinschaft *
*/ * (DFG, German Research Foundation) Projektnummer 419255448 *
* Project Leader: B.Leverington *
*******************************************************************************
* Create Date - Aug 19, 2019 *
* Author: M.Dziewiecki *
* Module - sensor.h *
* Edited by L.Qin on Oct 15. 2024 *
******************************************************************************/
#ifndef SENSOR_H_ #ifndef SENSOR_H_
#define SENSOR_H_ #define SENSOR_H_

View File

@ -5,7 +5,7 @@
******************************************************************************* * ******************************************************************************* *
* Date - October 24, 2006 * * Date - October 24, 2006 *
* Module - simple_socket_server.h * * Module - simple_socket_server.h *
* EXTENSIVELY REWRITTEN by M.D. 2019 * * * EXTENSIVELY REWRITTEN by M.Dziewiecki 2019 * *
******************************************************************************/ ******************************************************************************/
/* /*

View File

@ -1,9 +1,16 @@
/* /******************************************************************************
* udpgen.h * Copyright *
* * Scintillating Fibre Beam Profile Monitor Software by Michal Dziewiecki, *
* Created on: Aug 7, 2019 * Blake Leverington and Liqing Qin is licensed under CC BY 4.0 *
* Author: mdziewiecki * https://creativecommons.org/licenses/by/4.0/ *
*/ * funded by the Deutsche Forschungsgemeinschaft *
* (DFG, German Research Foundation) Projektnummer 419255448 *
* Project Leader: B.Leverington *
*******************************************************************************
* Create Date - Aug 7, 2019 *
* Author: M.Dziewiecki *
* Module - udpgen.h *
******************************************************************************/
#ifndef UDPGEN_H_ #ifndef UDPGEN_H_
#define UDPGEN_H_ #define UDPGEN_H_

View File

@ -1,11 +1,18 @@
/* /******************************************************************************
* utils.h * Copyright *
* * Scintillating Fibre Beam Profile Monitor Software by Michal Dziewiecki, *
* Created on: Jul 31, 2019 * Blake Leverington and Liqing Qin is licensed under CC BY 4.0 *
* Author: mdziewiecki * https://creativecommons.org/licenses/by/4.0/ *
* Various utils for various purposes * funded by the Deutsche Forschungsgemeinschaft *
* Mainly wrappers on hardware * (DFG, German Research Foundation) Projektnummer 419255448 *
*/ * Project Leader: B.Leverington *
*******************************************************************************
* Create Date - Jul 31, 2019 *
* Author: M.Dziewiecki *
* Module - utils.h *
******************************************************************************/
//Various utils for various purposes
//Mainly wrappers on hardware

View File

@ -1,11 +1,17 @@
/* /******************************************************************************
* control.c * Copyright *
* * Scintillating Fibre Beam Profile Monitor Software by Michal Dziewiecki, *
* Created on: Aug 14, 2017 * Blake Leverington and Liqing Qin is licensed under CC BY 4.0 *
* Author: mdziewiecki * https://creativecommons.org/licenses/by/4.0/ *
* Modified on : Oct 15, 2024 by Lq.Qin * funded by the Deutsche Forschungsgemeinschaft *
* * (DFG, German Research Foundation) Projektnummer 419255448 *
*/ * Project Leader: B.Leverington *
*******************************************************************************
* Create Date - Aug 14, 2017 *
* Author: M.Dziewiecki *
* Module - control.c *
* Edited by L.Qin on Oct 15. 2024 *
******************************************************************************/
#include <stdio.h> #include <stdio.h>

View File

@ -1,11 +1,18 @@
/* /******************************************************************************
* sensor.c * Copyright *
* * Scintillating Fibre Beam Profile Monitor Software by Michal Dziewiecki, *
* Created on: Aug 19, 2019 * Blake Leverington and Liqing Qin is licensed under CC BY 4.0 *
* Author: mdziewiecki * https://creativecommons.org/licenses/by/4.0/ *
* Modified on : Oct 15, 2024 by Lq.Qin * funded by the Deutsche Forschungsgemeinschaft *
* * (DFG, German Research Foundation) Projektnummer 419255448 *
*/ * Project Leader: B.Leverington *
*******************************************************************************
* Create Date - Aug 19, 2019 *
* Author: M.Dziewiecki *
* Module - sensor.c *
* Edited by L.Qin on Oct 15. 2024 *
******************************************************************************/
#include <stdio.h> #include <stdio.h>
#include "includes.h" #include "includes.h"

View File

@ -1,9 +1,17 @@
/* /******************************************************************************
* udpgen.c * Copyright *
* * Scintillating Fibre Beam Profile Monitor Software by Michal Dziewiecki, *
* Created on: Aug 7, 2019 * Blake Leverington and Liqing Qin is licensed under CC BY 4.0 *
* Author: mdziewiecki * https://creativecommons.org/licenses/by/4.0/ *
*/ * funded by the Deutsche Forschungsgemeinschaft *
* (DFG, German Research Foundation) Projektnummer 419255448 *
* Project Leader: B.Leverington *
*******************************************************************************
* Create Date - Aug 19, 2019 *
* Author: M.Dziewiecki *
* Module - udpgen.c *
******************************************************************************/
#include <stdio.h> #include <stdio.h>
#include "includes.h" #include "includes.h"

View File

@ -1,9 +1,16 @@
/* /******************************************************************************
* utils.c * Copyright *
* * Scintillating Fibre Beam Profile Monitor Software by Michal Dziewiecki, *
* Created on: Jul 31, 2019 * Blake Leverington and Liqing Qin is licensed under CC BY 4.0 *
* Author: mdziewiecki * https://creativecommons.org/licenses/by/4.0/ *
*/ * funded by the Deutsche Forschungsgemeinschaft *
* (DFG, German Research Foundation) Projektnummer 419255448 *
* Project Leader: B.Leverington *
*******************************************************************************
* Create Date - Jul 31, 2019 *
* Author: M.Dziewiecki *
* Module - utils.c *
******************************************************************************/
#include <stdio.h> #include <stdio.h>