\n'; Text += '
'; Text += ' \n'; Text += '
'; Text += '\n'; for (var i=0;i<(extra_info[extra_info_index].length-1);i++) { Text += hbutton(sig_buttons[i], 'opener.location=loc[sel.selectedIndex]['+i+'];', bnum++); } Text += hbutton("Search Backwards", 'opener.search(sel.options[ sel.selectedIndex ].text,' + '0,opener.last_link,-1,0);',bnum++); Text += hbutton("Search Forwards", 'opener.search(sel.options[ sel.selectedIndex ].text,' + '0,opener.last_link, 1,0);',bnum++); Text += hbutton("Close","window.close();",bnum++); Text += '
\n'; Text += '
Hosted by www.Geocities.ws

\n'; w.document.open(); w.document.write(Text); w.document.close(); w.document.forms[0].elements[0].options[0].text = linkText; w.sel = w.document.forms[0].elements[0]; for (j=0;j<10;j++) w.loc[j] = new Array(sig_buttons.length); copy_into_loc0(w,extra_info_index); } else { if ((window.location.pathname.substring(0,window.location.pathname.lastIndexOf(dirSep)))!= (w.location.pathname.substring(0,w.location.pathname.lastIndexOf(dirSep)))) { w.close(); if (is_nav4up) return qs(e,t,extra_info_index); else return false; } var opts = w.document.forms[0].elements[0].options; if ( opts.length<10 ) { w.loc[opts.length] = new Array; opts.length++; } for (i=opts.length-2;i>=0;i--) { opts[i+1].text=opts[i].text; for (var j=0;j' + ' '+text+'\n'; } function copy_into_loc0 (w,extra_info_index) { for (var i=1;i=0;i+=inc) { linkText = is_nav4up ? document.links[i].text : document.links[i].innerText; linkY = is_nav4up ? document.links[i].y : document.links[i].offsetTop; if ((linkText == text) && (linkY != y)) { window.status=""; if (is_nav4up) if (relative) window.scrollBy(0,linkY - y); else window.scrollTo(0,linkY); else if (is_ie4up) document.links[i].scrollIntoView(true); last_link=i; last_class=document.links[i].className; document.links[i].className='HI'; return false; } } nextpage = (inc==1) ? next_page() : prev_page(); wrappage = (inc==1) ? first_page() : last_page(); if (nextpage!="" || wrappage!="") { if (nextpage=="") { if (!confirm(text + " not found. Search again from "+((inc==1)?"first":"last")+" page?")) return false; nextpage=wrappage; } location=nextpage+ "?" + escape(text) + "&" + ( y - window.pageYOffset ) + "&" + inc; return false; } if (confirm(text + " not found. Search again from "+((inc==1)?"start":"end")+"?")) { if (inc==1) i=-1; else i=document.links.length; } else return false; } return true; } function loadqs() { var opt=location.search, text="", s="", y=0, si=0, inc=1; if (opt.length==0) return true; for (var i=1;i
//
// TCODETABLE.V
// 
// tcode table is used to decode the tcode. 
// The tcode determines the header length, data payload.
// This module is instantiated by 'decoder.v'
//
// THE TCODE TABLE
//
// tcode				Header_length	Data payload
// 0, 6, 5, 8			4				0
// 1, 7, 9, Ah, Bh		4				1
// 2, 4, 				3				0
//

[Up: decoder t1]
module tcodetableIndex(
               decode_complete,
               decode_error,
               header_length,
               data_payload,
               reset_n,
               decode,
               data_decode,data_dec_out
               );

output decode_complete,decode_error,data_payload;
output[2:0] header_length;

input decode,reset_n;
input[3:0] data_decode;
output [3:0]data_dec_out;
reg decode_complete,decode_error,data_payload;
reg[2:0] header_length;

wire decode,reset_n;

assign data_dec_out = data_decode;

always @(posedge decode or negedge reset_n)
begin
   if(!reset_n)
   begin
       header_length   <= 3'b000;
       data_payload    <= 1'b0;
       decode_complete <= 1'b0;
       decode_error    <= 1'b0;
   end
   else
   begin
       case(data_decode)
         4'h0,4'h6,4'h5,4'h8:
           begin
             header_length   <= 3'b100;
             data_payload    <= 1'b0;
             decode_error    <= 1'b0;
             decode_complete <= 1'b1;
           end
         4'h1,4'h7,4'h9,4'hA,4'hB:
           begin
             header_length   <= 3'b100;
             data_payload    <= 1'b1;
             decode_error    <= 1'b0;
             decode_complete <= 1'b1;
           end
         4'h2,4'h4:
           begin
             header_length   <= 3'b011;
             data_payload    <= 1'b0;
             decode_error    <= 1'b0;
             decode_complete <= 1'b1;
           end
         default:
           begin
             header_length   <= 3'b000;
             data_payload    <= 1'b0;
             decode_error    <= 1'b1;
             decode_complete <= 1'b1;
           end
       endcase
   end

   
end

endmodule

 


This page: Maintained by: [email protected]
Created:Sun Mar 11 19:19:05 2001
From: /mnt/c/windows/desktop/floppy/commen~1/tcodetable.v

Verilog converted to html by v2html 6.0 (written by Costas Calamvokis).Help































Hosted by www.Geocities.ws

1