//////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2014 PANGO MICROSYSTEMS, INC
// ALL RIGHTS REVERVED.
//
// THE SOURCE CODE CONTAINED HEREIN IS PROPRIETARY TO PANGO MICROSYSTEMS, INC.
// IT SHALL NOT BE REPRODUCED OR DISCLOSED IN WHOLE OR IN PART OR USED BY
// PARTIES WITHOUT WRITTEN AUTHORIZATION FROM THE OWNER.
//
//////////////////////////////////////////////////////////////////////////////
//the rd_addr_gen module, it contains tdo_mux function 
//
//

module ips_dbc_rd_addr_gen_v1_3
 #(
   parameter  NEW_JTAG_IF = 1,
   parameter  INFO_CHAIN_BIT = 81,                       //the total bit number of information  
   parameter  INFO_CHAIN  = 0,      //the information data
   parameter  DATA_DEPTH     = 9,	                       //the range is 9~17
   parameter  DATA_BIT       = 1,	                       //1~4096   
   parameter  DATA_CHAIN_BIT       = 2,	                 //DATA_BIT+1
   parameter  STATUS_CHAIN_BIT     = 10                  //	DATA_DEPTH +1    
 )
 (
   input                       h_rstn,          //hw resetn from user logic              
   input                       clk_conf,        //jtag clk            
   input                       rst_conf,        //sw rst from jtag_hub            
   input                       clk_trig,   
   input                       info_en,         //sw select to read the info data to tdo ,control[4]            
   input                       status_en,       //sw select to read the status data to tdo, control[5]          
   input                       ramdata_en,      //sw select to read the ram data to tdo,control[6]          
   output reg [DATA_DEPTH-1:0] ram_radr,            
   input  [DATA_DEPTH:0]       status,              
   input  [DATA_BIT:0]         ram_rdata,           
  //add others tdo             
   input  [19:0]               conf_rdlast,
   input  [19:0]               conf_rdata,
   input                       conf_sel,   
   input  [4:0]                conf_id,
   input  [4:0]                conf_reg_rb,
   input                       operation_ind,      
   output reg                  tdo_mux             
 );

`pragma protect begin_protected
`pragma protect version=1
`pragma protect author="default"
`pragma protect author_info="default"
`pragma protect encrypt_agent="Synplify encryptP1735.pl"
`pragma protect encrypt_agent_info="Synplify encryptP1735.pl Version 1.1"

`pragma protect encoding=(enctype="base64", line_length=76, bytes=256)
`pragma protect key_keyowner="Synplicity", key_keyname="SYNP15_1", key_method="rsa"
`pragma protect key_block
qBwPl92vB9AxgGdemClV9IlGP9RCq48ndCdPExn1hVqZ2gmBEOqxwlR6LElSAuCwZoeCVQGP6XBY
1T+9eMmn1mAiYU+3KjEkSCJ6yyGjrKuI058w0uGOaHCtqlCpI6wAxIWnLdjJzU4JNb80ZAbbUcli
YOmwaHy+fyR9kf/mcP4U3oyuAvfC4YzsWzkua9tJfzIy2igZ9nQLp+m+kjjKaxKUKNd+K4zN3l8w
b9VHQgJB9Xk6leV9f8G41RHbiWsqeE1dvV6ydsIMN6iZqRB5XQjVqbDWHyHgFaj2Ihj5K7y2AuSQ
Q1uoTKdr+eEmiazKxjY9nueR5nluzKGn6H+jiw==

`pragma protect encoding=(enctype="base64", line_length=76, bytes=256)
`pragma protect key_keyowner="Pango Microsystems", key_keyname="PANGO_18", key_method="rsa"
`pragma protect key_block
i6rsp2zEjT7/J6a3azeitz+x6EHRSY2yCJZvwbIL2chBc1+Y+lIysCFW1J3nW3jthvOT9mqeieeD
g63k2Nl+mTJrJ4lxQpD2V2dnUKFX+tMryKRSvney72AqKT553vtUO+iFva87KKFQpLnABao/oUNV
aWCdxaRMQjJ7Cd1b3v7+0EmuDVbZR+OlZPh7+nZieJNBVVRHjoLfwBUvC4uLcgpDH38nhegHjwz/
bnMKybrTRcra/wlTtpnu6+Pto5uKCXTaU/Hqo61aLsQ0pWtvC0EgcvF3MHBU3EeXsYCTg2v/mHjH
aR8WcL3hs1JQsiK/8LdIk3p8AACNXdeNb1IEeA==

`pragma protect data_method="aes128-cbc"
`pragma protect encoding=(enctype="base64", line_length=76, bytes=9024)
`pragma protect data_block
[encoded data, 12008 characters]
erAHCg0nzqyhveH5LRoYF//H

`pragma protect end_protected
endmodule