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

Subversion Repositories csa

[/] [csa/] [trunk/] [rtl/] [group_decrypt.v] - Diff between revs 43 and 44

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

Rev 43 Rev 44
Line 17... Line 17...
                        , output        [   4-1:0] obytes
                        , output        [   4-1:0] obytes
                );
                );
 
 
        reg init_d;
        reg init_d;
        wire [8*8-1:0] stream;
        wire [8*8-1:0] stream;
        reg  [8*8-1:0] stream_d;
 
        wire [8*8-1:0] ib;
        wire [8*8-1:0] ib;
        reg  [8*8-1:0] bco_d;
        reg  [8*8-1:0] bco_d;
        wire  [8*8-1:0] bco;
        wire  [8*8-1:0] bco;
        reg en_d;
        reg en_d;
 
 
 
 
        always @(posedge clk)
        always @(posedge clk)
                begin
 
                en_d<=en;
                en_d<=en;
 
 
 
        always @(posedge clk)
                init_d<=init;
                init_d<=init;
                if(en)
 
                begin
        always @(posedge clk)
                        stream_d<=stream;
 
                end
 
                if(en_d)
                if(en_d)
                        bco_d<=bco;
                        bco_d<=bco;
 
 
                end
 
 
 
assign ib=(init_d)?group:group^stream;
assign ib=(init_d)?group:group^stream;
 
 
 
 
stream_cypher stream_cypher(
stream_cypher stream_cypher(
                    .clk   (clk)
                    .clk   (clk)
                  , .rst   (rst)
                  , .rst   (rst)
                  , .en    (en)
                  , .en    (en)
                  , .init  (init)
                  , .init  (init)
Line 61... Line 55...
assign ogroup=group^bco_d^stream;
assign ogroup=group^bco_d^stream;
 
 
assign valid=en_d & ~init_d;
assign valid=en_d & ~init_d;
assign obytes=4'h8;
assign obytes=4'h8;
 
 
 
 
endmodule
endmodule
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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