当前位置: 首页 > news >正文

网站背景特效网站建设与管理维护参考文献

网站背景特效,网站建设与管理维护参考文献,系统网站建设ppt,天元建设集团有限公司商业承兑汇票拒付最新消息DSP块基元利用模式检测电路来计算收敛舍入#xff08;要么为偶数#xff0c;要么为奇数#xff09;。以下是收敛舍入推理的示例#xff0c;它在块满时进行推理并且还推断出2输入and门#xff08;1 LUT#xff09;以实现LSB校正。 Rounding to Even (Verilog) Filename: …DSP块基元利用模式检测电路来计算收敛舍入要么为偶数要么为奇数。以下是收敛舍入推理的示例它在块满时进行推理并且还推断出2输入and门1 LUT以实现LSB校正。 Rounding to Even (Verilog) Filename: convergentRoundingEven.v // Convergent rounding(Even) Example which makes use of pattern detect // File: convergentRoundingEven.v module convergentRoundingEven ( input clk, input [23:0] a, input [15:0] b, output reg signed [23:0] zlast ); reg signed [23:0] areg; reg signed [15:0] breg; reg signed [39:0] z1; reg pattern_detect; wire [15:0] pattern 16b0000000000000000; wire [39:0] c 40b0000000000000000000000000111111111111111; // 15 ones wire signed [39:0] multadd; wire signed [15:0] zero; reg signed [39:0] multadd_reg; // Convergent Rounding: LSB Correction Technique // --------------------------------------------- // For static convergent rounding, the pattern detector can be used // to detect the midpoint case. For example, in an 8-bit round, if // the decimal place is set at 4, the C input should be set to // 0000.0111. Round to even rounding should use CARRYIN 1 and // check for PATTERN XXXX.0000 and replace the units place with 0 // if the pattern is matched. See UG193 for more details. assign multadd z1 c 1b1; always (posedge clk) begin areg a; breg b; z1 areg * breg; pattern_detect multadd[15:0] pattern ? 1b1 : 1b0; multadd_reg multadd; end // Unit bit replaced with 0 if pattern is detected always (posedge clk) zlast pattern_detect ? {multadd_reg[39:17],1b0} : multadd_reg[39:16]; endmodule // convergentRoundingEven Rounding to Even (VHDL) Filename: convergentRoundingEven.vhd -- Convergent rounding(Even) Example which makes use of pattern detect -- File: convergentRoundingEven.vhd library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; entity convergentRoundingEven is port (clk : in std_logic; a : in std_logic_vector (23 downto 0); b : in std_logic_vector (15 downto 0); zlast : out std_logic_vector (23 downto 0)); end convergentRoundingEven; architecture beh of convergentRoundingEven is signal ar : signed(arange); signal br : signed(brange); signal z1 : signed(alength blength - 1 downto 0); signal multaddr : signed(alength blength - 1 downto 0); signal multadd : signed(alength blength - 1 downto 0); signal pattern_detect : boolean; constant pattern : signed(15 downto 0) : (others 0); constant c : signed : 0000000000000000000000000111111111111111; -- Convergent Rounding: LSB Correction Technique -- --------------------------------------------- -- For static convergent rounding, the pattern detector can be used -- to detect the midpoint case. For example, in an 8-bit round, if -- the decimal place is set at 4, the C input should be set to -- 0000.0111. Round to even rounding should use CARRYIN 1 and -- check for PATTERN XXXX.0000 and replace the units place with 0 -- if the pattern is matched. See UG193 for more details. begin multadd z1 c 1; process(clk) begin if rising_edge(clk) then ar signed(a); br signed(b); z1 ar * br; multaddr multadd; if multadd(15 downto 0) pattern then pattern_detect true; else pattern_detect false; end if; end if; end process; -- Unit bit replaced with 0 if pattern is detected process(clk) begin if rising_edge(clk) then if pattern_detect true then zlast std_logic_vector(multaddr(39 downto 17)) 0; else zlast std_logic_vector(multaddr(39 downto 16)); end if; end if; end process; end beh; Rounding to Odd (Verilog) Filename: convergentRoundingOdd.v // Convergent rounding(Odd) Example which makes use of pattern detect // File: convergentRoundingOdd.v module convergentRoundingOdd ( input clk, input [23:0] a, input [15:0] b, output reg signed [23:0] zlast ); reg signed [23:0] areg; reg signed [15:0] breg; reg signed [39:0] z1; reg pattern_detect; wire [15:0] pattern 16b1111111111111111; wire [39:0] c 40b0000000000000000000000000111111111111111; // 15 ones wire signed [39:0] multadd; wire signed [15:0] zero; reg signed [39:0] multadd_reg; // Convergent Rounding: LSB Correction Technique // --------------------------------------------- // For static convergent rounding, the pattern detector can be // used to detect the midpoint case. For example, in an 8-bit // round, if the decimal place is set at 4, the C input should // be set to 0000.0111. Round to odd rounding should use // CARRYIN 0 and check for PATTERN XXXX.1111 and then // replace the units place bit with 1 if the pattern is // matched. See UG193 for details assign multadd z1 c; always (posedge clk) begin areg a; breg b; z1 areg * breg; pattern_detect multadd[15:0] pattern ? 1b1 : 1b0; multadd_reg multadd; end always (posedge clk) zlast pattern_detect ? {multadd_reg[39:17],1b1} : multadd_reg[39:16]; endmodule // convergentRoundingOdd Rounding to Odd (VHDL) Filename: convergentRoundingOdd.vhd -- Convergent rounding(Odd) Example which makes use of pattern detect -- File: convergentRoundingOdd.vhd library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; entity convergentRoundingOdd is port (clk : in std_logic; a : in std_logic_vector (23 downto 0); b : in std_logic_vector (15 downto 0); zlast : out std_logic_vector (23 downto 0)); end convergentRoundingOdd; architecture beh of convergentRoundingOdd is signal ar : signed(arange); signal br : signed(brange); signal z1 : signed(alength blength - 1 downto 0); signal multadd, multaddr : signed(alength blength - 1 downto 0); signal pattern_detect : boolean; constant pattern : signed(15 downto 0) : (others 1); constant c : signed : 0000000000000000000000000111111111111111; -- Convergent Rounding: LSB Correction Technique -- --------------------------------------------- -- For static convergent rounding, the pattern detector can be -- used to detect the midpoint case. For example, in an 8-bit -- round, if the decimal place is set at 4, the C input should -- be set to 0000.0111. Round to odd rounding should use -- CARRYIN 0 and check for PATTERN XXXX.1111 and then -- replace the units place bit with 1 if the pattern is -- matched. See UG193 for details begin multadd z1 c; process(clk) begin if rising_edge(clk) then ar signed(a); br signed(b); z1 ar * br; multaddr multadd; if multadd(15 downto 0) pattern then pattern_detect true; else pattern_detect false; end if; end if; end process; process(clk) begin if rising_edge(clk) then if pattern_detect true then zlast std_logic_vector(multaddr(39 downto 17)) 1; else zlast std_logic_vector(multaddr(39 downto 16)); end if; end if; end process; end beh;
http://www.pierceye.com/news/899006/

相关文章:

  • 深圳市国外网站建设简单html5网页设计
  • 网站制作公司西南城乡建设部网站首页
  • 网站名和域名能一样吗企业网站建设硬件
  • 德州做网站公司怎么开网店淘宝
  • 苏州做网站优化的电商定制开发
  • 广西庆海建设发展有限公司网站昆山有做网站的公司吗
  • 前端课程网站wordpress 微博登陆
  • asp怎么做网站适配开发公司安置房项目工程推进大会
  • 学做网站可以赚钱吗怎么批量修改wordpress文章内容
  • 写作网站vir上海博大园林建设发展有限公司网站
  • wordpress video gallery网站代码优化怎么做
  • 厦门网站设计品牌企业互联网门户网站建设
  • 做名片模板网站中文响应式网站
  • 用tornado做网站石家庄 外贸网站建设公司
  • 档案网站建设网页wordpress keyshot
  • 鞍山制作网站哪家好建设银行员工网站
  • 手机怎么提升网站流量品牌型网站成功案例图片
  • 网站视频主持人制作网站开发 质量管理
  • 网站的外链建设计划石家庄市城乡建设部网站
  • 电子商务网站规划与建设论文电子商务营销方法
  • 宁波做网站费用电子商城开发网站开发
  • 太原市住房和城乡建设部网站免费的logo在线设计
  • 做it的在哪个网站找工作wordpress 幻燈片 插件
  • 湘潭做网站 i磐石网络博学网站建设公司
  • 揭阳市建设发展总公司网站自己做的视频网站如何赚钱
  • 泉州自助建站软件天眼查在线查询官网
  • 网站建设书模板校本教研网站建设方案
  • 经销商自己做网站合适吗彩虹网站建设
  • 网站新闻编辑怎么做网站开发人员 组织架构
  • 重庆网站seo诊断婚纱摄影网站模板下载