`timescale 1ns/10ps
//-----------------------------------------------------------------------------
// (c) Copyright 2006 Actel Corporation
//
// name:		assc.v
// function:	ADC Sample Sequence Controller (ASSC) block
// Rev:			1.1 16Jan06
//
//-----------------------------------------------------------------------------
module cwgmnvwgkwq(jhsxkvsxntj,frwvwknzfsq,jjwqjfrdwft,zzpjvzwwhsb,qnbctvbfkpd,
vbbpmtwjcpf,njxkpnbhcck,gdbmrqdmksz,jtbqpdzwgxp,znktskmxcbp,cnwsmzznwfg,
npqxxjzzczt,mbwhmdmvdvt,scwbxhrnqqk,pqgtszncrws,dsjtwjhnpmm,ttxwkrvqgng,
gvvstrjqmht,gxwqrvtqrsn,zbbgcrmtqtc,sdqvwvrqjsk,drsbgqmzxjf,ddzrbwxtmtz,
bzfsctqnpbb,mjvhmcvzbvp,pmvbhqvwrwq,rwkxgkvzqvv,dxvqjcqbdhs,hkrxqhjwxhq,
ckkthrdxjnj,jngrzvhtjvn,qnrghrqprpr,mxthjbrqmws,dhbkrjpmtxp,jfjwdckbtmn,
hfbfjfhdgmn,xzfstqmhgtw,gzjdwwfcmrr,tcvzstsxnrw,nrcsrhsqscv,fwnxxpqwbbg,
hjvjmjctjfx,phgfrhmvkfp,nqxffszqhnd,xkfqnqrczfh,nqqbqrhvpmt,zjcwszqxvcz,
dfkwhgfvjjb,dvpdhdwcqdp);parameter xjktwffhchr=6;parameter fkjndmkvkwz=1;
parameter cmbcnjphkbk=0;parameter stwqmbncvtq=0;parameter mpxpbvmdcxm=4'h0;
parameter ffmnjxjkfrw=0;parameter wkfwgmvbxzj=0;parameter pddssvvsnzg=0;
parameter ddbvkcqswhr=8'h00;parameter wgqkjfptpfc=0;parameter grqhmwdrszn=8'h00;
parameter mrgvxbvqvzg=12'h000;parameter dxrqrwfkkfs=12'h000;input jhsxkvsxntj;
input frwvwknzfsq;input jjwqjfrdwft;input zzpjvzwwhsb;input qnbctvbfkpd;input
vbbpmtwjcpf;input[8:0] njxkpnbhcck;input gdbmrqdmksz;input[8:0] jtbqpdzwgxp;
input znktskmxcbp;input[8:0] cnwsmzznwfg;input npqxxjzzczt;output mbwhmdmvdvt;
wire mbwhmdmvdvt;input[8:0] scwbxhrnqqk;input pqgtszncrws;output[8:0]
dsjtwjhnpmm;wire[8:0] dsjtwjhnpmm;output ttxwkrvqgng;wire ttxwkrvqgng;output
gvvstrjqmht;wire gvvstrjqmht;output[8:0] gxwqrvtqrsn;wire[8:0] gxwqrvtqrsn;
output[8:0] zbbgcrmtqtc;wire[8:0] zbbgcrmtqtc;output sdqvwvrqjsk;wire
sdqvwvrqjsk;output drsbgqmzxjf;wire drsbgqmzxjf;output[8:0] ddzrbwxtmtz;
wire[8:0] ddzrbwxtmtz;input[8:0] bzfsctqnpbb;output mjvhmcvzbvp;wire
mjvhmcvzbvp;input pmvbhqvwrwq;input rwkxgkvzqvv;input dxvqjcqbdhs;
input[xjktwffhchr - 1:0] hkrxqhjwxhq;output[xjktwffhchr - 1:0] ckkthrdxjnj;
wire[xjktwffhchr - 1:0] ckkthrdxjnj;output jngrzvhtjvn;wire jngrzvhtjvn;output
qnrghrqprpr;wire qnrghrqprpr;output mxthjbrqmws;wire mxthjbrqmws;output
dhbkrjpmtxp;wire dhbkrjpmtxp;output jfjwdckbtmn;wire jfjwdckbtmn;output
hfbfjfhdgmn;wire hfbfjfhdgmn;input xzfstqmhgtw;input gzjdwwfcmrr;input[11:0]
tcvzstsxnrw;output nrcsrhsqscv;wire nrcsrhsqscv;output fwnxxpqwbbg;wire
fwnxxpqwbbg;output hjvjmjctjfx;wire hjvjmjctjfx;output[3:0] phgfrhmvkfp;
wire[3:0] phgfrhmvkfp;output nqxffszqhnd;wire nqxffszqhnd;output[4:0]
xkfqnqrczfh;wire[4:0] xkfqnqrczfh;output[7:0] nqqbqrhvpmt;wire[7:0] nqqbqrhvpmt;
output[7:0] zjcwszqxvcz;wire[7:0] zjcwszqxvcz;output[9:0] dfkwhgfvjjb;wire[9:0]
dfkwhgfvjjb;output[10:0] dvpdhdwcqdp;wire[10:0] dvpdhdwcqdp;parameter[2:0]
nmpxrfbcbqj=3'b000;parameter[2:0] gbvndgmxkvf=3'b001;parameter[2:0]
ztczsngwzjq=3'b010;parameter[2:0] gjrksvzkctx=3'b011;parameter[2:0]
kkwhtdxpfcp=3'b100;parameter[2:0] cjbnnzskwrb=3'b101;parameter[2:0]
sxqjjhzqbmp=3'b110;parameter[8:0] rtdmmjrdhfg=9'b000000111;parameter[8:0]
mxjpqnbkhbn=9'b000001111;parameter[3:0] vxddmwtffnz=4'b0001;parameter[3:0]
sjvdjfrzzbj=4'b0010;parameter[3:0] pspvgzzgfxv=4'b0011;parameter[3:0]
cqvznpmfhvc=4'b0100;parameter[3:0] kcknkcbjcpc=4'b0101;parameter[3:0]
rchmmjngpnx=4'b0110;parameter[3:0] zpxkwkxjdrs=4'b0111;parameter[3:0]
frwbgvndtnq=4'b1000;parameter[5:0] gcttgrstxjw=6'b000000;parameter[7:0]
dctrnrxhbkv=8'b11111111;wire xswxpcrrbtv;wire tjtrqzgznvn;wire[8:0] rptnfwdpbtv;
wire rtrsvmkfskx;wire[8:0] zbcbwffnxtb;wire qnfjbsxgpbz;wire[8:0] gkwftmhmpbh;
wire thdjbbftfdj;wire zgwtctbgrwj;wire[8:0] drbpjpckvxr;wire bhwgssbsrff;
wire[8:0] ncswnvwrdxs;wire qntkzxxnxhj;wire qbfzhmnchpj;wire[8:0] qqzscjzwfnj;
wire[8:0] wvqcmcccxvp;wire fkfvpwkjphd;wire wqkmcpdcpnr;reg[8:0] dqghkjkfvsq;
wire[8:0] nqdbdhqkkzh;wire wwskjkktxkh;wire mjmpphwgnbk;wire srtbxpvzqxm;wire
bnrdpgkdfht;wire[xjktwffhchr - 1:0] rnzcbvpdrgm;wire[xjktwffhchr - 1:0]
mzqxzvskmff;wire swqkmpwmwsp;wire ktprkfgtqjh;wire djxcbxghxwh;wire jpbtxxhrndw;
wire ksdpxpjqwcz;wire jnfvrbnvhsv;wire jwpbpqkxbzx;wire[11:0] hkcmpbxfghz;wire
rzhkmkpfzzs;wire scvxgvwggvp;wire mztwwrmrsfm;wire[3:0] sqswsvprggb;wire
xftbkgdtrgg;wire[4:0] xfdndpppmfr;wire[7:0] rtkqttvxrnd;wire[7:0] hwzrkjbshms;
wire[9:0] jkrspkvdvtz;wire[10:0] qdkpgfqvsjs;parameter[3:0] zhnxfbzxsbj=0;
parameter[3:0] wdtzqfzkkgm=1;parameter[3:0] jtdphjkdvxc=2;parameter[3:0]
jwxkmdjhhpq=3;parameter[3:0] zwrgnbvmcnr=4;parameter[3:0] sgrwvhhgmhb=5;
parameter[3:0] mqtzwqphqww=6;parameter[3:0] zhfkvmkksgr=7;parameter[3:0]
whcjzssjhnc=8;parameter[3:0] kqsqjgbvbnm=9;parameter[3:0] rpfwfmxmjvg=10;
parameter[3:0] wvcvnczbrbf=11;parameter[3:0] mdxpfrshkwv=12;parameter[3:0]
ccznwztvwgr=13;parameter[3:0] fszzjjtmntx=14;reg[3:0] zwnnqcvfccb;reg[3:0]
zgvjznqtkmv;reg rdprkmwfjqq;reg bvzjfmgvnzp;reg vpprztfztfv;reg qkzsmdfkvxj;reg
gvkkqbhghsw;reg fkgscznxtsm;reg nmmxcgtgdws;reg fjvxxdqqwgk;reg bsrvxsspcfd;reg
prmfbzxmsxf;wire mkcbzxzcrgq;reg mbqdggcpxtd;reg gvghxwwqjrn;reg zknfrhrhgvn;
reg kfczkwmnkfn;wire[xjktwffhchr - 1:0] kcnsckbghfd;reg[xjktwffhchr - 1:0]
gjpxswjjjjj;reg xbpdhbvbtmw;reg thvjrqnxtqb;wire cstdbndzxqp;wire nhnhrnkghxj;
wire rhbzpsxhwms;wire[2:0] fdvtjdxvwkm;reg[6:0] fhsmfrqmswf;wire hxgvkfbtjfr;
reg mdcbfmzzrps;reg wvkxbspgvsf;wire ksqwmtsqddq;wire[4:0] rcggfhvmwvx;reg[4:0]
jrdxqdwndbg;reg ffpgwqntrcq;reg prgqnmxpkfr;reg jjqqfszbdzb;wire[3:0]
vzxpxrpkhzx;reg rrmbcmwhzvp;wire[4:0] dzxbxgkbzxr;reg[4:0] ngwjhwffdrb;reg
btqdnqzvnwm;wire[7:0] bhctdwvbtbw;reg[7:0] cmdprjtzcrv;reg gzmcjjcpmtm;reg
txstwbqtvxh;wire[8:0] kkrdgkrhfnp;reg[2:0] wrmchxtnrsq;reg[8:0] pdmrrrmtgwp;reg
btxdzwbbqvw;reg kngwfszvswb;wire[3:0] nccttdbckvx;reg[3:0] mcccbsrsbmn;reg
rpvtngchbzs;wire xnpqnfjkwzn;reg cnczrfjdnnk;reg rvmqmqqcnkr;wire[7:0]
rwhfvqzmqmw;reg[7:0] hnfknqnpjhb;reg rqntrxgbssd;reg[xjktwffhchr - 1:0]
jqpswnvgwgd;wire mvtkdjfcbxd;reg gsbzbrrsfpj;reg nvmzjtrjcbj;reg qqkhrhpjsvf;
wire jpnvjvsfrbr;wire ghvwswhqjgh;wire hbsshstmrmm;wire ztkgcmnwzsm;wire
mqndjsxwfnc;wire skcgsffttcv;reg[17:0] hdfsppmkkfr;wire[11:0] zkswmvkkmcc;reg
ssdswfqkbgr;reg bjbssrxpnzz;reg htqbzwtrpxj;reg pbpfdkhvxdb;reg vhvdmsthqvg;
wire kqkfmcndsvr;wire gkwwhjwcbtz;reg xqhtcpzgsdn;wire[9:0] kpwjkbvbqjg;
reg[9:0] hxjrdtjfjrt;wire[10:0] hscbkcfzfwd;reg[10:0] dvpgmbcxcxr;reg
rgqpfbkzbqs;wire zdpgsmgjnxm;wire cbfpbtkwpjc;wire tbrhtjdgxfb;wire vdjdxtwctxg;
wire rhsfvgwdsfp;wire fvssrrcjgsb;wire wsshgnvvnmk;reg fbqggfmhjcw;reg
txjpxgscbzx;assign vzxpxrpkhzx=nqdbdhqkkzh[8:5];assign
dzxbxgkbzxr=nqdbdhqkkzh[4:0];assign bhctdwvbtbw=nqdbdhqkkzh[7:0];assign
fdvtjdxvwkm=nqdbdhqkkzh[7:5];assign rcggfhvmwvx=nqdbdhqkkzh[4:0];assign
nccttdbckvx=nqdbdhqkkzh[6:3];assign xnpqnfjkwzn=nqdbdhqkkzh[0];assign
rwhfvqzmqmw=nqdbdhqkkzh[7:0];always @(posedge xswxpcrrbtv or negedge
tjtrqzgznvn)begin if(tjtrqzgznvn==1'b0)begin qkzsmdfkvxj<=1'b0;
bvzjfmgvnzp<=1'b0;vpprztfztfv<=1'b0;fkgscznxtsm<=1'b1;end else begin
bvzjfmgvnzp<=jnfvrbnvhsv;vpprztfztfv<=bvzjfmgvnzp;fkgscznxtsm<=rdprkmwfjqq&
gvkkqbhghsw;if(rdprkmwfjqq==1'b1&gvkkqbhghsw==1'b1)begin qkzsmdfkvxj<=1'b0;end
else if(vpprztfztfv==1'b1&bvzjfmgvnzp==1'b0)begin qkzsmdfkvxj<=1'b1;end end end
always @(posedge xswxpcrrbtv or negedge tjtrqzgznvn)begin if(tjtrqzgznvn==1'b0)
begin prmfbzxmsxf<=1'b0;end else begin if(mkcbzxzcrgq==1'b1|qnfjbsxgpbz==1'b0)
begin prmfbzxmsxf<=1'b0;end else if(bnrdpgkdfht==1'b1)begin prmfbzxmsxf<=1'b1;
end end end assign mkcbzxzcrgq=prmfbzxmsxf&rdprkmwfjqq&mbqdggcpxtd;always @(
posedge xswxpcrrbtv or negedge tjtrqzgznvn)begin if(tjtrqzgznvn==1'b0)begin
jqpswnvgwgd<={xjktwffhchr - 1-(0)+1{1'b0}};end else begin if(bnrdpgkdfht==1'b1&
prmfbzxmsxf==1'b0)begin jqpswnvgwgd<=rnzcbvpdrgm;end end end always @(posedge
xswxpcrrbtv or negedge tjtrqzgznvn)begin if(tjtrqzgznvn==1'b0)begin
gvghxwwqjrn<=1'b0;end else begin if(mkcbzxzcrgq==1'b1|qnfjbsxgpbz==1'b0)begin
gvghxwwqjrn<=1'b0;end else if(zknfrhrhgvn==1'b1)begin gvghxwwqjrn<=1'b1;end end
end assign cstdbndzxqp=rdprkmwfjqq&(xbpdhbvbtmw|fjvxxdqqwgk);assign
nhnhrnkghxj=rdprkmwfjqq&thvjrqnxtqb;assign rhbzpsxhwms=nhnhrnkghxj&jjqqfszbdzb;
always @(posedge xswxpcrrbtv or negedge tjtrqzgznvn)begin if(tjtrqzgznvn==1'b0)
begin gjpxswjjjjj<={xjktwffhchr - 1-(0)+1{1'b0}};end else begin if(
qnfjbsxgpbz==1'b0)begin gjpxswjjjjj<={xjktwffhchr - 1-(0)+1{1'b0}};end else if(
mkcbzxzcrgq==1'b1)begin gjpxswjjjjj<=(jqpswnvgwgd);end else if(
cstdbndzxqp==1'b1)begin gjpxswjjjjj<={xjktwffhchr - 1-(0)+1{1'b0}};end else if(
rhbzpsxhwms==1'b1)begin gjpxswjjjjj<=gjpxswjjjjj + 1;end end end assign
mvtkdjfcbxd=rhbzpsxhwms|cstdbndzxqp|mkcbzxzcrgq;always @(posedge xswxpcrrbtv or
negedge tjtrqzgznvn)begin if(tjtrqzgznvn==1'b0)begin jjqqfszbdzb<=1'b0;end else
begin if(nhnhrnkghxj==1'b1)begin jjqqfszbdzb<=1'b1;end end end assign
hxgvkfbtjfr=mkcbzxzcrgq|cstdbndzxqp|~qnfjbsxgpbz;generate if(cmbcnjphkbk==1)
begin:zwmvjmfkvsr always @(posedge xswxpcrrbtv or negedge tjtrqzgznvn)begin if(
tjtrqzgznvn==1'b0)begin fhsmfrqmswf<={7{1'b0}};end else begin if(
hxgvkfbtjfr==1'b1)begin fhsmfrqmswf<={7{1'b0}};end else if(mdcbfmzzrps==1'b1)
begin case(fdvtjdxvwkm)3'b001:begin fhsmfrqmswf<=7'b0000001;end 3'b010:begin
fhsmfrqmswf<=7'b0000011;end 3'b011:begin fhsmfrqmswf<=7'b0000111;end
3'b100:begin fhsmfrqmswf<=7'b0001111;end 3'b101:begin fhsmfrqmswf<=7'b0011111;
end 3'b110:begin fhsmfrqmswf<=7'b0111111;end 3'b111:begin
fhsmfrqmswf<=7'b1111111;end default:begin fhsmfrqmswf<=7'b0000000;end endcase
end else if(wvkxbspgvsf==1'b1)begin fhsmfrqmswf<=fhsmfrqmswf - 1;end end end
end endgenerate generate if(cmbcnjphkbk==0)begin:xqwfzkhmmbg wire[6:0]
wire_xhdl21={7{1'b0}};always @(wire_xhdl21)begin fhsmfrqmswf<=wire_xhdl21;end
end endgenerate assign ksqwmtsqddq=(fhsmfrqmswf==7'b0000000)? 1'b1:1'b0;assign
zdpgsmgjnxm=mjmpphwgnbk&srtbxpvzqxm&qnfjbsxgpbz;assign cbfpbtkwpjc=gkwwhjwcbtz|
~qnfjbsxgpbz;always @(posedge xswxpcrrbtv or negedge tjtrqzgznvn)begin if(
tjtrqzgznvn==1'b0)begin rgqpfbkzbqs<=1'b0;end else begin if(cbfpbtkwpjc==1'b1)
begin rgqpfbkzbqs<=1'b0;end else if(zdpgsmgjnxm==1'b1)begin rgqpfbkzbqs<=1'b1;
end end end always @(mjmpphwgnbk or rgqpfbkzbqs or qnfjbsxgpbz)begin if(
mjmpphwgnbk==1'b1)begin rdprkmwfjqq<=rgqpfbkzbqs;end else begin
rdprkmwfjqq<=qnfjbsxgpbz;end end always @(posedge xswxpcrrbtv or negedge
tjtrqzgznvn)begin if(tjtrqzgznvn==1'b0)begin prgqnmxpkfr<=1'b0;end else begin
if(qnfjbsxgpbz==1'b1)begin if(rvmqmqqcnkr==1'b1)begin prgqnmxpkfr<=1'b1;end end
else begin prgqnmxpkfr<=1'b0;end end end generate if(stwqmbncvtq==0)
begin:gwmrkrjvnhx always @(posedge xswxpcrrbtv or negedge tjtrqzgznvn)begin if(
tjtrqzgznvn==1'b0)begin mcccbsrsbmn<={4{1'b0}};end else begin if(
kngwfszvswb==1'b1)begin mcccbsrsbmn<=nccttdbckvx;end end end end endgenerate
generate if(stwqmbncvtq==1)begin:fptzssbqkgv wire[3:0] wire_xhdl29=(mpxpbvmdcxm)
;always @(wire_xhdl29)begin mcccbsrsbmn<=wire_xhdl29;end end endgenerate
generate if(ffmnjxjkfrw==0)begin:szwqkwzzpps always @(posedge xswxpcrrbtv or
negedge tjtrqzgznvn)begin if(tjtrqzgznvn==1'b0)begin cnczrfjdnnk<=1'b0;end else
begin if(rpvtngchbzs==1'b1)begin cnczrfjdnnk<=xnpqnfjkwzn;end end end end
endgenerate generate if(ffmnjxjkfrw==1)begin:jtcsjjphrgw if(wkfwgmvbxzj==0)
begin:tftxcczbhvm wire wire_xhdl31=1'b0;always @(wire_xhdl31)begin
cnczrfjdnnk<=wire_xhdl31;end end if(wkfwgmvbxzj !=0)begin:bqkbtcsrxzk wire
wire_xhdl32=1'b1;always @(wire_xhdl32)begin cnczrfjdnnk<=wire_xhdl32;end end
end endgenerate generate if(wgqkjfptpfc==0)begin:fwnqhgtfsvk always @(posedge
xswxpcrrbtv or negedge tjtrqzgznvn)begin if(tjtrqzgznvn==1'b0)begin
hnfknqnpjhb<={8{1'b0}};end else begin if(rvmqmqqcnkr==1'b1)begin
hnfknqnpjhb<=rwhfvqzmqmw;end end end end endgenerate generate if(wgqkjfptpfc==1)
begin:hjjdqbcdqmg wire[7:0] wire_xhdl34=(grqhmwdrszn);always @(wire_xhdl34)
begin hnfknqnpjhb<=wire_xhdl34;end end endgenerate always @(posedge xswxpcrrbtv
or negedge tjtrqzgznvn)begin if(tjtrqzgznvn==1'b0)begin ngwjhwffdrb<={5{1'b0}};
end else begin if(rrmbcmwhzvp==1'b1)begin ngwjhwffdrb<=dzxbxgkbzxr;end end end
always @(posedge xswxpcrrbtv or negedge tjtrqzgznvn)begin if(tjtrqzgznvn==1'b0)
begin vhvdmsthqvg<=1'b0;end else begin if(xqhtcpzgsdn==1'b1|qnfjbsxgpbz==1'b0)
begin vhvdmsthqvg<=1'b0;end else if(rrmbcmwhzvp==1'b1)begin vhvdmsthqvg<=1'b1;
end end end assign kqkfmcndsvr=nvmzjtrjcbj&~wvkxbspgvsf;always @(posedge
xswxpcrrbtv or negedge tjtrqzgznvn)begin if(tjtrqzgznvn==1'b0)begin
bsrvxsspcfd<=1'b0;end else begin if(fjvxxdqqwgk==1'b1|qnfjbsxgpbz==1'b0)begin
bsrvxsspcfd<=1'b0;end else if(nmmxcgtgdws==1'b1)begin bsrvxsspcfd<=1'b1;end end
end assign gkwwhjwcbtz=kqkfmcndsvr|zknfrhrhgvn|kfczkwmnkfn;always @(posedge
xswxpcrrbtv or negedge tjtrqzgznvn)begin if(tjtrqzgznvn==1'b0)begin
xqhtcpzgsdn<=1'b0;end else begin xqhtcpzgsdn<=gkwwhjwcbtz;end end generate if(
pddssvvsnzg==0)begin:tdvksrmfdhd always @(posedge xswxpcrrbtv or negedge
tjtrqzgznvn)begin if(tjtrqzgznvn==1'b0)begin cmdprjtzcrv<={8{1'b0}};end else
begin if(btqdnqzvnwm==1'b1)begin cmdprjtzcrv<=bhctdwvbtbw;end end end end
endgenerate generate if(pddssvvsnzg==1)begin:vrhjfxwjghn wire[7:0] wire_xhdl42=(
ddbvkcqswhr);always @(wire_xhdl42)begin cmdprjtzcrv<=wire_xhdl42;end end
endgenerate always @(posedge xswxpcrrbtv or negedge tjtrqzgznvn)begin if(
tjtrqzgznvn==1'b0)begin jrdxqdwndbg<={5{1'b0}};end else begin if(
ffpgwqntrcq==1'b1)begin jrdxqdwndbg<=rcggfhvmwvx;end end end assign
zkswmvkkmcc=hkcmpbxfghz;always @(jrdxqdwndbg or zkswmvkkmcc)begin case(
jrdxqdwndbg[3:0])4'b0001:begin hdfsppmkkfr<={jrdxqdwndbg[4],4'b0000,
zkswmvkkmcc[11:0],1'b0};end 4'b0010:begin hdfsppmkkfr<={jrdxqdwndbg[4],3'b000,
zkswmvkkmcc[11:0],2'b00};end 4'b0011:begin hdfsppmkkfr<={jrdxqdwndbg[4],2'b00,
zkswmvkkmcc[11:0],3'b000};end 4'b0100:begin hdfsppmkkfr<={jrdxqdwndbg[4],1'b0,
zkswmvkkmcc[11:0],4'b0000};end 4'b0101:begin hdfsppmkkfr<={jrdxqdwndbg[4],
zkswmvkkmcc[11:0],5'b00000};end 4'b0110:begin hdfsppmkkfr<={jrdxqdwndbg[4],
zkswmvkkmcc[10:0],6'b000000};end 4'b0111:begin hdfsppmkkfr<={jrdxqdwndbg[4],
zkswmvkkmcc[9:0],7'b0000000};end 4'b1001:begin hdfsppmkkfr<={jrdxqdwndbg[4],
6'b000000,zkswmvkkmcc[11:1]};end 4'b1010:begin hdfsppmkkfr<={jrdxqdwndbg[4],
7'b0000000,zkswmvkkmcc[11:2]};end 4'b1011:begin hdfsppmkkfr<={jrdxqdwndbg[4],
8'b00000000,zkswmvkkmcc[11:3]};end 4'b1100:begin hdfsppmkkfr<={jrdxqdwndbg[4],
9'b000000000,zkswmvkkmcc[11:4]};end 4'b1101:begin hdfsppmkkfr<={jrdxqdwndbg[4],
10'b0000000000,zkswmvkkmcc[11:5]};end 4'b1110:begin
hdfsppmkkfr<={jrdxqdwndbg[4],11'b00000000000,zkswmvkkmcc[11:6]};end
4'b1111:begin hdfsppmkkfr<={jrdxqdwndbg[4],12'b000000000000,zkswmvkkmcc[11:7]};
end default:begin hdfsppmkkfr<={jrdxqdwndbg[4],5'b00000,zkswmvkkmcc[11:0]};end
endcase end assign ztkgcmnwzsm=(mcccbsrsbmn[1:0]==2'b10)? 1'b1:1'b0;assign
mqndjsxwfnc=(mcccbsrsbmn[1:0]==2'b00)? 1'b1:1'b0;assign skcgsffttcv=(
mcccbsrsbmn[1:0]==2'b01)? 1'b1:1'b0;assign jpnvjvsfrbr=(
zkswmvkkmcc[11:4]==dctrnrxhbkv)? 1'b1:1'b0;assign ghvwswhqjgh=(
jpnvjvsfrbr==1'b1&zkswmvkkmcc[3:2]==2'b11)? 1'b1:1'b0;assign hbsshstmrmm=(
ghvwswhqjgh==1'b1&zkswmvkkmcc[1:0]==2'b11)? 1'b1:1'b0;always @(posedge
xswxpcrrbtv or negedge tjtrqzgznvn)begin if(tjtrqzgznvn==1'b0)begin
gsbzbrrsfpj<=1'b0;end else begin if(qqkhrhpjsvf==1'b1)begin gsbzbrrsfpj<=1'b0;
end else if(nvmzjtrjcbj==1'b1)begin gsbzbrrsfpj<=(ztkgcmnwzsm&jpnvjvsfrbr)|(
mqndjsxwfnc&ghvwswhqjgh)|(skcgsffttcv&hbsshstmrmm);end end end always @(
zwnnqcvfccb or qkzsmdfkvxj or prgqnmxpkfr or bvzjfmgvnzp or wsshgnvvnmk or
vzxpxrpkhzx or jwpbpqkxbzx or ksqwmtsqddq or prmfbzxmsxf or bsrvxsspcfd or
jjqqfszbdzb)begin zgvjznqtkmv<=zwnnqcvfccb;wrmchxtnrsq<={3{1'b0}};
gzmcjjcpmtm<=1'b1;txstwbqtvxh<=1'b1;pdmrrrmtgwp<={9{1'b0}};btxdzwbbqvw<=1'b0;
gvkkqbhghsw<=1'b0;nmmxcgtgdws<=1'b0;fjvxxdqqwgk<=1'b0;kngwfszvswb<=1'b0;
rpvtngchbzs<=1'b0;rvmqmqqcnkr<=1'b0;rrmbcmwhzvp<=1'b0;btqdnqzvnwm<=1'b0;
zknfrhrhgvn<=1'b0;kfczkwmnkfn<=1'b0;xbpdhbvbtmw<=1'b0;thvjrqnxtqb<=1'b0;
mdcbfmzzrps<=1'b0;rqntrxgbssd<=1'b0;mbqdggcpxtd<=1'b0;wvkxbspgvsf<=1'b0;
ffpgwqntrcq<=1'b0;nvmzjtrjcbj<=1'b0;qqkhrhpjsvf<=1'b0;ssdswfqkbgr<=1'b0;
bjbssrxpnzz<=1'b0;txjpxgscbzx<=1'b0;case(zwnnqcvfccb)zhnxfbzxsbj:begin if(
qkzsmdfkvxj==1'b1)begin thvjrqnxtqb<=~jjqqfszbdzb;if(prgqnmxpkfr==1'b1)begin
wrmchxtnrsq<=nmpxrfbcbqj;gzmcjjcpmtm<=1'b0;zgvjznqtkmv<=jwxkmdjhhpq;end else
begin pdmrrrmtgwp<=rtdmmjrdhfg;gzmcjjcpmtm<=1'b0;btxdzwbbqvw<=1'b1;
zgvjznqtkmv<=wdtzqfzkkgm;end end else begin gvkkqbhghsw<=~bvzjfmgvnzp;
zgvjznqtkmv<=ccznwztvwgr;end end wdtzqfzkkgm:begin kngwfszvswb<=1'b1;
rpvtngchbzs<=1'b1;pdmrrrmtgwp<=mxjpqnbkhbn;gzmcjjcpmtm<=1'b0;btxdzwbbqvw<=1'b1;
zgvjznqtkmv<=jtdphjkdvxc;end jtdphjkdvxc:begin rvmqmqqcnkr<=1'b1;
zgvjznqtkmv<=zhnxfbzxsbj;end jwxkmdjhhpq:begin case(vzxpxrpkhzx)
vxddmwtffnz:begin qqkhrhpjsvf<=1'b1;rrmbcmwhzvp<=1'b1;wrmchxtnrsq<=gbvndgmxkvf;
gzmcjjcpmtm<=1'b0;zgvjznqtkmv<=zwrgnbvmcnr;end sjvdjfrzzbj:begin
qqkhrhpjsvf<=1'b1;nmmxcgtgdws<=1'b1;rrmbcmwhzvp<=1'b1;wrmchxtnrsq<=gbvndgmxkvf;
gzmcjjcpmtm<=1'b0;zgvjznqtkmv<=zwrgnbvmcnr;end pspvgzzgfxv:begin
gvkkqbhghsw<=~bvzjfmgvnzp;zgvjznqtkmv<=ccznwztvwgr;end cqvznpmfhvc:begin
zknfrhrhgvn<=1'b1;zgvjznqtkmv<=fszzjjtmntx;end kcknkcbjcpc:begin
kfczkwmnkfn<=1'b1;zgvjznqtkmv<=fszzjjtmntx;end rchmmjngpnx:begin
xbpdhbvbtmw<=1'b1;zgvjznqtkmv<=zhnxfbzxsbj;end zpxkwkxjdrs:begin
ssdswfqkbgr<=1'b1;qqkhrhpjsvf<=1'b1;rrmbcmwhzvp<=1'b1;wrmchxtnrsq<=gbvndgmxkvf;
gzmcjjcpmtm<=1'b0;zgvjznqtkmv<=zwrgnbvmcnr;end frwbgvndtnq:begin
bjbssrxpnzz<=1'b1;qqkhrhpjsvf<=1'b1;rrmbcmwhzvp<=1'b1;wrmchxtnrsq<=gbvndgmxkvf;
gzmcjjcpmtm<=1'b0;zgvjznqtkmv<=zwrgnbvmcnr;end default:begin thvjrqnxtqb<=1'b1;
zgvjznqtkmv<=zhnxfbzxsbj;end endcase end zwrgnbvmcnr:begin btqdnqzvnwm<=1'b1;
wrmchxtnrsq<=ztczsngwzjq;gzmcjjcpmtm<=1'b0;zgvjznqtkmv<=sgrwvhhgmhb;end
sgrwvhhgmhb:begin mdcbfmzzrps<=1'b1;ffpgwqntrcq<=1'b1;rqntrxgbssd<=1'b1;
zgvjznqtkmv<=mqtzwqphqww;end mqtzwqphqww:begin zgvjznqtkmv<=zhfkvmkksgr;end
zhfkvmkksgr:begin if(jwpbpqkxbzx==1'b1)begin zgvjznqtkmv<=zhfkvmkksgr;end else
begin zgvjznqtkmv<=whcjzssjhnc;end end whcjzssjhnc:begin
wrmchxtnrsq<=gjrksvzkctx;gzmcjjcpmtm<=1'b0;txstwbqtvxh<=1'b0;
zgvjznqtkmv<=kqsqjgbvbnm;end kqsqjgbvbnm:begin wrmchxtnrsq<=kkwhtdxpfcp;
gzmcjjcpmtm<=1'b0;txstwbqtvxh<=1'b0;zgvjznqtkmv<=rpfwfmxmjvg;end
rpfwfmxmjvg:begin wrmchxtnrsq<=cjbnnzskwrb;gzmcjjcpmtm<=1'b0;txstwbqtvxh<=1'b0;
zgvjznqtkmv<=wvcvnczbrbf;end wvcvnczbrbf:begin wrmchxtnrsq<=sxqjjhzqbmp;
gzmcjjcpmtm<=1'b0;txstwbqtvxh<=1'b0;if(ksqwmtsqddq==1'b1)begin if(
wsshgnvvnmk==1'b1)begin txjpxgscbzx<=1'b1;zgvjznqtkmv<=mdxpfrshkwv;end else
begin if(prmfbzxmsxf==1'b1)begin mbqdggcpxtd<=1'b1;end else begin
thvjrqnxtqb<=1'b1;end fjvxxdqqwgk<=bsrvxsspcfd;zgvjznqtkmv<=zhnxfbzxsbj;end end
else begin if(prmfbzxmsxf==1'b1)begin fjvxxdqqwgk<=bsrvxsspcfd;
mbqdggcpxtd<=1'b1;zgvjznqtkmv<=zhnxfbzxsbj;end else begin wvkxbspgvsf<=1'b1;
rqntrxgbssd<=1'b1;zgvjznqtkmv<=mqtzwqphqww;end end nvmzjtrjcbj<=~wsshgnvvnmk;
end mdxpfrshkwv:begin if(wsshgnvvnmk==1'b1)begin txjpxgscbzx<=1'b1;
zgvjznqtkmv<=mdxpfrshkwv;end else begin if(prmfbzxmsxf==1'b1)begin
mbqdggcpxtd<=1'b1;end else begin thvjrqnxtqb<=1'b1;end fjvxxdqqwgk<=bsrvxsspcfd;
zgvjznqtkmv<=zhnxfbzxsbj;nvmzjtrjcbj<=1'b1;end end ccznwztvwgr:begin if(
qkzsmdfkvxj==1'b1)begin if(prmfbzxmsxf==1'b1)begin mbqdggcpxtd<=1'b1;end else
begin thvjrqnxtqb<=1'b1;end zgvjznqtkmv<=zhnxfbzxsbj;end else begin
zgvjznqtkmv<=ccznwztvwgr;end end fszzjjtmntx:begin if(prmfbzxmsxf==1'b1)begin
mbqdggcpxtd<=1'b1;zgvjznqtkmv<=zhnxfbzxsbj;end else begin
zgvjznqtkmv<=fszzjjtmntx;end end endcase end always @(posedge xswxpcrrbtv or
negedge tjtrqzgznvn)begin if(tjtrqzgznvn==1'b0)begin zwnnqcvfccb<=zhnxfbzxsbj;
end else begin if(qnfjbsxgpbz==1'b0)begin zwnnqcvfccb<=zhnxfbzxsbj;end else if(
rdprkmwfjqq==1'b1)begin zwnnqcvfccb<=zgvjznqtkmv;end end end assign
wsshgnvvnmk=(tbrhtjdgxfb==1'b1|vdjdxtwctxg==1'b1|rhsfvgwdsfp==1'b1|
fvssrrcjgsb==1'b1)? 1'b1:1'b0;always @(posedge xswxpcrrbtv or negedge
tjtrqzgznvn)begin if(tjtrqzgznvn==1'b0)begin fbqggfmhjcw<=1'b0;end else begin
fbqggfmhjcw<=txjpxgscbzx;end end always @(posedge xswxpcrrbtv or negedge
tjtrqzgznvn)begin if(tjtrqzgznvn==1'b0)begin htqbzwtrpxj<=1'b0;
hxjrdtjfjrt<={10{1'b0}};end else begin htqbzwtrpxj<=ssdswfqkbgr;if(
xqhtcpzgsdn==1'b1|qnfjbsxgpbz==1'b0)begin hxjrdtjfjrt<={10{1'b0}};end else if(
htqbzwtrpxj==1'b1)begin case(ngwjhwffdrb)5'b00010:begin
hxjrdtjfjrt<=10'b0000000001;end 5'b00101:begin hxjrdtjfjrt<=10'b0000000010;end
5'b01000:begin hxjrdtjfjrt<=10'b0000000100;end 5'b01011:begin
hxjrdtjfjrt<=10'b0000001000;end 5'b01110:begin hxjrdtjfjrt<=10'b0000010000;end
5'b10001:begin hxjrdtjfjrt<=10'b0000100000;end 5'b10100:begin
hxjrdtjfjrt<=10'b0001000000;end 5'b10111:begin hxjrdtjfjrt<=10'b0010000000;end
5'b11010:begin hxjrdtjfjrt<=10'b0100000000;end 5'b11101:begin
hxjrdtjfjrt<=10'b1000000000;end default:begin hxjrdtjfjrt<=10'b0000000000;end
endcase end end end genvar i;generate for(i=0;i<=9;i=i + 1)begin:ssnfkkdqjqz if(
(mrgvxbvqvzg&(2 ** i))==0)begin:zzwnfvrtpjd assign kpwjkbvbqjg[i]=1'b0;end if((
mrgvxbvqvzg&(2 ** i))==(2 ** i))begin:chgqmkwmwjq assign
kpwjkbvbqjg[i]=hxjrdtjfjrt[i];end end endgenerate always @(posedge xswxpcrrbtv
or negedge tjtrqzgznvn)begin if(tjtrqzgznvn==1'b0)begin pbpfdkhvxdb<=1'b0;
dvpgmbcxcxr<={11{1'b0}};end else begin pbpfdkhvxdb<=bjbssrxpnzz;if(
xqhtcpzgsdn==1'b1|qnfjbsxgpbz==1'b0)begin dvpgmbcxcxr<={11{1'b0}};end else if(
pbpfdkhvxdb==1'b1)begin case(ngwjhwffdrb)5'b00011:begin
dvpgmbcxcxr<=11'b00000000001;end 5'b00110:begin dvpgmbcxcxr<=11'b00000000010;
end 5'b01001:begin dvpgmbcxcxr<=11'b00000000100;end 5'b01100:begin
dvpgmbcxcxr<=11'b00000001000;end 5'b01111:begin dvpgmbcxcxr<=11'b00000010000;
end 5'b10010:begin dvpgmbcxcxr<=11'b00000100000;end 5'b10101:begin
dvpgmbcxcxr<=11'b00001000000;end 5'b11000:begin dvpgmbcxcxr<=11'b00010000000;
end 5'b11011:begin dvpgmbcxcxr<=11'b00100000000;end 5'b11110:begin
dvpgmbcxcxr<=11'b01000000000;end 5'b11111:begin dvpgmbcxcxr<=11'b10000000000;
end default:begin dvpgmbcxcxr<=11'b00000000000;end endcase end end end generate
for(i=0;i<=10;i=i + 1)begin:pqmnjcvpwvz if((dxrqrwfkkfs&(2 ** i))==0)
begin:wwtcbhtjndw assign hscbkcfzfwd[i]=1'b0;end if((dxrqrwfkkfs&(2 ** i))==(2
** i))begin:crctngthqgz assign hscbkcfzfwd[i]=dvpgmbcxcxr[i];end end
endgenerate assign kcnsckbghfd=(gjpxswjjjjj);assign mzqxzvskmff=kcnsckbghfd;
assign swqkmpwmwsp=mvtkdjfcbxd;assign ktprkfgtqjh=xqhtcpzgsdn;assign
djxcbxghxwh=vhvdmsthqvg;assign jpbtxxhrndw=gsbzbrrsfpj;assign
ksdpxpjqwcz=rrmbcmwhzvp;assign jkrspkvdvtz=kpwjkbvbqjg;assign
qdkpgfqvsjs=hscbkcfzfwd;generate if(xjktwffhchr<6)begin:gjnhxbxmqbw for(
i=xjktwffhchr + 3;i<=8;i=i + 1)begin:zwgbhwwqfqv assign kkrdgkrhfnp[i]=1'b0;end
end endgenerate assign kkrdgkrhfnp[xjktwffhchr + 2:0]={kcnsckbghfd,wrmchxtnrsq};
assign wvqcmcccxvp=(btxdzwbbqvw==1'b1)? pdmrrrmtgwp:kkrdgkrhfnp;assign
fkfvpwkjphd=txstwbqtvxh;assign wqkmcpdcpnr=gzmcjjcpmtm;always @(wrmchxtnrsq or
zkswmvkkmcc or hdfsppmkkfr)begin case(wrmchxtnrsq[2:0])gjrksvzkctx:begin
dqghkjkfvsq<=zkswmvkkmcc[8:0];end kkwhtdxpfcp:begin dqghkjkfvsq<={gcttgrstxjw,
zkswmvkkmcc[11:9]};end cjbnnzskwrb:begin dqghkjkfvsq<=hdfsppmkkfr[8:0];end
sxqjjhzqbmp:begin dqghkjkfvsq<=hdfsppmkkfr[17:9];end default:begin
dqghkjkfvsq<=zkswmvkkmcc[8:0];end endcase end assign rzhkmkpfzzs=rqntrxgbssd;
assign scvxgvwggvp=gvghxwwqjrn;assign mztwwrmrsfm=fkgscznxtsm;assign
sqswsvprggb=mcccbsrsbmn;assign xftbkgdtrgg=cnczrfjdnnk;assign
xfdndpppmfr=ngwjhwffdrb;assign rtkqttvxrnd=cmdprjtzcrv;assign
hwzrkjbshms=hnfknqnpjhb;generate if(fkjndmkvkwz==1)begin:jgwzjzjnfbz assign
ncswnvwrdxs=(qnfjbsxgpbz==1'b0)? rptnfwdpbtv:(bhwgssbsrff==1'b1)?
drbpjpckvxr:gkwftmhmpbh;assign qbfzhmnchpj=(qnfjbsxgpbz==1'b0)? ~rtrsvmkfskx:(
bhwgssbsrff==1'b1)? 1'b0:(thdjbbftfdj==1'b1)? 1'b0:1'b1;end endgenerate
generate if(fkjndmkvkwz==0)begin:mxgtgkgzknq assign ncswnvwrdxs=(
qnfjbsxgpbz==1'b0)? rptnfwdpbtv:drbpjpckvxr;assign qbfzhmnchpj=(
qnfjbsxgpbz==1'b0)? ~rtrsvmkfskx:(bhwgssbsrff==1'b1)? 1'b0:1'b1;end endgenerate
assign qntkzxxnxhj=(qnfjbsxgpbz==1'b0)? ~rtrsvmkfskx:1'b1;assign
qqzscjzwfnj=zbcbwffnxtb;assign zgwtctbgrwj=bhwgssbsrff|~qnfjbsxgpbz;assign
wwskjkktxkh=(fkfvpwkjphd==1'b0&wqkmcpdcpnr==1'b0)? 1'b1:1'b0;assign
xswxpcrrbtv=jhsxkvsxntj;assign tjtrqzgznvn=frwvwknzfsq;assign
tbrhtjdgxfb=jjwqjfrdwft;assign vdjdxtwctxg=zzpjvzwwhsb;assign
rhsfvgwdsfp=qnbctvbfkpd;assign fvssrrcjgsb=vbbpmtwjcpf;assign
dhbkrjpmtxp=fbqggfmhjcw;assign rptnfwdpbtv=njxkpnbhcck;assign
rtrsvmkfskx=gdbmrqdmksz;assign zbcbwffnxtb=jtbqpdzwgxp;assign
qnfjbsxgpbz=znktskmxcbp;assign gkwftmhmpbh=cnwsmzznwfg;assign
thdjbbftfdj=npqxxjzzczt;assign mbwhmdmvdvt=zgwtctbgrwj;assign
drbpjpckvxr=scwbxhrnqqk;assign bhwgssbsrff=pqgtszncrws;assign
dsjtwjhnpmm=ncswnvwrdxs;assign ttxwkrvqgng=qntkzxxnxhj;assign
gvvstrjqmht=qbfzhmnchpj;assign gxwqrvtqrsn=qqzscjzwfnj;assign
zbbgcrmtqtc=wvqcmcccxvp;assign sdqvwvrqjsk=fkfvpwkjphd;assign
drsbgqmzxjf=wqkmcpdcpnr;assign ddzrbwxtmtz=dqghkjkfvsq;assign
nqdbdhqkkzh=bzfsctqnpbb;assign mjvhmcvzbvp=wwskjkktxkh;assign
mjmpphwgnbk=pmvbhqvwrwq;assign srtbxpvzqxm=rwkxgkvzqvv;assign
bnrdpgkdfht=dxvqjcqbdhs;assign rnzcbvpdrgm=hkrxqhjwxhq;assign
ckkthrdxjnj=mzqxzvskmff;assign jngrzvhtjvn=swqkmpwmwsp;assign
qnrghrqprpr=ktprkfgtqjh;assign mxthjbrqmws=djxcbxghxwh;assign
jfjwdckbtmn=jpbtxxhrndw;assign hfbfjfhdgmn=ksdpxpjqwcz;assign
jnfvrbnvhsv=xzfstqmhgtw;assign jwpbpqkxbzx=gzjdwwfcmrr;assign
hkcmpbxfghz=tcvzstsxnrw;assign nrcsrhsqscv=rzhkmkpfzzs;assign
fwnxxpqwbbg=scvxgvwggvp;assign hjvjmjctjfx=mztwwrmrsfm;assign
phgfrhmvkfp=sqswsvprggb;assign nqxffszqhnd=xftbkgdtrgg;assign
xkfqnqrczfh=xfdndpppmfr;assign nqqbqrhvpmt=rtkqttvxrnd;assign
zjcwszqxvcz=hwzrkjbshms;assign dfkwhgfvjjb=jkrspkvdvtz;assign
dvpdhdwcqdp=qdkpgfqvsjs;endmodule
`timescale 1ns/10ps
module ASSC(CLK,NRESET,EV_EVFLAG,EV_DONE,TR_TRFLAG,TR_DONE,INIT_ADDR,
INIT_ASSC_WR,INIT_DI,INIT_DONE,USER_ASSC_ADDR,USER_ASSC_RD,USER_ASSC_RAM_BUSY,
EV_ASSC_ADDR,EV_ASSC_RD,ASSC_RAM_ADDR_A,ASSC_RAM_RW_A,ASSC_RAM_CSN_A,
ASSC_RAM_DI_A,ASSC_RAM_ADDR_B,ASSC_RAM_RW_B,ASSC_RAM_CSN_B,ASSC_RAM_DI_B,
ASSC_RAM_DO_B,ASSC_RAM_WR_BUSY_B,ASSC_XMODE,ASSC_XTRIG,ASSC_SEQJUMP,ASSC_SEQIN,
ASSC_SEQOUT,ASSC_SEQCHANGE,ASSC_DONE,ASSC_SAMPFLAG,ASSC_WAIT,ASSC_CHSAT,
ASSC_CHLATD,ADC_CALIBRATE,ADC_BUSY,ADC_RESULT,ADC_START,ADC_PDOWN,ADC_RESET,
ADC_MODE,ADC_VREFSEL,ADC_CHNR,ADC_STC,ADC_DVC,CM_STB,TM_STB);parameter
TS_WIDTH=6;parameter ALLOW_USER_ASSC=1;parameter ALLOW_RPT=0;parameter
FIXED_MODE=0;parameter FIXED_MODE_CONST=4'h0;parameter FIXED_VREFSEL=0;
parameter FIXED_VREFSEL_CONST=0;parameter FIXED_STC=0;parameter
FIXED_STC_CONST=8'h00;parameter FIXED_TVC=0;parameter FIXED_TVC_CONST=8'h00;
parameter ALLOW_CM_STB_BITS=12'h000;parameter ALLOW_TM_STB_BITS=12'h000;input
CLK;input NRESET;input EV_EVFLAG;input EV_DONE;input TR_TRFLAG;input TR_DONE;
input[8:0] INIT_ADDR;input INIT_ASSC_WR;input[8:0] INIT_DI;input INIT_DONE;
input[8:0] USER_ASSC_ADDR;input USER_ASSC_RD;output USER_ASSC_RAM_BUSY;wire
USER_ASSC_RAM_BUSY;input[8:0] EV_ASSC_ADDR;input EV_ASSC_RD;output[8:0]
ASSC_RAM_ADDR_A;wire[8:0] ASSC_RAM_ADDR_A;output ASSC_RAM_RW_A;wire
ASSC_RAM_RW_A;output ASSC_RAM_CSN_A;wire ASSC_RAM_CSN_A;output[8:0]
ASSC_RAM_DI_A;wire[8:0] ASSC_RAM_DI_A;output[8:0] ASSC_RAM_ADDR_B;wire[8:0]
ASSC_RAM_ADDR_B;output ASSC_RAM_RW_B;wire ASSC_RAM_RW_B;output ASSC_RAM_CSN_B;
wire ASSC_RAM_CSN_B;output[8:0] ASSC_RAM_DI_B;wire[8:0] ASSC_RAM_DI_B;
input[8:0] ASSC_RAM_DO_B;output ASSC_RAM_WR_BUSY_B;wire ASSC_RAM_WR_BUSY_B;
input ASSC_XMODE;input ASSC_XTRIG;input ASSC_SEQJUMP;input[TS_WIDTH - 1:0]
ASSC_SEQIN;output[TS_WIDTH - 1:0] ASSC_SEQOUT;wire[TS_WIDTH - 1:0] ASSC_SEQOUT;
output ASSC_SEQCHANGE;wire ASSC_SEQCHANGE;output ASSC_DONE;wire ASSC_DONE;
output ASSC_SAMPFLAG;wire ASSC_SAMPFLAG;output ASSC_WAIT;wire ASSC_WAIT;output
ASSC_CHSAT;wire ASSC_CHSAT;output ASSC_CHLATD;wire ASSC_CHLATD;input
ADC_CALIBRATE;input ADC_BUSY;input[11:0] ADC_RESULT;output ADC_START;wire
ADC_START;output ADC_PDOWN;wire ADC_PDOWN;output ADC_RESET;wire ADC_RESET;
output[3:0] ADC_MODE;wire[3:0] ADC_MODE;output ADC_VREFSEL;wire ADC_VREFSEL;
output[4:0] ADC_CHNR;wire[4:0] ADC_CHNR;output[7:0] ADC_STC;wire[7:0] ADC_STC;
output[7:0] ADC_DVC;wire[7:0] ADC_DVC;output[9:0] CM_STB;wire[9:0] CM_STB;
output[10:0] TM_STB;wire[10:0] TM_STB;cwgmnvwgkwq #(.xjktwffhchr(TS_WIDTH),
.fkjndmkvkwz(ALLOW_USER_ASSC),.cmbcnjphkbk(ALLOW_RPT),.stwqmbncvtq(FIXED_MODE),
.mpxpbvmdcxm(FIXED_MODE_CONST),.ffmnjxjkfrw(FIXED_VREFSEL),.wkfwgmvbxzj(
FIXED_VREFSEL_CONST),.pddssvvsnzg(FIXED_STC),.ddbvkcqswhr(FIXED_STC_CONST),
.wgqkjfptpfc(FIXED_TVC),.grqhmwdrszn(FIXED_TVC_CONST),.mrgvxbvqvzg(
ALLOW_CM_STB_BITS),.dxrqrwfkkfs(ALLOW_TM_STB_BITS))u_cwgmnvwgkwq(.jhsxkvsxntj(
CLK),.frwvwknzfsq(NRESET),.jjwqjfrdwft(EV_EVFLAG),.zzpjvzwwhsb(EV_DONE),
.qnbctvbfkpd(TR_TRFLAG),.vbbpmtwjcpf(TR_DONE),.njxkpnbhcck(INIT_ADDR),
.gdbmrqdmksz(INIT_ASSC_WR),.jtbqpdzwgxp(INIT_DI),.znktskmxcbp(INIT_DONE),
.cnwsmzznwfg(USER_ASSC_ADDR),.npqxxjzzczt(USER_ASSC_RD),.mbwhmdmvdvt(
USER_ASSC_RAM_BUSY),.scwbxhrnqqk(EV_ASSC_ADDR),.pqgtszncrws(EV_ASSC_RD),
.dsjtwjhnpmm(ASSC_RAM_ADDR_A),.ttxwkrvqgng(ASSC_RAM_RW_A),.gvvstrjqmht(
ASSC_RAM_CSN_A),.gxwqrvtqrsn(ASSC_RAM_DI_A),.zbbgcrmtqtc(ASSC_RAM_ADDR_B),
.sdqvwvrqjsk(ASSC_RAM_RW_B),.drsbgqmzxjf(ASSC_RAM_CSN_B),.ddzrbwxtmtz(
ASSC_RAM_DI_B),.bzfsctqnpbb(ASSC_RAM_DO_B),.mjvhmcvzbvp(ASSC_RAM_WR_BUSY_B),
.pmvbhqvwrwq(ASSC_XMODE),.rwkxgkvzqvv(ASSC_XTRIG),.dxvqjcqbdhs(ASSC_SEQJUMP),
.hkrxqhjwxhq(ASSC_SEQIN),.ckkthrdxjnj(ASSC_SEQOUT),.jngrzvhtjvn(ASSC_SEQCHANGE),
.qnrghrqprpr(ASSC_DONE),.mxthjbrqmws(ASSC_SAMPFLAG),.dhbkrjpmtxp(ASSC_WAIT),
.jfjwdckbtmn(ASSC_CHSAT),.hfbfjfhdgmn(ASSC_CHLATD),.xzfstqmhgtw(ADC_CALIBRATE),
.gzjdwwfcmrr(ADC_BUSY),.tcvzstsxnrw(ADC_RESULT),.nrcsrhsqscv(ADC_START),
.fwnxxpqwbbg(ADC_PDOWN),.hjvjmjctjfx(ADC_RESET),.phgfrhmvkfp(ADC_MODE),
.nqxffszqhnd(ADC_VREFSEL),.xkfqnqrczfh(ADC_CHNR),.nqqbqrhvpmt(ADC_STC),
.zjcwszqxvcz(ADC_DVC),.dfkwhgfvjjb(CM_STB),.dvpdhdwcqdp(TM_STB));endmodule
