当前位置:网站首页>Detailed explanation of srl16e in xilinxffpga
Detailed explanation of srl16e in xilinxffpga
2022-06-23 08:48:00 【ZeroEDA】
FPGA The shift register is often used in the development process , The shift register is usually used to beat a signal , Make the timing meet our needs . One of the most common ways to shoot is in process Shift a signal in a procedure statement ( stay verilog It's in always Shift in the process ).XilinxFPGA A primitive provided in SRL6E, Can be maximized 16 Shift register of shift bit register . It should be noted that ,SRL16E Primitives may have slightly different forms in different devices , The following is the Artix-7 In a series of devices SRL16E The original language :
// SRL16E: 16-bit shift register LUT with clock enable operating
// on posedge of clock (Mapped to a SliceM LUT6)
// Artix-7
// Xilinx HDL Language Template, version 2020.1
SRL16E #(
.INIT(16'h0000) // Initial Value of Shift Register Initialize the register
) SRL16E_inst (
.Q(Q), // SRL data output Register output port
.A0(A0), // Select[0] input Four output bits select the control address
.A1(A1), // Select[1] input
.A2(A2), // Select[2] input
.A3(A3), // Select[3] input
.CE(CE), // Clock enable input Register enable port
.CLK(CLK), // Clock input Clock port
.D(D) // SRL data input Register input port
);example:
`timescale 1ns / 1ps
module SRL16E_Test(
input clk_in,
output wResetQ,
output wEnableN
);
wire wResetQ;
wire wEnableN;
SRL16E #( .INIT( 16'hFF00 ) ) mReset
( .CLK ( clk_in ),
.CE ( 1'b1 ),
.A0 ( 1'b1 ), .A1( 1'b1 ), .A2( 1'b1 ), .A3( 1'b1 ), // Select the first 16 An output
.D ( 1'b0 ),
.Q ( wResetQ ) );
SRL16E #( .INIT( 16'h000F ) ) mEnable
( .CLK ( clk_in ),
.CE ( 1'b1 ),
.A0 ( 1'b1 ), .A1( 1'b1 ), .A2( 1'b1 ), .A3( 1'b1 ), // Select the first 16 An output
.D ( 1'b1 ),
.Q ( wEnableN ) );
endmodule
Testbench:
`timescale 1ns / 1ps
module tb_SRL16E;
reg clk_in;
wire wResetQ;
wire wEnableN;
always #10 clk_in <= ~clk_in; // Clock signal 50M
initial begin
clk_in = 1'b1;
end
SRL16E_Test u_SRL16E(
.clk_in (clk_in ),
.wResetQ (wResetQ ),
.wEnableN (wEnableN )
);
endmodule
Waveform
边栏推荐
- The results of CDN node and source station are inconsistent
- How to restore visualizations and dashboards after kibana rebuilds the index
- TDesign update weekly report (the first week of January 2022)
- H-index of leetcode topic analysis
- Multi Chain and cross chain are the future
- Set the time zone in ci4 (CodeIgniter 4)
- 6月《中國數據庫行業分析報告》發布!智能風起,列存更生
- 528. Random Pick with Weight
- (resolved) difference between leftmost prefix and overlay index
- When easynvr service is started, video cannot be played due to anti-virus software interception. How to deal with it?
猜你喜欢

6月《中国数据库行业分析报告》发布!智能风起,列存更生

最常用的5中流ETL模式
![[paper notes] catching both gray and black swans: open set supervised analog detection*](/img/52/787b25a9818cfc6a1897af81d41ab2.png)
[paper notes] catching both gray and black swans: open set supervised analog detection*

自组织映射神经网络(SOM)

社区文章|MOSN 构建 Subset 优化思路分享

“教练,我想打篮球“ —— 给做系统的同学们准备的 AI 学习系列小册

Which one is better for rendering renderings? 2022 latest measured data (IV)

'教练,我想打篮球!' —— 给做系统的同学们准备的 AI 学习系列小册

In June, China database industry analysis report was released! Smart wind, train storage and regeneration

Summary of communication mode and detailed explanation of I2C drive
随机推荐
自组织映射神经网络(SOM)
Top 25 most popular articles on vivo Internet technology in 2021
4-绘制椭圆、使用定时器
Only 187 bytes of desktop dream code
为什么用生长型神经气体网络(GNG)?
社区文章|MOSN 构建 Subset 优化思路分享
670. Maximum Swap
Hongmeng reads the resource file
最常用的5中流ETL模式
2022.6.22-----leetcode.513
Derivation and loading of the trained random forest model
Analysis of JMeter pressure measurement results
In June, China database industry analysis report was released! Smart wind, train storage and regeneration
Leetcode topic analysis sort colors
Restore the default routing settings of the primary network card
Leetcode topic analysis h-index II
论文阅读【Quo Vadis, Action Recognition? A New Model and the Kinetics Dataset】
Summary ranges of leetcode topic resolution
Talk about the implementation principle of @autowired
Optimize your gradle module with a clean architecture