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

Subversion Repositories xilinx_virtex_fp_library

[/] [xilinx_virtex_fp_library/] [trunk/] [DualPathFPAdderMappedConversions/] [d_ff.v] - Diff between revs 11 and 19

Only display areas with differences | Details | Blame | View Log

Rev 11 Rev 19
`timescale 1ns / 1ps
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
// Company: 
// Company:     UPT
// Engineer: 
// Engineer:    Constantina-Elena Gavriliu
// 
// 
// Create Date:    09:39:58 02/04/2013 
// Create Date:    09:39:58 02/04/2013 
// Design Name: 
// Design Name: 
// Module Name:    d_ff
// Module Name:    d_ff
// Project Name: 
// Project Name: 
// Target Devices: 
// Target Devices: 
// Tool versions: 
// Tool versions: 
// Description: 
// Description: D flip-flop
//
//
// Dependencies: 
// Dependencies: 
//
//
// Revision: 
// Revision: 
// Revision 0.01 / File Created
// Revision 0.01 / File Created
// Additional Comments: 
// Additional Comments: 
//
//
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
 
 
module d_ff (clk, rst, d, q);
module d_ff (clk, rst, d, q);
        parameter SIZE = 24;
        parameter SIZE = 24;
        input clk;
        input clk;
        input rst;
        input rst;
        input [SIZE-1 : 0] d;
        input [SIZE-1 : 0] d;
        output reg [SIZE-1 : 0] q;
        output reg [SIZE-1 : 0] q;
 
 
        always
        always
                @(posedge clk, posedge rst)
                @(posedge clk, posedge rst)
        begin
        begin
                if (rst)
                if (rst)
                        q <= {SIZE{1'b0}};
                        q <= {SIZE{1'b0}};
                else
                else
                        q <= d;
                        q <= d;
        end
        end
 
 

powered by: WebSVN 2.1.0

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