URL
https://opencores.org/ocsvn/robust_fir/robust_fir/trunk
[/] [robust_fir/] [trunk/] [src/] [gen/] [prgen_bintree_adder.v] - Diff between revs 13 and 16
Show entire file |
Details |
Blame |
View Log
Rev 13 |
Rev 16 |
Line 24... |
Line 24... |
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ////
|
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ////
|
//// PURPOSE. See the GNU Lesser General Public License for more////
|
//// PURPOSE. See the GNU Lesser General Public License for more////
|
//// details. http://www.gnu.org/licenses/lgpl.html ////
|
//// details. http://www.gnu.org/licenses/lgpl.html ////
|
//// ////
|
//// ////
|
//////////////////////////////////////////////////////////////////##>
|
//////////////////////////////////////////////////////////////////##>
|
|
|
OUTFILE prgen_bintree_adder_INPUT_NUM.v
|
OUTFILE prgen_bintree_adder_INPUT_NUM.v
|
|
|
STARTDEF
|
STARTDEF
|
SWAP ADD_STAGES LOG2(INPUT_NUM)
|
SWAP ADD_STAGES LOG2(INPUT_NUM)
|
ENDDEF
|
ENDDEF
|
Line 53... |
Line 52... |
LOOP EX INPUT_NUM EXPR(2^LOG2(INPUT_NUM))
|
LOOP EX INPUT_NUM EXPR(2^LOG2(INPUT_NUM))
|
wire [BITS-1:0] data_inEX = {BITS{1'b0}}; //complete power of 2 input data
|
wire [BITS-1:0] data_inEX = {BITS{1'b0}}; //complete power of 2 input data
|
ENDLOOP EX
|
ENDLOOP EX
|
STOMP LINE
|
STOMP LINE
|
|
|
wire [BITS-1:0] sum_stageADD_STAGES_TX;
|
|
|
|
LOOP TX EXPR(2^LOG2(INPUT_NUM))
|
LOOP TX EXPR(2^LOG2(INPUT_NUM)) ##round up
|
|
wire [BITS-1:0] sum_stageADD_STAGES_TX;
|
assign sum_stageADD_STAGES_TX = data_inTX;
|
assign sum_stageADD_STAGES_TX = data_inTX;
|
ENDLOOP TX
|
ENDLOOP TX
|
|
|
|
|
LOOP SX ADD_STAGES
|
LOOP SX ADD_STAGES
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.