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

📄 weighted_sum.9

📁 CNC 的开放码,EMC2 V2.2.8版
💻 9
字号:
.TH WEIGHTED_SUM "9" "2007-01-16" "EMC Documentation" "HAL Component".SH NAMEweighted_sum \- convert a group of bits to an integer.SH SYNOPSIS.B loadrt weighted_sum wsum_sizes=\fIsize[,size,...]\fR.PCreates weighted sum groups each with the given number of input bits(\fIsize\fR)..SH DESCRIPTIONThis component is a "weighted summer": Its output is the offset plus the sum ofthe weight of each TRUE input bit.  The default value for each weight is 2^nwhere n is the bit number.  This results in a binary to unsigned conversion.There is a limit of 8 weighted summers and each may have up to 16 input bits..SH FUNCTIONS.TP.B process_wsumsRead all input values and update all output values..SH PINS.TP.B wsum.\fIN\fB.bit.\fIM\fB.in\fR bit in The \fIm\fR'th input of weighted summer \fIn\fR..TP.B wsum.\fIN\fB.hold\fR bit inWhen TRUE, the \fIsum\fR output does not change.  When FALSE, the \fIsum\fRoutput tracks the \fIbit\fR inputs according to the weights and offset..TP.B wsum.\fIN\fB.sum\fR signed outThe output of the weighted summer.SH PARAMETERS.TP.B wsum.\fIN\fB.bit.\fIM\fB.weight\fR signed rwThe weight of the \fIm\fR'th input of weighted summer \fIn\fR.  The defaultvalue is 2^\fIm\fR..TP.B wsum.\fIN\fB.offset\fR signed rwThe offset is added to the weights corresponding to all TRUE inputs to give thefinal sum.

⌨️ 快捷键说明

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