通信IC设计代码.rar


通信IC设计代码.rar
资源截图
代码片段和文件信息
// Copyright 2007 Altera Corporation. All rights reserved.  
// Altera products are protected under numerous U.S. and foreign patents 
// maskwork rights copyrights and other intellectual property laws.  
//
// This reference design file and your use thereof is subject to and governed
// by the terms and conditions of the applicable Altera Reference Design 
// License Agreement (either as signed by you or found at www.altera.com).  By
// using this reference design file you indicate your acceptance of such terms
// and conditions between you and Altera Corporation.  In the event that you do
// not agree with such terms and conditions you may not use the reference 
// design file and please promptly destroy any copies you have made.
//
// This reference design file is being provided on an “as-is“ basis and as an 
// accommodation and therefore all warranties representations or guarantees of 
// any kind (whether express implied or statutory) including without 
// limitation warranties of merchantability non-infringement or fitness for
// a particular purpose are specifically disclaimed.  By making this reference
// design file available Altera expressly does not recommend suggest or 
// require that this reference design file be used in combination with any 
// other product not provided by Altera.
/////////////////////////////////////////////////////////////////////////////

//baeckler - 11-14-2006

#include 

int log2 (int n)
{
int bits = 0;
while (n)
{
n >>= 1;
bits++;
}
return (bits);
}

int main (void)
{
unsigned int num_ins = 6;
unsigned int num_outs = log2(num_ins);

unsigned int num_cases = (1< unsigned int n = 0 k = 0;
unsigned int out_val = 0;

fprintf (stdout“//baeckler - 11-14-2006
“);
fprintf (stdout“// priority encoder
“);
fprintf (stdout“//   no requests - output = 0
“);
fprintf (stdout“//   request bit 0 (highest priority) - output = 1
“);
fprintf (stdout“//   request bit %d (lowest priority) - output = %d
“num_ins-1num_ins);
fprintf (stdout“module prio_encode (reqsout);
“);
fprintf (stdout“input [%d:0] reqs;
“num_ins-1);
fprintf (stdout“output [%d:0] out;
“num_outs-1);
fprintf (stdout“reg [%d:0] out;

“num_outs-1);

fprintf (stdout“    always @(*) begin
“);
fprintf (stdout“      case(reqs)
“);

fprintf (stdout“        // 0 is special no reqs
“);
fprintf (stdout“        %d‘d%d: out = %d;

“num_ins00);     

for (n=1; n {
out_val = 1;
k = n;
while (k && !(k&1))
{
k >>=1;
out_val += 1;
}
fprintf (stdout“        %d‘d%d: out = %d;
“num_insnout_val);     
}
fprintf (stdout“      endcase
“);
fprintf (stdout“    end
“);
fprintf (stdout“endmodule
“);
return (0);
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1983  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arbitrationarbiter.v

     文件       3196  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arbitrationarbiter_tb.v

     文件       1581  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arbitrationitscan.v

     文件       2086  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arbitrationitscan_tb.v

     文件       1911  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arbitrationlog2.inc

     文件       2853  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arbitrationprio_encode.cpp

     文件       3405  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arbitrationprio_encode.v

     文件       5071  2009-03-24 12:41  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arbitration x_4channel_arbiter.v

     文件       7939  2009-03-24 12:41  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arbitration x_4channel_arbiter_tb.sv

     文件       4219  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arithmeticadder_tree.v

     文件       4174  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arithmeticadder_tree_layer.v

     文件       3439  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arithmeticadder_tree_node.v

     文件       3009  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arithmeticadder_tree_tb.v

     文件       2572  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arithmeticaddsub.v

     文件       5378  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arithmeticasic_adder.v

     文件       1763  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arithmeticcompress_32.v

     文件       5728  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arithmeticcordic.v

     文件       4208  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arithmeticcordic_angle_table.cpp

     文件       4754  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arithmeticcordic_tb.v

     文件       5122  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arithmeticdivider.v

     文件       3766  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arithmeticdivider_tb.v

     文件       4094  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arithmeticdouble_addsub.v

     文件       2342  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arithmeticdouble_addsub_tb.v

     文件       1765  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arithmeticiter_addsub.v

     文件       4684  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arithmetickaratsuba_mult.v

     文件       2571  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arithmetickaratsuba_mult_tb.v

     文件       4809  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arithmeticlc_mult_signed.v

     文件       4288  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arithmeticlc_mult_signed_tb.v

     文件       1911  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arithmeticlog2.inc

     文件       1879  2009-01-05 11:50  随机代码完整的几个工程Altera_多种算法的说明和源码(CORDICECC8B10BAES)arithmeticmake_comp.cpp

............此处省略1785个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)