⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 parameter.v

📁 FPGA verilog
💻 V
字号:
parameter 	
			FPGA_VER		=   8'h01,
			AD_WIDTH		=	12,
			DA_WIDTH		=	12,
			
			PD_MODE			=	2'b00,
			AGC_MODE 		=	2'b01,
			APC_MODE 		=	2'b10,
			ACC_MODE 		=	2'b11,
//			APR_MODE 		=	3'b100,
//			IDLE_MODE 		=	3'b101,

			LM_AGC_DIS		=	2'b00,
			LM_AGC_IDLE		=	2'b01,	
			LM_AGC_NO_EFFECT= 	2'b10,
			LM_NO_EFFECT 	= 	2'b11,			
			
			PARAM_START		=	(12'd0007+12'd1024),
			CONF_NUMERIC_PARAM_START=	PARAM_START,
			OFG				=	(PARAM_START + 10'd0000),
			PLIM			=	(PARAM_START + 10'd0001),	
			GLIM			=	(PARAM_START + 10'd0002),	
			OP_MODE			=	(PARAM_START + 10'd0003),
			GAIN_SET		=	(PARAM_START + 10'd0004),
			PWR_SET			=	(PARAM_START + 10'd0005),
			EYESAFE_PWR		=	(PARAM_START + 10'd0006),
			TILT			=	(PARAM_START + 10'd0007),
			TILT_K			=	(PARAM_START + 10'd0008),
			DCM_LOSS		=	(PARAM_START + 10'd0009),
			DCM_TILT		=	(PARAM_START + 10'd0010),
			SAVEMODE		=	(PARAM_START + 10'd0011),
			RAMP_TIME		=	(PARAM_START + 10'd0012),
			RAMP_STEPS		=	(PARAM_START + 10'd0013),
			LOSMODE			=	(PARAM_START + 10'd0014),
			DEBOUNCE_TIME	=	(PARAM_START + 10'd0015),
			AUTO_MUTE		=	(PARAM_START + 10'd0016),
			ASTM			=	(PARAM_START + 10'd0017),

			LOS_THR			=	(PARAM_START + 10'd0018),
			LOP_THR    		= 	(PARAM_START + 10'd0019),
			MTH_THR			=	(PARAM_START + 10'd0020),
			MTL_THR			=	(PARAM_START + 10'd0021),
			RFL_THR		 	= 	(PARAM_START + 10'd0022),
			TMP_THR			=	(PARAM_START + 10'd0023),
			ILD_THR			=	(PARAM_START + 10'd0024),
			CT_THR			=	(PARAM_START + 10'd0025),
			LOS_HYS			=	(PARAM_START + 10'd0026),
			LOP_HYS   	 	= 	(PARAM_START + 10'd0027),
			MTH_HYS			=	(PARAM_START + 10'd0028),
			MTL_HYS			=	(PARAM_START + 10'd0029),
			RFL_HYS		 	= 	(PARAM_START + 10'd0030),
			TMP_HYS			=	(PARAM_START + 10'd0031),
			ILD_HYS			=	(PARAM_START + 10'd0032),
			CT_HYS			=	(PARAM_START + 10'd0033),

			PIN_K			=	(PARAM_START + 10'd0034),
			PIN_B			=	(PARAM_START + 10'd0035),
			POUT_K			=	(PARAM_START + 10'd0036),
			POUT_B			=	(PARAM_START + 10'd0037),
			VOA_INPUT_K		=	(PARAM_START + 10'd0038),
			VOA_INPUT_B		=	(PARAM_START + 10'd0039),
			VOA_OUTPUT_K	=	(PARAM_START + 10'd0040),
			VOA_OUTPUT_B	=	(PARAM_START + 10'd0041),
			PD1_K			=	(PARAM_START + 10'd0042),
			PD1_B			=	(PARAM_START + 10'd0043),
			PD2_K			=	(PARAM_START + 10'd0044),
			PD2_B			=	(PARAM_START + 10'd0045),
			RFL_K			=	(PARAM_START + 10'd0046),
			RFL_B			=	(PARAM_START + 10'd0047),			
			AD_VREF_K		=	(PARAM_START + 10'd0048),
			PUMP1_PWR_K		=	(PARAM_START + 10'd0049),
			PUMP2_PWR_K		=	(PARAM_START + 10'd0050),
			VOA_KP			=	(PARAM_START + 10'd0051),
			VOA_KI			=	(PARAM_START + 10'd0052),
			AGC_KP			=	(PARAM_START + 10'd0053),
			AGC_KI			=	(PARAM_START + 10'd0054),
			APC_KP			=	(PARAM_START + 10'd0055),
			APC_KI			=	(PARAM_START + 10'd0056),
			INPUTSAMPSTART	=	(PARAM_START + 10'd0057),
			OUTPUTSAMPSTART	=	(PARAM_START + 10'd0058),
			GAIN_A 			=	(PARAM_START + 10'd0059),
			GAIN_B			=	(PARAM_START + 10'd0060),
			KinkCurr1		=	(PARAM_START + 10'd0061),
			KinkPwr1		=	(PARAM_START + 10'd0062),
			PumpCurrMini1	=	(PARAM_START + 10'd0063),
			TecR1			=	(PARAM_START + 10'd0064),
			KinkCurr2		=	(PARAM_START + 10'd0065),
			KinkPwr2		=	(PARAM_START + 10'd0066),
			PumpCurrMini2	=	(PARAM_START + 10'd0067),
			TecR2			=	(PARAM_START + 10'd0068),
			VoaMini			=	(PARAM_START + 10'd0069),
			BAUD			=	(PARAM_START + 10'd0070),
			ECHO			=	(PARAM_START + 10'd0071),
			PUMP1_K1		=	(PARAM_START + 10'd0072),
			PUMP1_B1		=	(PARAM_START + 10'd0073),
			PUMP1_K2		=	(PARAM_START + 10'd0074),
			PUMP1_B2		=	(PARAM_START + 10'd0075),
 			GAIN_K4			=	(PARAM_START + 10'd0076),		
			GAIN_K3			=	(PARAM_START + 10'd0077),		
			GAIN_K2			=	(PARAM_START + 10'd0078),		
			GAIN_K1			=	(PARAM_START + 10'd0079),		
			GAIN_K0			=	(PARAM_START + 10'd0080),		
			FEED_B			=	(PARAM_START + 10'd0081),
			
			MCU_AD_START	=	(FEED_B + 1),

			PUMP1_ILD_AD	=	(PARAM_START + 10'd0082),
			PUMP2_ILD_AD	=	(PARAM_START + 10'd0083),
			PUMP1_TMP_AD	=	(PARAM_START + 10'd0084),
			PUMP2_TMP_AD	=	(PARAM_START + 10'd0085),
			PUMP1_ITC_AD	=	(PARAM_START + 10'd0086),
			PUMP2_ITC_AD	=	(PARAM_START + 10'd0087),
			PUMP1_VTC_AD	=	(PARAM_START + 10'd0088),
			PUMP2_VTC_AD	=	(PARAM_START + 10'd0089),
			MT_AD			=	(PARAM_START + 10'd0090),
			CT_AD			=	(PARAM_START + 10'd0091),
			RFL_AD			=	(PARAM_START + 10'd0092),

			MCU_AD_END		=	RFL_AD,

			PIN_AD			=	(PARAM_START + 10'd0093),
			POUT_AD			=	(PARAM_START + 10'd0094),
			VOA_INPUT_AD	=	(PARAM_START + 10'd0095),
			VOA_OUTPUT_AD	=	(PARAM_START + 10'd0096),
			PD1_AD			=	(PARAM_START + 10'd0097),
			PD2_AD			=	(PARAM_START + 10'd0098),
			
			PUMP1_ILD		=	(PARAM_START + 10'd0099),
			PUMP2_ILD		=	(PARAM_START + 10'd0100),
			PUMP1_TMP		=	(PARAM_START + 10'd0101),
			PUMP2_TMP		=	(PARAM_START + 10'd0102),
			PUMP1_ITC		=	(PARAM_START + 10'd0103),
			PUMP2_ITC		=	(PARAM_START + 10'd0104),
			PUMP1_VTC		=	(PARAM_START + 10'd0105),
			PUMP2_VTC		=	(PARAM_START + 10'd0106),
			PUMP1_PWR		=	(PARAM_START + 10'd0107),
			PUMP2_PWR		=	(PARAM_START + 10'd0108),
			MT				=	(PARAM_START + 10'd0109),
			CT				=	(PARAM_START + 10'd0110),
			
			PIN				=	(PARAM_START + 10'd0111),
			POUT			=	(PARAM_START + 10'd0112),
			VOA_INPUT		=	(PARAM_START + 10'd0113),
			VOA_OUTPUT		=	(PARAM_START + 10'd0114),
			PD1				=	(PARAM_START + 10'd0115),
			PD2				=	(PARAM_START + 10'd0116),
			RFL				=	(PARAM_START + 10'd0117),
			VOA				=	(PARAM_START + 10'd0118),
			PUMP1_DAC		=	(PARAM_START + 10'd0119),
			PUMP2_DAC		=	(PARAM_START + 10'd0120),
			VOA_DAC			=	(PARAM_START + 10'd0121),
	
			MUTEON			=	(PARAM_START + 10'd0122),
			PUMPON			=	(PARAM_START + 10'd0123),
			PUMPSTATE		=	(PARAM_START + 10'd0124),
			
			POUTSIG			=	(PARAM_START + 10'd0125),
			GAIN			=	(PARAM_START + 10'd0126),
			
			ALARMALL	    =	(PARAM_START + 10'd0127),
			ALARMMTHSTA	    =	(PARAM_START + 10'd0128),
			ALARMMTLSTA  	=	(PARAM_START + 10'd0129),
			ALARMTMPSTA   	=	(PARAM_START + 10'd0130),
			ALARMILDSTA	    =	(PARAM_START + 10'd0131),
			ALARMLOSSTA	    =	(PARAM_START + 10'd0132),
			ALARMDOPSTA	    =	(PARAM_START + 10'd0133),
			ALARMLOS2STA    =	(PARAM_START + 10'd0134),
			ALARMCTSTA	    =	(PARAM_START + 10'd0135),
			ALARMRFLSTA	    =	(PARAM_START + 10'd0136),
 			ALARMMTHSST		=   (PARAM_START + 10'd0137),
			ALARMMTLSST		=	(PARAM_START + 10'd0138),	
			ALARMTMPSST		=	(PARAM_START + 10'd0139),	
			ALARMILDSST		=	(PARAM_START + 10'd0140),	
			ALARMLOSSST		=	(PARAM_START + 10'd0141),	
			ALARMDOPSST		=	(PARAM_START + 10'd0142),	
			ALARMLOS2SST	=	(PARAM_START + 10'd0143),	
			ALARMCTSST		=	(PARAM_START + 10'd0144),	
			ALARMRFLSST		=	(PARAM_START + 10'd0145),	
			CLEARALARM		=	(PARAM_START + 10'd0146),	
			CLEARMTH		=	(PARAM_START + 10'd0147),	
			CLEARMTL		=	(PARAM_START + 10'd0148),	
			CLEARTMP		=	(PARAM_START + 10'd0149),	
			CLEARILD		=	(PARAM_START + 10'd0150),	
			CLEARLOS		=	(PARAM_START + 10'd0151),	
			CLEARDOP		=	(PARAM_START + 10'd0152),	
			CLEARLOS2		=	(PARAM_START + 10'd0153),	
			CLEARCT			=	(PARAM_START + 10'd0154),	
			CLEARRFL		=	(PARAM_START + 10'd0155),	
			
			VOA_SET			=   (PARAM_START + 10'd0156),
			CURR_SET1		=	(PARAM_START + 10'd0157),
			CURR_SET2		=	(PARAM_START + 10'd0158),
			ISP_AUTO1		=	(PARAM_START + 10'd0159),
			ISP_AUTO2		=	(PARAM_START + 10'd0160),
			MST				=	(PARAM_START + 10'd0161),	
			HRS1			=	(PARAM_START + 10'd0162),	
			HRS2			=	(PARAM_START + 10'd0163),	
			ILDM1			=	(PARAM_START + 10'd0164),	
			ILDM2			=	(PARAM_START + 10'd0165),	
			
			FEED_K			=	(PARAM_START + 10'd0166),
			VOA_TARGET		=	(PARAM_START + 10'd0167),
			LOP_THR_HI		=	(PARAM_START + 10'd0168),
			LOP_THR_LO		=	(PARAM_START + 10'd0169),
			LOP_HYS_HI		=	(PARAM_START + 10'd0170),
			LOP_HYS_LO		=	(PARAM_START + 10'd0171),
			SYS_CTRL		=	(PARAM_START + 10'd0172),

			ILD1_THR		=	(PARAM_START + 10'd0173),
			ILD2_THR		=	(PARAM_START + 10'd0174),
			ILD1_HYS		=	(PARAM_START + 10'd0175),
			ILD2_HYS		=	(PARAM_START + 10'd0176), 
			PUMP_TUNE_K		=   (PARAM_START + 10'd0177),
			ILDMHI1			=	(PARAM_START + 10'd0178),	
			ILDMLO1			=	(PARAM_START + 10'd0179),	
			ILDMHI2			=	(PARAM_START + 10'd0180),	
			ILDMLO2			=	(PARAM_START + 10'd0181),
			INPUT_KEY		=	(PARAM_START + 10'd0182);
			

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -