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

公司注册查询网站扁平化设计网站 国内

公司注册查询网站,扁平化设计网站 国内,江苏省住房和城乡建设厅政务网站,WordPress解析域名从编码示例下载编码示例文件。 块RAM读/写同步模式 您可以配置块RAM资源#xff0c;为提供以下同步模式给定的读/写端口#xff1a; •先读取#xff1a;在加载新内容之前先读取旧内容。 •先写#xff1a;新内容立即可供阅读先写也是众所周知的如通读。 •无变化为提供以下同步模式给定的读/写端口 •先读取在加载新内容之前先读取旧内容。 •先写新内容立即可供阅读先写也是众所周知的如通读。 •无变化数据输出不会随着新内容加载到RAM而变化。 Vivado合成为所有这些同步模式提供了推理支持。你可以描述了用于RAM的每个端口的不同同步模式。 分布式RAM示例 以下部分提供了分布式RAM的VHDL和Verilog编码示例。 具有异步读取编码的双端口RAM Verilog示例 Filename: rams_dist.v // Dual-Port RAM with Asynchronous Read (Distributed RAM) // File: rams_dist.v module rams_dist (clk, we, a, dpra, di, spo, dpo); input clk; input we; input [5:0] a; input [5:0] dpra; input [15:0] di; output [15:0] spo; output [15:0] dpo; reg [15:0] ram [63:0]; always (posedge clk) begin if (we) ram[a] di; end assign spo ram[a]; assign dpo ram[dpra]; endmodule Single-Port RAM with Asynchronous Read Coding Example (VHDL) Filename: rams_dist.vhd -- Single-Port RAM with Asynchronous Read (Distributed RAM) -- File: rams_dist.vhd library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; entity rams_dist is port( clk : in std_logic; we : in std_logic; a : in std_logic_vector(5 downto 0); di : in std_logic_vector(15 downto 0); do : out std_logic_vector(15 downto 0) ); end rams_dist; architecture syn of rams_dist is type ram_type is array (63 downto 0) of std_logic_vector(15 downto 0); signal RAM : ram_type; begin process(clk) begin if (clkevent and clk 1) then if (we 1) then RAM(to_integer(unsigned(a))) di; end if; end if; end process; do RAM(to_integer(unsigned(a))); end syn; 单端口块RAM 以下部分提供了单端口块RAM的VHDL和Verilog编码示例。 带可重置数据输出的单端口块RAMVerilog Filename: rams_sp_rf_rst.v // Block RAM with Resettable Data Output // File: rams_sp_rf_rst.v module rams_sp_rf_rst (clk, en, we, rst, addr, di, dout); input clk; input en; input we; input rst; input [9:0] addr; input [15:0] di; output [15:0] dout; reg [15:0] ram [1023:0]; reg [15:0] dout; always (posedge clk) begin if (en) //optional enable begin if (we) //write enable ram[addr] di; if (rst) //optional reset dout 0; else dout ram[addr]; end end endmodule Single Port Block RAM with Resettable Data Output (VHDL) Filename: rams_sp_rf_rst.vhd -- Block RAM with Resettable Data Output -- File: rams_sp_rf_rst.vhd library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; entity rams_sp_rf_rst is port( clk : in std_logic; en : in std_logic; we : in std_logic; rst : in std_logic; addr : in std_logic_vector(9 downto 0); di : in std_logic_vector(15 downto 0); do : out std_logic_vector(15 downto 0) ); end rams_sp_rf_rst; architecture syn of rams_sp_rf_rst is type ram_type is array (1023 downto 0) of std_logic_vector(15 downto 0); signal ram : ram_type; begin process(clk) begin if clkevent and clk 1 then if en 1 then -- optional enable if we 1 then -- write enable ram(to_integer(unsigned(addr))) di; end if; if rst 1 then -- optional reset do (others 0); else do ram(to_integer(unsigned(addr))); end if; end if; end if; end process; end syn; Single-Port Block RAM Write-First Mode (Verilog) Filename: rams_sp_wf.v // Single-Port Block RAM Write-First Mode (recommended template) // File: rams_sp_wf.v module rams_sp_wf (clk, we, en, addr, di, dout); input clk; input we; input en; input [9:0] addr; input [15:0] di; output [15:0] dout; reg [15:0] RAM [1023:0]; reg [15:0] dout; always (posedge clk) begin if (en) begin if (we) begin RAM[addr] di; dout di; end else dout RAM[addr]; end end endmodule Single-Port Block RAM Write-First Mode (VHDL) Filename: rams_sp_wf.vhd -- Single-Port Block RAM Write-First Mode (recommended template) -- -- File: rams_sp_wf.vhd -- library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; entity rams_sp_wf is port( clk : in std_logic; we : in std_logic; en : in std_logic; addr : in std_logic_vector(9 downto 0); di : in std_logic_vector(15 downto 0); do : out std_logic_vector(15 downto 0) ); end rams_sp_wf; architecture syn of rams_sp_wf is type ram_type is array (1023 downto 0) of std_logic_vector(15 downto 0); signal RAM : ram_type; begin process(clk) begin if clkevent and clk 1 then if en 1 then if we 1 then RAM(to_integer(unsigned(addr))) di; do di; else do RAM(to_integer(unsigned(addr))); end if; end if; end if; end process; end syn; Single-Port RAM with Read First (VHDL) Filename: rams_sp_rf.vhd -- Single-Port Block RAM Read-First Mode -- rams_sp_rf.vhd -- library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; entity rams_sp_rf is port( clk : in std_logic; we : in std_logic; en : in std_logic; addr : in std_logic_vector(9 downto 0); di : in std_logic_vector(15 downto 0); do : out std_logic_vector(15 downto 0) ); end rams_sp_rf; architecture syn of rams_sp_rf is type ram_type is array (1023 downto 0) of std_logic_vector(15 downto 0); signal RAM : ram_type; begin process(clk) begin if clkevent and clk 1 then if en 1 then if we 1 then RAM(to_integer(unsigned(addr))) di; end if; do RAM(to_integer(unsigned(addr))); end if; end if; end process; end syn; Single-Port Block RAM No-Change Mode (Verilog) Filename: rams_sp_nc.v // Single-Port Block RAM No-Change Mode // File: rams_sp_nc.v module rams_sp_nc (clk, we, en, addr, di, dout); input clk; input we; input en; input [9:0] addr; input [15:0] di; output [15:0] dout; reg [15:0] RAM [1023:0]; reg [15:0] dout; always (posedge clk) begin if (en) begin if (we) RAM[addr] di; else dout RAM[addr]; end end endmodule Single-Port Block RAM No-Change Mode (VHDL) Filename: rams_sp_nc.vhd -- Single-Port Block RAM No-Change Mode -- File: rams_sp_nc.vhd -- library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; entity rams_sp_nc is port( clk : in std_logic; we : in std_logic; en : in std_logic; addr : in std_logic_vector(9 downto 0); di : in std_logic_vector(15 downto 0); do : out std_logic_vector(15 downto 0) ); end rams_sp_nc; architecture syn of rams_sp_nc is type ram_type is array (1023 downto 0) of std_logic_vector(15 downto 0); signal RAM : ram_type; begin process(clk) begin if clkevent and clk 1 then if en 1 then if we 1 then RAM(to_integer(unsigned(addr))) di; else do RAM(to_integer(unsigned(addr))); end if; end if; end if; end process; end syn;
http://www.hkea.cn/news/14299368/

相关文章:

  • 云南住房与城乡建设厅网站网站SEO优化实训
  • 西宁建设厅培训中心网站WordPress允许用户发布文章
  • ps网站交互设计网站建设后续说明
  • 个人免费网站制作seo软文外包公司
  • 企业网站如何做自然搜索wordpress+假用户插件
  • 网页设计网站建设的基本流程福州百度开户多少钱
  • 成都网站推广营销微信深圳做微商网站设计
  • 常用wap网站开发工具 手机网站制作软件建设合同施工合同示范文本
  • 邳州做网站的公司买权重网站
  • 如何让网站自适应手机网站弹出窗口代码
  • 淘客网站怎么做 知乎网站开发部门工资入什么科目
  • 苏州品牌网站制作公司外贸人才网属于什么电子商务模式
  • 山东省济宁市最新消息北京seo百科
  • 河南网站推广优化公司做任务送科比网站
  • phpcmsv9网站地图推广公司的网站
  • 旅行社网站建设规划书论文观察者网wordpress
  • 一键制作网站php招生网站开发
  • 网站上传服务器教程网店代运营就是个坑
  • 南京电信网站空间扩容小程序开发需要多少钱知乎
  • 东莞南城网站建设价格洛阳网站建设启辰网络
  • 自己做黑彩网站外贸网站销售方式
  • 7天精通网站建设实录网站群建设方案.doc
  • 个人博客网站制作搭建宁波seo网络推广公司
  • 厦门外贸网站建设公众号软文范例100
  • 网站开发类合同百度百科怎么创建自己
  • 湖北省建设安全管理协会网站泸州住院证明图片在线制作
  • 网站开发问题及解决网页制作教程视频
  • 男女做爰全过程网站南阳建站公司
  • 唐山中小企业网站制作没广告的视频播放器app
  • 高淳城乡建设局网站免备案wordpress主机空间