copyright
This commit is contained in:
parent
f9f09c6fc9
commit
c822429532
63
FPGA_firmware/.gitignore
vendored
Normal file
63
FPGA_firmware/.gitignore
vendored
Normal 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
|
||||
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
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.
|
||||
|
@ -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[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_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
|
@ -1,7 +1,17 @@
|
||||
/*
|
||||
created by M.Dziwiecki in 2019
|
||||
modified by Lq.Qin in 2024 for reconstruction signal position and FWHM
|
||||
*/
|
||||
/******************************************************************************
|
||||
* 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 - 2019 *
|
||||
* Author: M.Dziewiecki *
|
||||
* Module - m10_rgmii.v *
|
||||
* Edited by L.Qin on Oct 15. 2024 for reconstruction *
|
||||
******************************************************************************/
|
||||
|
||||
module m10_rgmii (
|
||||
//Clock and Reset
|
||||
|
@ -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*/
|
||||
|
||||
//module algo_top_cl_cali_rms
|
||||
|
@ -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*/
|
||||
|
||||
//background subtraction module
|
||||
|
@ -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*/
|
||||
|
||||
//module calibration has two functions: calibration and merge 16-bit stream to 32-bit stream and then output
|
||||
|
@ -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
|
||||
CLUSTER LOCATE:
|
||||
|
@ -1,7 +1,18 @@
|
||||
/******************************************************************************
|
||||
* 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
|
||||
/*
|
||||
|
||||
Created by Lq.Qin on Oct 15th. 2024
|
||||
|
||||
if there is cluster:
|
||||
go through the data three times:
|
||||
|
@ -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*/
|
||||
//module sensor_algo
|
||||
//combine sensor_interface bkg_subtraction, cluster_locate, and calibration, and rms
|
||||
|
@ -1,7 +1,17 @@
|
||||
// sensor_interface.v
|
||||
/*Created by M.Dziewiecki in 2019
|
||||
Modified by Lq.Qin on Oct 15th. 2024*/
|
||||
|
||||
/******************************************************************************
|
||||
* 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 - 2019 *
|
||||
* Author: M.Dziewiecki *
|
||||
* Module - sensor_interface.v *
|
||||
* Edited by L.Qin on Oct 15. 2024 *
|
||||
******************************************************************************/
|
||||
|
||||
|
||||
`timescale 1 ps / 1 ps
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -1,9 +1,16 @@
|
||||
/*
|
||||
* control.h
|
||||
*
|
||||
* Created on: Aug 14, 2017
|
||||
* Author: mdziewiecki
|
||||
*/
|
||||
/******************************************************************************
|
||||
* 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 - control.h *
|
||||
******************************************************************************/
|
||||
|
||||
#ifndef CONTROL_H_
|
||||
#define CONTROL_H_
|
||||
|
@ -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
|
||||
#define DEV_COMMANDS_H
|
||||
|
@ -1,10 +1,18 @@
|
||||
/*
|
||||
* sensor.h
|
||||
*
|
||||
* Created on: Aug 19, 2019
|
||||
* Author: mdziewiecki
|
||||
* 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 19, 2019 *
|
||||
* Author: M.Dziewiecki *
|
||||
* Module - sensor.h *
|
||||
* Edited by L.Qin on Oct 15. 2024 *
|
||||
******************************************************************************/
|
||||
|
||||
|
||||
#ifndef SENSOR_H_
|
||||
#define SENSOR_H_
|
||||
|
@ -5,7 +5,7 @@
|
||||
******************************************************************************* *
|
||||
* Date - October 24, 2006 *
|
||||
* Module - simple_socket_server.h *
|
||||
* EXTENSIVELY REWRITTEN by M.D. 2019 * *
|
||||
* EXTENSIVELY REWRITTEN by M.Dziewiecki 2019 * *
|
||||
******************************************************************************/
|
||||
|
||||
/*
|
||||
|
@ -1,9 +1,16 @@
|
||||
/*
|
||||
* udpgen.h
|
||||
*
|
||||
* Created on: Aug 7, 2019
|
||||
* Author: mdziewiecki
|
||||
*/
|
||||
/******************************************************************************
|
||||
* 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 7, 2019 *
|
||||
* Author: M.Dziewiecki *
|
||||
* Module - udpgen.h *
|
||||
******************************************************************************/
|
||||
|
||||
#ifndef UDPGEN_H_
|
||||
#define UDPGEN_H_
|
||||
|
@ -1,11 +1,18 @@
|
||||
/*
|
||||
* utils.h
|
||||
*
|
||||
* Created on: Jul 31, 2019
|
||||
* Author: mdziewiecki
|
||||
* Various utils for various purposes
|
||||
* Mainly wrappers on hardware
|
||||
*/
|
||||
/******************************************************************************
|
||||
* 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 - Jul 31, 2019 *
|
||||
* Author: M.Dziewiecki *
|
||||
* Module - utils.h *
|
||||
******************************************************************************/
|
||||
//Various utils for various purposes
|
||||
//Mainly wrappers on hardware
|
||||
|
||||
|
||||
|
||||
|
@ -1,11 +1,17 @@
|
||||
/*
|
||||
* control.c
|
||||
*
|
||||
* Created on: Aug 14, 2017
|
||||
* Author: mdziewiecki
|
||||
* 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 - control.c *
|
||||
* Edited by L.Qin on Oct 15. 2024 *
|
||||
******************************************************************************/
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -1,11 +1,18 @@
|
||||
/*
|
||||
* sensor.c
|
||||
*
|
||||
* Created on: Aug 19, 2019
|
||||
* Author: mdziewiecki
|
||||
* 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 19, 2019 *
|
||||
* Author: M.Dziewiecki *
|
||||
* Module - sensor.c *
|
||||
* Edited by L.Qin on Oct 15. 2024 *
|
||||
******************************************************************************/
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
#include "includes.h"
|
||||
|
@ -1,9 +1,17 @@
|
||||
/*
|
||||
* udpgen.c
|
||||
*
|
||||
* Created on: Aug 7, 2019
|
||||
* Author: mdziewiecki
|
||||
*/
|
||||
/******************************************************************************
|
||||
* 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 19, 2019 *
|
||||
* Author: M.Dziewiecki *
|
||||
* Module - udpgen.c *
|
||||
******************************************************************************/
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
#include "includes.h"
|
||||
|
@ -1,9 +1,16 @@
|
||||
/*
|
||||
* utils.c
|
||||
*
|
||||
* Created on: Jul 31, 2019
|
||||
* Author: mdziewiecki
|
||||
*/
|
||||
/******************************************************************************
|
||||
* 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 - Jul 31, 2019 *
|
||||
* Author: M.Dziewiecki *
|
||||
* Module - utils.c *
|
||||
******************************************************************************/
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
Loading…
Reference in New Issue
Block a user