1 |
2 |
mihad |
//////////////////////////////////////////////////////////////////////
|
2 |
|
|
//// ////
|
3 |
|
|
//// File name "perr_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 |
|
|
//
|
46 |
|
|
|
47 |
|
|
// module is used to separate logic which uses criticaly constrained inputs from slower logic.
|
48 |
|
|
// It is used to synthesize critical timing logic separately with faster cells or without optimization
|
49 |
|
|
|
50 |
|
|
// This one is used in parity generator/checker for parity error output (PERR#)
|
51 |
|
|
module PERR_CRIT
|
52 |
|
|
(
|
53 |
|
|
perr_out,
|
54 |
|
|
perr_n_out,
|
55 |
|
|
non_critical_par_in,
|
56 |
|
|
pci_par_in,
|
57 |
|
|
perr_generate_in
|
58 |
|
|
) ;
|
59 |
|
|
|
60 |
|
|
output perr_out,
|
61 |
|
|
perr_n_out;
|
62 |
|
|
|
63 |
|
|
input non_critical_par_in,
|
64 |
|
|
pci_par_in,
|
65 |
|
|
perr_generate_in ;
|
66 |
|
|
|
67 |
|
|
assign perr_out = (non_critical_par_in ^^ pci_par_in) && perr_generate_in ;
|
68 |
|
|
assign perr_n_out = ~perr_out ;
|
69 |
|
|
|
70 |
|
|
endmodule
|