OpenCores
URL https://opencores.org/ocsvn/xulalx25soc/xulalx25soc/trunk

Subversion Repositories xulalx25soc

[/] [xulalx25soc/] [trunk/] [rtl/] [wbucompress.v] - Diff between revs 2 and 9

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 2 Rev 9
Line 119... Line 119...
        assign  w_accepted = (a_stb)&&(~i_busy);
        assign  w_accepted = (a_stb)&&(~i_busy);
 
 
        reg             r_stb;
        reg             r_stb;
        always @(posedge i_clk)
        always @(posedge i_clk)
                r_stb <= a_stb;
                r_stb <= a_stb;
        /*
 
        reg     [35:0]  r_word;
 
        always @(posedge i_clk)
 
                if (a_stb)
 
                        r_word <= a_addrword;
 
        */
 
        wire    [35:0]   r_word;
        wire    [35:0]   r_word;
        assign  r_word = a_addrword;
        assign  r_word = a_addrword;
 
 
 
 
        //
        //
Line 235... Line 230...
        begin
        begin
                if ((~a_stb)||(~r_stb)||(w_accepted))//Reset whenever word gets written
                if ((~a_stb)||(~r_stb)||(w_accepted))//Reset whenever word gets written
                        r_compressed <= 1'b0; // to our output
                        r_compressed <= 1'b0; // to our output
                else if (r_compressed)//Already compressed, wait 'til sent
                else if (r_compressed)//Already compressed, wait 'til sent
                        ;
                        ;
                else if ((match)&&(matchaddr < 10'd521)&&(r_word == a_addrword))
                else if ((match)&&(matchaddr < 10'd521))
                begin
                begin
                        if (matchaddr == 10'h1)
                        if (matchaddr == 10'h1)
                                r_cword[35:30] <= { 5'h3, r_word[30] };
                                r_cword[35:30] <= { 5'h3, r_word[30] };
                        else if (adr_diff < 10'd10)
                        else if (adr_diff < 10'd10)
                                r_cword[35:30] <= { 2'b10, adr_hlfd, r_word[30] };
                                r_cword[35:30] <= { 2'b10, adr_hlfd, r_word[30] };

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.