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

Subversion Repositories pci

[/] [pci/] [tags/] [rel_3/] [rtl/] [verilog/] [perr_en_crit.v] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 mihad
//////////////////////////////////////////////////////////////////////
2
////                                                              ////
3
////  File name "perr_en_crit.v"                                  ////
4
////                                                              ////
5
////  This file is part of the "PCI bridge" project               ////
6
////  http://www.opencores.org/cores/pci/                         ////
7
////                                                              ////
8
////  Author(s):                                                  ////
9
////      - Miha Dolenc (mihad@opencores.org)                     ////
10
////                                                              ////
11
////  All additional information is avaliable in the README       ////
12
////  file.                                                       ////
13
////                                                              ////
14
////                                                              ////
15
//////////////////////////////////////////////////////////////////////
16
////                                                              ////
17
//// Copyright (C) 2000 Miha Dolenc, mihad@opencores.org          ////
18
////                                                              ////
19
//// This source file may be used and distributed without         ////
20
//// restriction provided that this copyright statement is not    ////
21
//// removed from the file and that any derivative work contains  ////
22
//// the original copyright notice and the associated disclaimer. ////
23
////                                                              ////
24
//// This source file is free software; you can redistribute it   ////
25
//// and/or modify it under the terms of the GNU Lesser General   ////
26
//// Public License as published by the Free Software Foundation; ////
27
//// either version 2.1 of the License, or (at your option) any   ////
28
//// later version.                                               ////
29
////                                                              ////
30
//// This source is distributed in the hope that it will be       ////
31
//// useful, but WITHOUT ANY WARRANTY; without even the implied   ////
32
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      ////
33
//// PURPOSE.  See the GNU Lesser General Public License for more ////
34
//// details.                                                     ////
35
////                                                              ////
36
//// You should have received a copy of the GNU Lesser General    ////
37
//// Public License along with this source; if not, download it   ////
38
//// from http://www.opencores.org/lgpl.shtml                     ////
39
////                                                              ////
40
//////////////////////////////////////////////////////////////////////
41
//
42
// CVS Revision History
43
//
44
// $Log: not supported by cvs2svn $
45 21 mihad
// Revision 1.2  2001/10/05 08:14:30  mihad
46
// Updated all files with inclusion of timescale file for simulation purposes.
47
//
48 6 mihad
// Revision 1.1.1.1  2001/10/02 15:33:47  mihad
49
// New project directory structure
50 2 mihad
//
51 6 mihad
//
52 2 mihad
 
53
// module is used to separate logic which uses criticaly constrained inputs from slower logic.
54
// It is used to synthesize critical timing logic separately with faster cells or without optimization
55
 
56
// This one is used in parity generator/checker for parity error (PERR#) output enable driving
57 21 mihad
 
58
// synopsys translate_off
59 6 mihad
`include "timescale.v"
60 21 mihad
// synopsys translate_on
61 2 mihad
 
62
module PERR_EN_CRIT
63
(
64
    reset_in,
65
    clk_in,
66
    perr_en_out,
67
    perr_en_reg_out,
68
    non_critical_par_in,
69
    pci_par_in,
70
    perr_generate_in,
71
    par_err_response_in
72
) ;
73
output  perr_en_out,
74
        perr_en_reg_out ;
75 21 mihad
 
76 2 mihad
input   reset_in,
77
        clk_in,
78
        non_critical_par_in,
79
        pci_par_in,
80
        perr_generate_in,
81
        par_err_response_in ;
82
 
83
wire perr = par_err_response_in && perr_generate_in && ( non_critical_par_in ^^ pci_par_in ) ;
84
 
85
// PERR# is enabled for two clocks after parity error is detected - one cycle active, another inactive
86
reg perr_en_reg_out ;
87
always@(posedge reset_in or posedge clk_in)
88
begin
89
    if ( reset_in )
90
        perr_en_reg_out <= #1 1'b0 ;
91
    else
92
        perr_en_reg_out <= #1 perr ;
93
end
94
 
95
assign perr_en_out = perr || perr_en_reg_out ;
96
 
97
endmodule

powered by: WebSVN 2.1.0

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