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

Subversion Repositories spacewiresystemc

[/] [spacewiresystemc/] [trunk/] [rtl/] [DEBUG_VERILOG/] [write_axi.v] - Diff between revs 27 and 40

Show entire file | Details | Blame | View Log

Rev 27 Rev 40
Line 30... Line 30...
//Synthesizable (y/n)   :
//Synthesizable (y/n)   :
//Other                 :
//Other                 :
//-FHDR------------------------------------------------------------------------
//-FHDR------------------------------------------------------------------------
module write_axi(
module write_axi(
                 input clock_recovery,
                 input clock_recovery,
 
                 input clock_50,
                 input reset_n,
                 input reset_n,
                 input [13:0] data_rec,
                 input [13:0] data_rec,
                 output reg [13:0] data_stand
                 output reg [13:0] data_stand
                );
                );
 
 
 
 
always@(posedge clock_recovery or negedge reset_n )
always@(posedge clock_50 or negedge reset_n )
begin
begin
 
 
        if(!reset_n)
        if(!reset_n)
        begin
        begin
                data_stand <= 14'd0;
                data_stand <= 14'd0;
        end
        end
        else
        else
        begin
        begin
 
                if(clock_recovery)
                data_stand <= data_rec;
                data_stand <= data_rec;
 
                else
 
                        data_stand <= data_stand;
        end
        end
end
end
 
 
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.