⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 d_reg8_decoder.v

📁 rs的译码器
💻 V
字号:
                                                    
//                                                                               
//Design       : Reed-Solomon decoder RS(204,188) in QAM                         
//                                                                               
//File Name    : D_reg8_decoder.v                                             
//                                                                               
//Perpose      : D_reg8_decoder is a line of 8 D_flip_flops use to store the intermediate results       
//               in the RS decoder      
//                                                                                                          


//synopsys translate_off
`include  "timescale.v" 
//synopsys translate_on 

module D_reg8_decoder ( D,
                        q,
                        clk,
                        clken,
                        phase1,
                        n_rst
                        );

input  [7:0]    D;
input           clk;
input           clken;
input           phase1;
input           n_rst;
output [7:0]    q;

reg    [7:0]    q;

always@(posedge clk or negedge n_rst)
  begin
    if( n_rst == 1'b0 ) 
      q <= 8'h0;
    else if ( clken == 1'b1 && phase1 == 1'b1 )
      q <= D;   
    else
      q <= q;
  end

endmodule

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -