`timescale 1ns/10ps
//-----------------------------------------------------------------------------
// (c) Copyright 2006 Actel Corporation
//
// name:		smtr.v
// function:	System Monitor State Machine (Transition Phase) block
// Rev:			1.1 16Jan06
//
//-----------------------------------------------------------------------------
module ccfdxrhchsz(jktbwpsfwwq,gfrqwfndskc,kpffvbpxmsf,txjjszxznxd,zszmcgpbgkw,
dmrgcpvxzhk,svfntzchvmh,nvpcwbhffsn,rthvrwwpqpk,rbvjpdddhcz,xtfkmfbzksq,
hgtrcfcxkrb,qbrqxpmkpsw,nktsnhmjrbx,rbkmxbvpcdx,zngtgckbfnx,mpnqskgzxzf,
qxzrwpjhcww,dnmrkvrtbjn,kxzjqrqjbxm,ngrmnspbvxf,hxqsbsdhfvm,mvbwzprdfrk,
dtdngjrdwms,ndngwnmwgbm,svpbmqwvncp,jfkkdmfhcdn,tpxkpvnpvvn,xgnmbzmtzbb);
parameter qjnhkksszkf=0;parameter hbgvpqcgtwm=0;parameter fnscgtbnskd=1;
parameter xkcbxcnxxhg=9;parameter cvczfvkpmqh=9;parameter dgswbvgbtfw=0;input
jktbwpsfwwq;input gfrqwfndskc;input[4:0] kpffvbpxmsf;input txjjszxznxd;output
zszmcgpbgkw;wire zszmcgpbgkw;output dmrgcpvxzhk;wire dmrgcpvxzhk;input[(((2 **
qjnhkksszkf)* 32)- 1):0] svfntzchvmh;output[(((2 ** hbgvpqcgtwm)* 32)- 1):0]
nvpcwbhffsn;wire[(((2 ** hbgvpqcgtwm)* 32)- 1):0] nvpcwbhffsn;input[cvczfvkpmqh
- 1:0] rthvrwwpqpk;input rbvjpdddhcz;input[8:0] xtfkmfbzksq;input hgtrcfcxkrb;
input[cvczfvkpmqh - 1:0] qbrqxpmkpsw;input nktsnhmjrbx;output rbkmxbvpcdx;wire
rbkmxbvpcdx;output[xkcbxcnxxhg - 1:0] zngtgckbfnx;wire[xkcbxcnxxhg - 1:0]
zngtgckbfnx;output mpnqskgzxzf;wire mpnqskgzxzf;input[8:0] qxzrwpjhcww;input
dnmrkvrtbjn;output[cvczfvkpmqh - 1:0] kxzjqrqjbxm;wire[cvczfvkpmqh - 1:0]
kxzjqrqjbxm;output ngrmnspbvxf;wire ngrmnspbvxf;output hxqsbsdhfvm;wire
hxqsbsdhfvm;output[8:0] mvbwzprdfrk;wire[8:0] mvbwzprdfrk;output[cvczfvkpmqh -
1:0] dtdngjrdwms;wire[cvczfvkpmqh - 1:0] dtdngjrdwms;output ndngwnmwgbm;wire
ndngwnmwgbm;output svpbmqwvncp;wire svpbmqwvncp;output[8:0] jfkkdmfhcdn;
wire[8:0] jfkkdmfhcdn;input[8:0] tpxkpvnpvvn;output xgnmbzmtzbb;wire
xgnmbzmtzbb;parameter[3:0] twqmbkvsqjv=4'b0010;parameter[3:0]
ffskdxgczkf=4'b0011;parameter[3:0] jwgwqvwgzqc=4'b0100;parameter[3:0]
hdmrhsdqkpf=4'b0101;parameter[3:0] vfhwbpmxnhg=4'b0110;parameter[3:0]
hjsptcsxwwj=4'b0111;parameter[3:0] qkfdnddgfnr=4'b1000;parameter[3:0]
hvdtwfkzgjf=4'b1001;parameter[3:0] tgmgxbkhgvv=4'b1010;parameter[3:0]
mrkkbfgjnsm=4'b1011;parameter[3:0] fqsggvsnbpw=4'b1100;parameter[3:0]
vkzrtdvqxtm=4'b1101;parameter[3:0] cprxxpgqtzv=4'b1110;parameter[3:0]
bzfzwfqrsfh=4'b1111;parameter[1:0] gwcnpmdcdgf=2'b00;parameter[1:0]
cxqfrrsmjms=2'b01;parameter[1:0] scfrdfnbqsw=2'b10;wire djmcnprrmvb;wire
hpqvbfpswtk;wire[4:0] phrnkhgdbnj;wire wjpccrvpdms;wire zzhpvrjsvfq;wire
xdjpqrrmkhk;wire[(((2 ** qjnhkksszkf)* 32)- 1):0] fzffhdchtwx;wire[(((2 **
hbgvpqcgtwm)* 32)- 1):0] fjxrvdqhdqm;wire[cvczfvkpmqh - 1:0] fctrrrgrnzt;wire
qgpxkqfdsgs;wire[8:0] wkjnqmhbcwj;wire sppmwdzsssj;wire[cvczfvkpmqh - 1:0]
kftcmqgpwdb;wire swwxrvfdnmg;wire jzsfkrwzvsw;wire[xkcbxcnxxhg - 1:0]
tvtbbxkbhjr;wire hcrjtrhwvbj;wire[8:0] zgnrsfkdbqw;wire zdbgxnzghqv;
wire[cvczfvkpmqh - 1:0] svfszvvwxqd;wire cnwzzrhdsqv;wire fgbkzdqjprd;wire[8:0]
qwfrxhqbhft;wire[cvczfvkpmqh - 1:0] vkmkdwnprxg;wire smjmfvmgvmf;wire
bqhmpqxgttc;wire[8:0] gbxmbbjwptj;wire[8:0] thsjqmjnffp;wire bppqndbbfvm;
parameter[3:0] tddtwhmsmxw=0;parameter[3:0] csrjrbfvktn=1;parameter[3:0]
vrqwnsvfhbf=2;parameter[3:0] tcngxxfgmdg=3;parameter[3:0] vwzxznxmxjj=4;
parameter[3:0] bfsztxmjbwz=5;parameter[3:0] ncvfznsdsmv=6;parameter[3:0]
nksjwxsrvfg=7;parameter[3:0] jhdgkzrksxb=8;parameter[3:0] mxpxttqxdhv=9;
parameter[3:0] whzkgttntpq=10;parameter[3:0] pgtwqqmcgdx=11;reg[3:0]
frcskdnwvmx;reg[3:0] pstdkkzgbgr;wire hqmqdkzbnrr;wire[xkcbxcnxxhg - 1:0]
fjznqcrvpff;reg[1:0] strbgbnthfj;wire[1:0] whzfpthqmgz;reg[8:0] rjhhzsggrtr;
wire[8:0] xgnxxpdktqq;reg zfgtfxdvzvc;reg hjwgppzxqgk;reg cvjkzwfgfxd;reg
nfzjqqfddbb;reg[8:0] bjhvcvnjcsg;wire[3:0] fkjmfwsgfmv;wire[cvczfvkpmqh - 1:0]
jjnnjkrjzfq;wire[cvczfvkpmqh - 1:0] qsmttxbhpgn;reg[1:0] nqhzsnspnjx;reg
vxwrrdhrwzp;reg[8:0] qgnzcpmbksd;wire[8:0] vdsdnrcxgvw;wire[8:0] drwrxhmtwrc;
wire[8:0] mgqspspvvwp;reg zzcdvnbsprb;wire xmqhrfdbnvv;wire[1:0] fwwttwfqzbg;
reg[1:0] mwwwwqsdrms;reg gjdrndrcvkr;reg jvxfmjbzjmc;reg gbzdgjmckpp;reg
hfnznbmwdbg;wire[4:0] zsmmssvkxrp;reg[4:0] rzhvxzjzccf;reg pwgctrqbjqq;
wire[4:0] tcjcfmnswmq;reg[4:0] fsztzzhdhbt;reg zrwhskvshjw;wire cvpkmgjqwzb;
reg[(((2 ** hbgvpqcgtwm)* 32)- 1):0] mwzbqqvzwjt;wire[4:0] rrghpjvpszt;wire
czjszchcxth;wire[4:0] prtrmdfzspn;reg zsxdfhnrkrg;reg tbbdzwmpmht;reg
pwsmjbnvbmm;wire[7:0] bpjpvnnvzdm;wire[1:0] spxmmvzpxxs;reg[1:0] rhjxdmgzftc;
reg dxqdbrvdqqj;wire rdqhbcjchvq;wire[1:0] zzrhmbvmjcf;reg znjtscvsvcs;reg
hnbsspwxkpd;reg dttrrgvsnmg;reg jnfrmfqggmk;wire mpdmwvwvmgs;wire qfgwvhsgqst;
wire vgdscntczht;wire vmpskspphnb;wire rxhtxbbkhjf;wire sxrhkdkngbh;wire
zzkqpqxsjxx;reg dvqzjxhqhrh;reg rhzdqmbwsdd;reg zcmhpccwtzh;reg bnxqxhthfkm;reg
xvghwqhtwrc;reg ffqqvqhktvc;reg fjsjhgxtkfv;reg xjrbtnwdszs;reg fdwkpqztzkr;reg
gxkgtngfhqr;reg cpwfrthtnfr;reg xqshddsxjxq;reg thrxvbszptn;reg zzzxtvvjqhf;reg
nwjvqqsgrjz;parameter[8:0] nhjqdsptgfp=9'b111111111;parameter[6:0]
gwmqzbkfvkx=7'b0000000;assign fkjmfwsgfmv=thsjqmjnffp[8:5];assign
fwwttwfqzbg=thsjqmjnffp[1:0];assign rrghpjvpszt=thsjqmjnffp[4:0];assign
prtrmdfzspn=thsjqmjnffp[4:0];assign zsmmssvkxrp=thsjqmjnffp[4:0];assign
tcjcfmnswmq=thsjqmjnffp[4:0];assign spxmmvzpxxs=thsjqmjnffp[1:0];assign
bpjpvnnvzdm=thsjqmjnffp[7:0];assign zzkqpqxsjxx=thsjqmjnffp[4];assign
whzfpthqmgz=thsjqmjnffp[1:0];assign xgnxxpdktqq=thsjqmjnffp[8:0];assign
zzrhmbvmjcf=thsjqmjnffp[1:0];always @(posedge djmcnprrmvb or negedge
hpqvbfpswtk)begin if(hpqvbfpswtk==1'b0)begin rhjxdmgzftc<={2{1'b0}};end else
begin if(dxqdbrvdqqj==1'b1)begin rhjxdmgzftc<=spxmmvzpxxs;end end end generate
if(qjnhkksszkf==0)begin:dtqpjwspznp wire[4:0] wire_xhdl13={5{1'b0}};always @(
wire_xhdl13)begin rzhvxzjzccf<=wire_xhdl13;end assign cvpkmgjqwzb=fzffhdchtwx[((
rrghpjvpszt))];end endgenerate generate if(qjnhkksszkf>0)begin:mmjxzzpzvzj
always @(posedge djmcnprrmvb or negedge hpqvbfpswtk)begin if(hpqvbfpswtk==1'b0)
begin rzhvxzjzccf<={5{1'b0}};end else begin if(pwgctrqbjqq==1'b1)begin
rzhvxzjzccf<=zsmmssvkxrp;end end end assign cvpkmgjqwzb=fzffhdchtwx[((((
rzhvxzjzccf[qjnhkksszkf - 1:0])))* 32)+(((rrghpjvpszt)))];end endgenerate
generate if(hbgvpqcgtwm==0)begin:fmjpnrkwjrc wire[4:0] wire_xhdl17={5{1'b0}};
always @(wire_xhdl17)begin fsztzzhdhbt<=wire_xhdl17;end always @(posedge
djmcnprrmvb or negedge hpqvbfpswtk)begin:vsfzgsfwgdd reg[1:0] bpkzfmkvkrj;
reg[4:0] bvjxfbhxgkj;bpkzfmkvkrj=0;bvjxfbhxgkj=0;if(hpqvbfpswtk==1'b0)begin
mwzbqqvzwjt<={(((2 ** hbgvpqcgtwm)* 32)- 1)-(0)+1{1'b0}};end else begin
bpkzfmkvkrj=(((rhjxdmgzftc)));bvjxfbhxgkj=(((prtrmdfzspn)));if(
pwsmjbnvbmm==1'b1)begin mwzbqqvzwjt[(bpkzfmkvkrj * 8)+ 7]<=bpjpvnnvzdm[7];
mwzbqqvzwjt[(bpkzfmkvkrj * 8)+ 6]<=bpjpvnnvzdm[6];mwzbqqvzwjt[(bpkzfmkvkrj * 8)
+ 5]<=bpjpvnnvzdm[5];mwzbqqvzwjt[(bpkzfmkvkrj * 8)+ 4]<=bpjpvnnvzdm[4];
mwzbqqvzwjt[(bpkzfmkvkrj * 8)+ 3]<=bpjpvnnvzdm[3];mwzbqqvzwjt[(bpkzfmkvkrj * 8)
+ 2]<=bpjpvnnvzdm[2];mwzbqqvzwjt[(bpkzfmkvkrj * 8)+ 1]<=bpjpvnnvzdm[1];
mwzbqqvzwjt[(bpkzfmkvkrj * 8)+ 0]<=bpjpvnnvzdm[0];end else if(zsxdfhnrkrg==1'b1)
begin mwzbqqvzwjt[bvjxfbhxgkj]<=1'b1;end else if(tbbdzwmpmht==1'b1)begin
mwzbqqvzwjt[bvjxfbhxgkj]<=1'b0;end end end end endgenerate generate if(
hbgvpqcgtwm>0)begin:rknpnmhwmhk always @(posedge djmcnprrmvb or negedge
hpqvbfpswtk)begin if(hpqvbfpswtk==1'b0)begin fsztzzhdhbt<={5{1'b0}};end else
begin if(zrwhskvshjw==1'b1)begin fsztzzhdhbt<=tcjcfmnswmq;end end end always @(
posedge djmcnprrmvb or negedge hpqvbfpswtk)begin:ssvkkjmxdmx reg[hbgvpqcgtwm -
1:0] nxgzktkpjgj;reg[1:0] bpkzfmkvkrj;reg[4:0] bvjxfbhxgkj;if(hpqvbfpswtk==1'b0)
begin mwzbqqvzwjt<={(((2 ** hbgvpqcgtwm)* 32)- 1)-(0)+1{1'b0}};end else begin
nxgzktkpjgj=(fsztzzhdhbt[hbgvpqcgtwm - 1:0]);bpkzfmkvkrj=(((rhjxdmgzftc)));
bvjxfbhxgkj=(((prtrmdfzspn)));if(pwsmjbnvbmm==1'b1)begin mwzbqqvzwjt[((
nxgzktkpjgj)* 32)+(bpkzfmkvkrj * 8)+ 7]<=bpjpvnnvzdm[7];mwzbqqvzwjt[((
nxgzktkpjgj)* 32)+(bpkzfmkvkrj * 8)+ 6]<=bpjpvnnvzdm[6];mwzbqqvzwjt[((
nxgzktkpjgj)* 32)+(bpkzfmkvkrj * 8)+ 5]<=bpjpvnnvzdm[5];mwzbqqvzwjt[((
nxgzktkpjgj)* 32)+(bpkzfmkvkrj * 8)+ 4]<=bpjpvnnvzdm[4];mwzbqqvzwjt[((
nxgzktkpjgj)* 32)+(bpkzfmkvkrj * 8)+ 3]<=bpjpvnnvzdm[3];mwzbqqvzwjt[((
nxgzktkpjgj)* 32)+(bpkzfmkvkrj * 8)+ 2]<=bpjpvnnvzdm[2];mwzbqqvzwjt[((
nxgzktkpjgj)* 32)+(bpkzfmkvkrj * 8)+ 1]<=bpjpvnnvzdm[1];mwzbqqvzwjt[((
nxgzktkpjgj)* 32)+(bpkzfmkvkrj * 8)+ 0]<=bpjpvnnvzdm[0];end else if(
zsxdfhnrkrg==1'b1)begin mwzbqqvzwjt[((nxgzktkpjgj)* 32)+ bvjxfbhxgkj]<=1'b1;end
else if(tbbdzwmpmht==1'b1)begin mwzbqqvzwjt[((nxgzktkpjgj)* 32)+
bvjxfbhxgkj]<=1'b0;end end end end endgenerate always @(posedge djmcnprrmvb or
negedge hpqvbfpswtk)begin if(hpqvbfpswtk==1'b0)begin dvqzjxhqhrh<=1'b0;end else
begin if(rhzdqmbwsdd==1'b1)begin dvqzjxhqhrh<=zzkqpqxsjxx;end end end always @(
hnbsspwxkpd or zcmhpccwtzh or zgnrsfkdbqw or bnxqxhthfkm or mpdmwvwvmgs or
xvghwqhtwrc or qfgwvhsgqst or ffqqvqhktvc or rxhtxbbkhjf or fjsjhgxtkfv or
jnfrmfqggmk)begin:qgtkpxrgqqs reg[4:0] prcfwhmwpff;prcfwhmwpff={fjsjhgxtkfv,
ffqqvqhktvc,xvghwqhtwrc,bnxqxhthfkm,zcmhpccwtzh};case(prcfwhmwpff)
5'b00001:begin znjtscvsvcs<=zgnrsfkdbqw[0];end 5'b00010:begin
znjtscvsvcs<=mpdmwvwvmgs;end 5'b00100:begin znjtscvsvcs<=qfgwvhsgqst;end
5'b01000:begin znjtscvsvcs<=rxhtxbbkhjf;end 5'b10000:begin
znjtscvsvcs<=jnfrmfqggmk;end default:begin znjtscvsvcs<=hnbsspwxkpd;end endcase
end always @(posedge djmcnprrmvb or negedge hpqvbfpswtk)begin if(
hpqvbfpswtk==1'b0)begin hnbsspwxkpd<=1'b0;end else begin
hnbsspwxkpd<=znjtscvsvcs;end end always @(jnfrmfqggmk or xjrbtnwdszs or
zgnrsfkdbqw or fdwkpqztzkr or vgdscntczht or gxkgtngfhqr or vmpskspphnb or
cpwfrthtnfr or sxrhkdkngbh or fjsjhgxtkfv or hnbsspwxkpd)begin:vnjtgtptszx
reg[4:0] nqffhwhjghm;nqffhwhjghm={fjsjhgxtkfv,cpwfrthtnfr,gxkgtngfhqr,
fdwkpqztzkr,xjrbtnwdszs};case(nqffhwhjghm)5'b00001:begin
dttrrgvsnmg<=zgnrsfkdbqw[0];end 5'b00010:begin dttrrgvsnmg<=vgdscntczht;end
5'b00100:begin dttrrgvsnmg<=vmpskspphnb;end 5'b01000:begin
dttrrgvsnmg<=sxrhkdkngbh;end 5'b10000:begin dttrrgvsnmg<=hnbsspwxkpd;end
default:begin dttrrgvsnmg<=jnfrmfqggmk;end endcase end always @(posedge
djmcnprrmvb or negedge hpqvbfpswtk)begin if(hpqvbfpswtk==1'b0)begin
jnfrmfqggmk<=1'b0;end else begin jnfrmfqggmk<=dttrrgvsnmg;end end assign
mpdmwvwvmgs=hnbsspwxkpd&cvpkmgjqwzb;assign qfgwvhsgqst=hnbsspwxkpd&~(
cvpkmgjqwzb);assign vgdscntczht=jnfrmfqggmk|cvpkmgjqwzb;assign
vmpskspphnb=jnfrmfqggmk|~(cvpkmgjqwzb);assign rxhtxbbkhjf=hnbsspwxkpd&
jnfrmfqggmk;assign sxrhkdkngbh=hnbsspwxkpd|jnfrmfqggmk;assign
vdsdnrcxgvw={3'b000,phrnkhgdbnj,1'b0};assign drwrxhmtwrc={3'b000,phrnkhgdbnj,
1'b1};always @(posedge djmcnprrmvb or negedge hpqvbfpswtk)begin:brxxctcvrmh if(
hpqvbfpswtk==1'b0)begin qgnzcpmbksd<={9{1'b0}};end else begin if(
wjpccrvpdms==1'b1|gbzdgjmckpp==1'b1)begin qgnzcpmbksd<=vdsdnrcxgvw;end else if(
hfnznbmwdbg==1'b1)begin qgnzcpmbksd<=drwrxhmtwrc;end else begin if(
zzcdvnbsprb==1'b1)begin qgnzcpmbksd<=thsjqmjnffp;end else if(jvxfmjbzjmc==1'b1)
begin qgnzcpmbksd<=((qgnzcpmbksd)+ 1);end end end end assign xmqhrfdbnvv=(
qgnzcpmbksd==nhjqdsptgfp)? 1'b1:1'b0;generate if(cvczfvkpmqh>9)
begin:zpddcbdtgjx always @(posedge djmcnprrmvb or negedge hpqvbfpswtk)begin if(
hpqvbfpswtk==1'b0)begin mwwwwqsdrms<={2{1'b0}};nqhzsnspnjx<={2{1'b0}};end else
begin if(gjdrndrcvkr==1'b1)begin mwwwwqsdrms<=fwwttwfqzbg;end if(
wjpccrvpdms==1'b1|hfnznbmwdbg==1'b1)begin nqhzsnspnjx<={2{1'b0}};end else begin
if(vxwrrdhrwzp==1'b1)begin nqhzsnspnjx<=mwwwwqsdrms;end else if(
xmqhrfdbnvv==1'b1&jvxfmjbzjmc==1'b1)begin nqhzsnspnjx<=((nqhzsnspnjx)+ 1);end
end end end assign qsmttxbhpgn={nqhzsnspnjx[cvczfvkpmqh - 10:0],qgnzcpmbksd};
end endgenerate generate if(cvczfvkpmqh<10)begin:fxvzwwstggq wire[1:0]
wire_xhdl38={2{1'b0}};always @(wire_xhdl38)begin mwwwwqsdrms<=wire_xhdl38;end
assign qsmttxbhpgn=qgnzcpmbksd;wire[1:0] wire_xhdl40={2{1'b0}};always @(
wire_xhdl40)begin nqhzsnspnjx<=wire_xhdl40;end end endgenerate always @(posedge
djmcnprrmvb or negedge hpqvbfpswtk)begin if(hpqvbfpswtk==1'b0)begin
rjhhzsggrtr<={9{1'b0}};end else begin if(zfgtfxdvzvc==1'b1)begin
rjhhzsggrtr<=xgnxxpdktqq;end end end generate if(xkcbxcnxxhg>9)
begin:mtbpddbcfnz always @(posedge djmcnprrmvb or negedge hpqvbfpswtk)begin if(
hpqvbfpswtk==1'b0)begin strbgbnthfj<={2{1'b0}};end else begin if(
rhzdqmbwsdd==1'b1)begin strbgbnthfj<=whzfpthqmgz;end end end assign
fjznqcrvpff={strbgbnthfj[xkcbxcnxxhg - 10:0],rjhhzsggrtr};end endgenerate
generate if(xkcbxcnxxhg<10)begin:bzmqmncttng assign fjznqcrvpff=rjhhzsggrtr;
wire[1:0] wire_xhdl45={2{1'b0}};always @(wire_xhdl45)begin
strbgbnthfj<=wire_xhdl45;end end endgenerate always @(frcskdnwvmx or
thsjqmjnffp or wjpccrvpdms or fkjmfwsgfmv or hnbsspwxkpd or jnfrmfqggmk or
zzrhmbvmjcf or dvqzjxhqhrh or mwwwwqsdrms)begin pstdkkzgbgr<=frcskdnwvmx;
nfzjqqfddbb<=1'b1;cvjkzwfgfxd<=1'b1;bjhvcvnjcsg<=thsjqmjnffp;jvxfmjbzjmc<=1'b0;
gjdrndrcvkr<=1'b0;vxwrrdhrwzp<=1'b0;zzcdvnbsprb<=1'b0;pwgctrqbjqq<=1'b0;
zrwhskvshjw<=1'b0;zsxdfhnrkrg<=1'b0;tbbdzwmpmht<=1'b0;dxqdbrvdqqj<=1'b0;
rhzdqmbwsdd<=1'b0;bnxqxhthfkm<=1'b0;xvghwqhtwrc<=1'b0;fdwkpqztzkr<=1'b0;
gxkgtngfhqr<=1'b0;ffqqvqhktvc<=1'b0;cpwfrthtnfr<=1'b0;fjsjhgxtkfv<=1'b0;
gbzdgjmckpp<=1'b0;hfnznbmwdbg<=1'b0;pwsmjbnvbmm<=1'b0;zfgtfxdvzvc<=1'b0;
hjwgppzxqgk<=1'b0;zcmhpccwtzh<=1'b0;xjrbtnwdszs<=1'b0;xqshddsxjxq<=1'b0;
nwjvqqsgrjz<=1'b0;case(frcskdnwvmx)tddtwhmsmxw:begin if(wjpccrvpdms==1'b1)begin
nwjvqqsgrjz<=1'b1;pstdkkzgbgr<=csrjrbfvktn;end else begin
pstdkkzgbgr<=tddtwhmsmxw;end end csrjrbfvktn:begin nfzjqqfddbb<=1'b0;
jvxfmjbzjmc<=1'b1;pstdkkzgbgr<=vrqwnsvfhbf;end vrqwnsvfhbf:begin
nfzjqqfddbb<=1'b0;gjdrndrcvkr<=1'b1;pstdkkzgbgr<=tcngxxfgmdg;end
tcngxxfgmdg:begin vxwrrdhrwzp<=1'b1;zzcdvnbsprb<=1'b1;pstdkkzgbgr<=vwzxznxmxjj;
end vwzxznxmxjj:begin nfzjqqfddbb<=1'b0;jvxfmjbzjmc<=1'b1;
pstdkkzgbgr<=bfsztxmjbwz;end bfsztxmjbwz:begin case(fkjmfwsgfmv)
twqmbkvsqjv:begin if(hnbsspwxkpd==1'b0)begin nfzjqqfddbb<=1'b0;
gjdrndrcvkr<=1'b1;pstdkkzgbgr<=tcngxxfgmdg;end else begin nfzjqqfddbb<=1'b0;
jvxfmjbzjmc<=1'b1;pstdkkzgbgr<=vwzxznxmxjj;end end ffskdxgczkf:begin if(
jnfrmfqggmk==1'b1)begin nfzjqqfddbb<=1'b0;gjdrndrcvkr<=1'b1;
pstdkkzgbgr<=tcngxxfgmdg;end else begin nfzjqqfddbb<=1'b0;jvxfmjbzjmc<=1'b1;
pstdkkzgbgr<=vwzxznxmxjj;end end jwgwqvwgzqc:begin pwgctrqbjqq<=1'b1;
nfzjqqfddbb<=1'b0;jvxfmjbzjmc<=1'b1;pstdkkzgbgr<=bfsztxmjbwz;end
hdmrhsdqkpf:begin zrwhskvshjw<=1'b1;nfzjqqfddbb<=1'b0;jvxfmjbzjmc<=1'b1;
pstdkkzgbgr<=bfsztxmjbwz;end vfhwbpmxnhg:begin zsxdfhnrkrg<=1'b1;
nfzjqqfddbb<=1'b0;jvxfmjbzjmc<=1'b1;pstdkkzgbgr<=bfsztxmjbwz;end
hjsptcsxwwj:begin tbbdzwmpmht<=1'b1;nfzjqqfddbb<=1'b0;jvxfmjbzjmc<=1'b1;
pstdkkzgbgr<=bfsztxmjbwz;end qkfdnddgfnr:begin dxqdbrvdqqj<=1'b1;
nfzjqqfddbb<=1'b0;jvxfmjbzjmc<=1'b1;pstdkkzgbgr<=ncvfznsdsmv;end
hvdtwfkzgjf:begin rhzdqmbwsdd<=1'b1;nfzjqqfddbb<=1'b0;jvxfmjbzjmc<=1'b1;
pstdkkzgbgr<=nksjwxsrvfg;end tgmgxbkhgvv:begin bnxqxhthfkm<=1'b1;
nfzjqqfddbb<=1'b0;jvxfmjbzjmc<=1'b1;pstdkkzgbgr<=bfsztxmjbwz;end
mrkkbfgjnsm:begin xvghwqhtwrc<=1'b1;nfzjqqfddbb<=1'b0;jvxfmjbzjmc<=1'b1;
pstdkkzgbgr<=bfsztxmjbwz;end fqsggvsnbpw:begin fdwkpqztzkr<=1'b1;
nfzjqqfddbb<=1'b0;jvxfmjbzjmc<=1'b1;pstdkkzgbgr<=bfsztxmjbwz;end
vkzrtdvqxtm:begin gxkgtngfhqr<=1'b1;nfzjqqfddbb<=1'b0;jvxfmjbzjmc<=1'b1;
pstdkkzgbgr<=bfsztxmjbwz;end cprxxpgqtzv:begin case(zzrhmbvmjcf)
gwcnpmdcdgf:begin ffqqvqhktvc<=1'b1;end cxqfrrsmjms:begin cpwfrthtnfr<=1'b1;end
default:begin fjsjhgxtkfv<=1'b1;end endcase nfzjqqfddbb<=1'b0;jvxfmjbzjmc<=1'b1;
pstdkkzgbgr<=bfsztxmjbwz;end bzfzwfqrsfh:begin nfzjqqfddbb<=1'b0;
gjdrndrcvkr<=1'b1;hfnznbmwdbg<=1'b1;pstdkkzgbgr<=whzkgttntpq;end default:begin
jvxfmjbzjmc<=1'b1;pstdkkzgbgr<=vwzxznxmxjj;end endcase end ncvfznsdsmv:begin
pwsmjbnvbmm<=1'b1;nfzjqqfddbb<=1'b0;jvxfmjbzjmc<=1'b1;pstdkkzgbgr<=bfsztxmjbwz;
end nksjwxsrvfg:begin zfgtfxdvzvc<=1'b1;pstdkkzgbgr<=jhdgkzrksxb;end
jhdgkzrksxb:begin hjwgppzxqgk<=1'b1;pstdkkzgbgr<=mxpxttqxdhv;end
mxpxttqxdhv:begin if(dvqzjxhqhrh==1'b0)begin zcmhpccwtzh<=1'b1;end else begin
xjrbtnwdszs<=1'b1;end nfzjqqfddbb<=1'b0;jvxfmjbzjmc<=1'b1;
pstdkkzgbgr<=bfsztxmjbwz;end whzkgttntpq:begin nfzjqqfddbb<=1'b0;
cvjkzwfgfxd<=1'b0;bjhvcvnjcsg<=thsjqmjnffp;gbzdgjmckpp<=1'b1;
pstdkkzgbgr<=pgtwqqmcgdx;end pgtwqqmcgdx:begin nfzjqqfddbb<=1'b0;
cvjkzwfgfxd<=1'b0;bjhvcvnjcsg<={gwmqzbkfvkx,mwwwwqsdrms};xqshddsxjxq<=1'b1;
pstdkkzgbgr<=tddtwhmsmxw;end endcase end assign hqmqdkzbnrr=sppmwdzsssj;always
@(posedge djmcnprrmvb or negedge hpqvbfpswtk)begin if(hpqvbfpswtk==1'b0)begin
frcskdnwvmx<=tddtwhmsmxw;end else begin if(hqmqdkzbnrr==1'b1)begin
frcskdnwvmx<=pstdkkzgbgr;end else begin frcskdnwvmx<=tddtwhmsmxw;end end end
always @(posedge djmcnprrmvb or negedge hpqvbfpswtk)begin if(hpqvbfpswtk==1'b0)
begin thrxvbszptn<=1'b0;end else begin thrxvbszptn<=xqshddsxjxq;end end always
@(posedge djmcnprrmvb or negedge hpqvbfpswtk)begin if(hpqvbfpswtk==1'b0)begin
zzzxtvvjqhf<=1'b0;end else begin if(xqshddsxjxq==1'b1|sppmwdzsssj==1'b0)begin
zzzxtvvjqhf<=1'b0;end else if(nwjvqqsgrjz==1'b1)begin zzzxtvvjqhf<=1'b1;end end
end assign zzhpvrjsvfq=thrxvbszptn;assign xdjpqrrmkhk=zzzxtvvjqhf;assign
fjxrvdqhdqm=mwzbqqvzwjt;assign tvtbbxkbhjr=fjznqcrvpff;assign
hcrjtrhwvbj=hjwgppzxqgk;assign vkmkdwnprxg=qsmttxbhpgn;assign
smjmfvmgvmf=cvjkzwfgfxd;assign bqhmpqxgttc=nfzjqqfddbb;assign
gbxmbbjwptj=bjhvcvnjcsg;generate if(fnscgtbnskd==1)begin:bqbvkjfbxkr assign
svfszvvwxqd=(sppmwdzsssj==1'b0)? fctrrrgrnzt:kftcmqgpwdb;assign fgbkzdqjprd=(
sppmwdzsssj==1'b0)? ~qgpxkqfdsgs:(swwxrvfdnmg==1'b1)? 1'b0:1'b1;end endgenerate
generate if(fnscgtbnskd==0)begin:bspqqgczscr assign svfszvvwxqd=fctrrrgrnzt;
assign fgbkzdqjprd=(sppmwdzsssj==1'b0)? ~qgpxkqfdsgs:1'b1;end endgenerate
assign cnwzzrhdsqv=(sppmwdzsssj==1'b0)? ~qgpxkqfdsgs:1'b1;assign
qwfrxhqbhft=wkjnqmhbcwj;assign jzsfkrwzvsw=~sppmwdzsssj;assign bppqndbbfvm=(
smjmfvmgvmf==1'b0&bqhmpqxgttc==1'b0)? 1'b1:1'b0;assign djmcnprrmvb=jktbwpsfwwq;
assign hpqvbfpswtk=gfrqwfndskc;assign phrnkhgdbnj=kpffvbpxmsf;assign
wjpccrvpdms=txjjszxznxd;assign zszmcgpbgkw=xdjpqrrmkhk;assign
dmrgcpvxzhk=zzhpvrjsvfq;assign fzffhdchtwx=svfntzchvmh;assign
nvpcwbhffsn=fjxrvdqhdqm;assign fctrrrgrnzt=rthvrwwpqpk;assign
qgpxkqfdsgs=rbvjpdddhcz;assign wkjnqmhbcwj=xtfkmfbzksq;assign
sppmwdzsssj=hgtrcfcxkrb;assign kftcmqgpwdb=qbrqxpmkpsw;assign
swwxrvfdnmg=nktsnhmjrbx;assign rbkmxbvpcdx=jzsfkrwzvsw;assign
zngtgckbfnx=tvtbbxkbhjr;assign mpnqskgzxzf=hcrjtrhwvbj;assign
zgnrsfkdbqw=qxzrwpjhcww;assign zdbgxnzghqv=dnmrkvrtbjn;assign
kxzjqrqjbxm=svfszvvwxqd;assign ngrmnspbvxf=cnwzzrhdsqv;assign
hxqsbsdhfvm=fgbkzdqjprd;assign mvbwzprdfrk=qwfrxhqbhft;assign
dtdngjrdwms=vkmkdwnprxg;assign ndngwnmwgbm=smjmfvmgvmf;assign
svpbmqwvncp=bqhmpqxgttc;assign jfkkdmfhcdn=gbxmbbjwptj;assign
thsjqmjnffp=tpxkpvnpvvn;assign xgnmbzmtzbb=bppqndbbfvm;endmodule
`timescale 1ns/10ps
module SMTR(CLK,NRESET,EV_CHHOLD,EV_DONE,TR_TRFLAG,TR_DONE,GPI,GPO,INIT_ADDR,
INIT_TR_WR,INIT_DI,INIT_DONE,USER_TR_ADDR,USER_TR_RD,USER_TR_RAM_BUSY,
TR_EV_ADDR,TR_EV_RD,EV_RAM_DO_A,EV_RAM_WR_BUSY_B,TR_RAM_ADDR_A,TR_RAM_RW_A,
TR_RAM_CSN_A,TR_RAM_DI_A,TR_RAM_ADDR_B,TR_RAM_RW_B,TR_RAM_CSN_B,TR_RAM_DI_B,
TR_RAM_DO_B,TR_RAM_WR_BUSY_B);parameter GPI_BITS=0;parameter GPO_BITS=0;
parameter ALLOW_USER_TR=1;parameter EV_ASIZE=9;parameter TR_ASIZE=9;parameter
USE_NON_G3=0;input CLK;input NRESET;input[4:0] EV_CHHOLD;input EV_DONE;output
TR_TRFLAG;wire TR_TRFLAG;output TR_DONE;wire TR_DONE;input[(((2 ** GPI_BITS)*
32)- 1):0] GPI;output[(((2 ** GPO_BITS)* 32)- 1):0] GPO;wire[(((2 ** GPO_BITS)*
32)- 1):0] GPO;input[TR_ASIZE - 1:0] INIT_ADDR;input INIT_TR_WR;input[8:0]
INIT_DI;input INIT_DONE;input[TR_ASIZE - 1:0] USER_TR_ADDR;input USER_TR_RD;
output USER_TR_RAM_BUSY;wire USER_TR_RAM_BUSY;output[EV_ASIZE - 1:0] TR_EV_ADDR;
wire[EV_ASIZE - 1:0] TR_EV_ADDR;output TR_EV_RD;wire TR_EV_RD;input[8:0]
EV_RAM_DO_A;input EV_RAM_WR_BUSY_B;output[TR_ASIZE - 1:0] TR_RAM_ADDR_A;
wire[TR_ASIZE - 1:0] TR_RAM_ADDR_A;output TR_RAM_RW_A;wire TR_RAM_RW_A;output
TR_RAM_CSN_A;wire TR_RAM_CSN_A;output[8:0] TR_RAM_DI_A;wire[8:0] TR_RAM_DI_A;
output[TR_ASIZE - 1:0] TR_RAM_ADDR_B;wire[TR_ASIZE - 1:0] TR_RAM_ADDR_B;output
TR_RAM_RW_B;wire TR_RAM_RW_B;output TR_RAM_CSN_B;wire TR_RAM_CSN_B;output[8:0]
TR_RAM_DI_B;wire[8:0] TR_RAM_DI_B;input[8:0] TR_RAM_DO_B;output
TR_RAM_WR_BUSY_B;wire TR_RAM_WR_BUSY_B;ccfdxrhchsz #(.qjnhkksszkf(GPI_BITS),
.hbgvpqcgtwm(GPO_BITS),.fnscgtbnskd(ALLOW_USER_TR),.xkcbxcnxxhg(EV_ASIZE),
.cvczfvkpmqh(TR_ASIZE),.dgswbvgbtfw(USE_NON_G3))u_ccfdxrhchsz(.jktbwpsfwwq(CLK),
.gfrqwfndskc(NRESET),.kpffvbpxmsf(EV_CHHOLD),.txjjszxznxd(EV_DONE),.zszmcgpbgkw(
TR_TRFLAG),.dmrgcpvxzhk(TR_DONE),.svfntzchvmh(GPI),.nvpcwbhffsn(GPO),
.rthvrwwpqpk(INIT_ADDR),.rbvjpdddhcz(INIT_TR_WR),.xtfkmfbzksq(INIT_DI),
.hgtrcfcxkrb(INIT_DONE),.qbrqxpmkpsw(USER_TR_ADDR),.nktsnhmjrbx(USER_TR_RD),
.rbkmxbvpcdx(USER_TR_RAM_BUSY),.zngtgckbfnx(TR_EV_ADDR),.mpnqskgzxzf(TR_EV_RD),
.qxzrwpjhcww(EV_RAM_DO_A),.dnmrkvrtbjn(EV_RAM_WR_BUSY_B),.kxzjqrqjbxm(
TR_RAM_ADDR_A),.ngrmnspbvxf(TR_RAM_RW_A),.hxqsbsdhfvm(TR_RAM_CSN_A),
.mvbwzprdfrk(TR_RAM_DI_A),.dtdngjrdwms(TR_RAM_ADDR_B),.ndngwnmwgbm(TR_RAM_RW_B),
.svpbmqwvncp(TR_RAM_CSN_B),.jfkkdmfhcdn(TR_RAM_DI_B),.tpxkpvnpvvn(TR_RAM_DO_B),
.xgnmbzmtzbb(TR_RAM_WR_BUSY_B));endmodule
