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

Subversion Repositories pci

[/] [pci/] [tags/] [rel_13/] [rtl/] [verilog/] [pci_target32_interface.v] - Blame information for rev 77

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 mihad
//////////////////////////////////////////////////////////////////////
2
////                                                              ////
3
////  File name: pci_target32_interface.v                         ////
4
////                                                              ////
5
////  This file is part of the "PCI bridge" project               ////
6
////  http://www.opencores.org/cores/pci/                         ////
7
////                                                              ////
8
////  Author(s):                                                  ////
9
////      - Tadej Markovic, tadej@opencores.org                   ////
10
////                                                              ////
11
////  All additional information is avaliable in the README.txt   ////
12
////  file.                                                       ////
13
////                                                              ////
14
////                                                              ////
15
//////////////////////////////////////////////////////////////////////
16
////                                                              ////
17
//// Copyright (C) 2000 Tadej Markovic, tadej@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 77 mihad
// Revision 1.6  2003/01/21 16:06:56  mihad
46
// Bug fixes, testcases added.
47
//
48 73 mihad
// Revision 1.5  2002/08/22 13:28:04  mihad
49
// Updated for synthesis purposes. Gate level simulation was failing in some configurations
50
//
51 53 mihad
// Revision 1.4  2002/02/19 16:32:37  mihad
52
// Modified testbench and fixed some bugs
53
//
54 26 mihad
// Revision 1.3  2002/02/01 15:25:12  mihad
55
// Repaired a few bugs, updated specification, added test bench files and design document
56
//
57 21 mihad
// Revision 1.2  2001/10/05 08:14:30  mihad
58
// Updated all files with inclusion of timescale file for simulation purposes.
59
//
60 6 mihad
// Revision 1.1.1.1  2001/10/02 15:33:47  mihad
61
// New project directory structure
62 2 mihad
//
63 6 mihad
//
64 2 mihad
 
65
`include "bus_commands.v"
66 21 mihad
`include "pci_constants.v"
67
 
68
// synopsys translate_off
69 6 mihad
`include "timescale.v"
70 21 mihad
// synopsys translate_on
71 2 mihad
 
72 77 mihad
module pci_target32_interface
73 2 mihad
(
74
    // system inputs
75
    clk_in,
76
    reset_in,
77 21 mihad
 
78 2 mihad
    // PCI Target side of INTERFACE
79
    address_in,
80
    addr_claim_out,
81
    bc_in,
82
    bc0_in,
83
    data_in,
84
    data_out,
85
    be_in,
86
    req_in,
87
    rdy_in,
88
    addr_phase_in,
89 21 mihad
    bckp_devsel_in,
90 2 mihad
    bckp_trdy_in,
91 21 mihad
    bckp_stop_in,
92 2 mihad
    last_reg_in,
93
    frame_reg_in,
94
    fetch_pcir_fifo_in,
95
    load_medium_reg_in,
96
    sel_fifo_mreg_in,
97
    sel_conf_fifo_in,
98
    fetch_conf_in,
99
    load_to_pciw_fifo_in,
100
    load_to_conf_in,
101
    same_read_out,
102
 
103
        norm_access_to_config_out,
104
        read_completed_out,
105
        read_processing_out,
106
        target_abort_out,
107
        disconect_wo_data_out,
108 21 mihad
        disconect_w_data_out,
109 2 mihad
        pciw_fifo_full_out,
110
        pcir_fifo_data_err_out,
111
        wbw_fifo_empty_out,
112 21 mihad
        wbu_del_read_comp_pending_out,
113
 
114 2 mihad
        // Delayed synchronizacion module signals
115 21 mihad
        req_out,
116
    done_out,
117 2 mihad
    in_progress_out,
118 21 mihad
        req_req_pending_in,
119 2 mihad
    req_comp_pending_in,
120 21 mihad
        addr_out,
121
    be_out,
122
    we_out,
123
    bc_out,
124
    burst_ok_out,
125 2 mihad
        strd_addr_in,
126
        strd_bc_in,
127
    status_in,
128
    comp_flush_in,
129
 
130
        // FIFO signals
131 21 mihad
        pcir_fifo_renable_out,
132
        pcir_fifo_data_in,
133
        pcir_fifo_be_in,
134 2 mihad
        pcir_fifo_control_in,
135 21 mihad
        pcir_fifo_flush_out,
136
        pcir_fifo_almost_empty_in,
137 2 mihad
        pcir_fifo_empty_in,
138 21 mihad
        pciw_fifo_wenable_out,
139
        pciw_fifo_addr_data_out,
140
        pciw_fifo_cbe_out,
141
        pciw_fifo_control_out,
142
        pciw_fifo_two_left_in,
143 2 mihad
        pciw_fifo_almost_full_in,
144
        pciw_fifo_full_in,
145
        wbw_fifo_empty_in,
146 21 mihad
        wbu_del_read_comp_pending_in,
147
 
148 2 mihad
        // Configuration space signals
149
        conf_hit_out,
150
        conf_addr_out,
151
        conf_data_out,
152
        conf_data_in,
153
        conf_be_out,
154
        conf_we_out,
155
        conf_re_out,
156
        mem_enable_in,
157
        io_enable_in,
158
        mem_io_addr_space0_in,
159
        mem_io_addr_space1_in,
160
        mem_io_addr_space2_in,
161
        mem_io_addr_space3_in,
162
        mem_io_addr_space4_in,
163
        mem_io_addr_space5_in,
164
        pre_fetch_en0_in,
165
        pre_fetch_en1_in,
166
        pre_fetch_en2_in,
167
        pre_fetch_en3_in,
168
        pre_fetch_en4_in,
169
        pre_fetch_en5_in,
170
        pci_base_addr0_in,
171
        pci_base_addr1_in,
172
        pci_base_addr2_in,
173
        pci_base_addr3_in,
174
        pci_base_addr4_in,
175
        pci_base_addr5_in,
176
        pci_addr_mask0_in,
177
        pci_addr_mask1_in,
178
        pci_addr_mask2_in,
179
        pci_addr_mask3_in,
180
        pci_addr_mask4_in,
181
        pci_addr_mask5_in,
182
        pci_tran_addr0_in,
183
        pci_tran_addr1_in,
184
        pci_tran_addr2_in,
185
        pci_tran_addr3_in,
186
        pci_tran_addr4_in,
187
        pci_tran_addr5_in,
188
        addr_tran_en0_in,
189
        addr_tran_en1_in,
190
        addr_tran_en2_in,
191
        addr_tran_en3_in,
192
        addr_tran_en4_in,
193
        addr_tran_en5_in
194
) ;
195
 
196
/*==================================================================================================================
197
System inputs.
198
==================================================================================================================*/
199
// PCI side clock and reset
200
input   clk_in,
201
        reset_in ;
202
 
203
 
204
/*==================================================================================================================
205 21 mihad
Side of the PCI Target state machine
206 2 mihad
==================================================================================================================*/
207
// Data, byte enables, bus commands and address ports
208
input   [31:0]   address_in ;            // current request address input - registered
209
output          addr_claim_out ;        // current request address claim output
210
input   [3:0]   bc_in ;                          // current request bus command input - registered
211
input                   bc0_in ;                        // current cycle RW signal
212
output  [31:0]  data_out ;                       // for read operations - current dataphase data output
213
input   [31:0]  data_in ;                        // for write operations - current request data input - registered
214
input   [3:0]    be_in ;                         // current dataphase byte enable inputs - registered
215
// Port connection control signals from PCI FSM
216
input           req_in ;                // Read is requested to WB master from PCI side
217
input           rdy_in ;                // DATA / ADDRESS selection from PCI side when read or write - registered
218
input                   addr_phase_in ;         // Indicates address phase and also fast-back-to-back address phase - registered
219 21 mihad
input                   bckp_devsel_in ;        // DEVSEL input (which is registered) equivalent
220
input                   bckp_trdy_in ;          // TRDY input (which is registered) equivalent
221
input                   bckp_stop_in ;          // STOP input (which is registered) equivalent
222 2 mihad
input               last_reg_in ;               // Indicates last data phase - registered
223
input                   frame_reg_in ;          // FRAME input signal - registered
224
input               fetch_pcir_fifo_in ;// Read enable for PCIR_FIFO when when read is finishen on WB side
225
input               load_medium_reg_in ;// Load data from PCIR_FIFO to medium register (first data must be prepared on time)
226
input               sel_fifo_mreg_in ;  // Read data selection between PCIR_FIFO and medium register
227
input               sel_conf_fifo_in ;  // Read data selection between Configuration registers and "FIFO"
228
input               fetch_conf_in ;             // Read enable for configuration space registers
229
input               load_to_pciw_fifo_in ;// Write enable to PCIW_FIFO
230
input               load_to_conf_in ;   // Write enable to Configuration space registers
231
 
232
 
233
/*==================================================================================================================
234
Status outputs to PCI side (FSM)
235
==================================================================================================================*/
236
output                  same_read_out ;                         // Indicates the same read request (important when read is finished on WB side)
237
output                  norm_access_to_config_out ;     // Indicates the access to Configuration space with MEMORY commands
238
output                  read_completed_out ;            // Indicates that read request is completed on WB side
239
output                  read_processing_out ;           // Indicates that read request is processing on WB side
240
output                  target_abort_out ;                      // Indicates target abort termination
241 21 mihad
output                  disconect_wo_data_out ;         // Indicates disconnect without data termination
242
output                  disconect_w_data_out ;          // Indicates disconnect with data termination
243 2 mihad
output                  pciw_fifo_full_out ;            // Indicates that write PCIW_FIFO is full
244
output                  pcir_fifo_data_err_out ;        // Indicates data error on current data read from PCIR_FIFO
245
output                  wbw_fifo_empty_out ;            // Indicates that WB SLAVE has no data to be written to PCI bus
246 21 mihad
output                  wbu_del_read_comp_pending_out ; // Indicates that WB Unit has a delayed read poending!
247 2 mihad
 
248
/*==================================================================================================================
249
Read request interface through Delayed sinchronization module to WB Master
250
==================================================================================================================*/
251
// request, completion, done and progress indicator outputs for delayed_sync module where they are synchronized
252
output                  req_out,                // request qualifier - when 1 it indicates that valid data is provided on outputs
253
                        done_out,               // done output - when 1 indicates that PCI Target has completed a cycle on its bus
254 21 mihad
                        in_progress_out ;       // out progress indicator - indicates that current completion is in progress on
255 2 mihad
                                                                        //   PCI Target side
256
// pending indication inputs - PCI Target side must know about requests and completions
257
input                   req_req_pending_in ;    // request pending input for PCI Target side
258
input                   req_comp_pending_in ;   // completion pending input for PCI Target side - it indicates when completion
259
                                                                                //   is ready for completing on PCI Target bus
260
// various data outputs - PCI Target sets address, bus command, byte enables, write enable and burst
261
output  [31:0]   addr_out ;   // address bus output
262
output  [3:0]    be_out ;     // byte enable output
263
output          we_out ;     // write enable output - read/write request indication 1 = write request / 0 = read request
264
output  [3:0]    bc_out ;     // bus command output
265 21 mihad
output                  burst_ok_out ;  // pre-fetch enable & burst read - qualifies pre-fetch for access to current image space
266 2 mihad
 
267
// completion side signals encoded termination status - 0 = normal completion / 1 = error terminated completion
268
input   [31:0]   strd_addr_in ;  // Stored requested read access address
269
input   [3:0]    strd_bc_in ;    // Stored requested read access bus command
270
input                   status_in ;     // Error status reported - NOT USED because FIFO control bits determin data error status
271
input               comp_flush_in ;     // If completition counter (2^16 clk periods) has expired, PCIR_FIFO must flush data
272
 
273
 
274
/*==================================================================================================================
275
PCIR_PCIW_FIFO signals from pci side
276
==================================================================================================================*/
277 21 mihad
// PCIR_FIFO control signals used for fetching data from PCIR_FIFO
278 2 mihad
output                  pcir_fifo_renable_out ;                 // read enable output to PCIR_FIFO
279
input   [31:0]   pcir_fifo_data_in ;                             // data input from PCIR_FIFO
280
input   [3:0]    pcir_fifo_be_in ;                               // byte enable input from PCIR_FIFO
281
input   [3:0]    pcir_fifo_control_in ;                  // control signals input from PCIR_FIFO
282
output                  pcir_fifo_flush_out ;                   // flush PCIR_FIFO
283
input                   pcir_fifo_almost_empty_in ;             // almost empty indicator from PCIR_FIFO
284
input                   pcir_fifo_empty_in ;                    // empty indicator
285
 
286
// PCIW_FIFO control signals used for sinking data into PCIW_FIFO and status monitoring
287
output                  pciw_fifo_wenable_out ;         // write enable output to PCIW_FIFO
288
output  [31:0]   pciw_fifo_addr_data_out ;       // address / data output signals to PCIW_FIFO
289
output  [3:0]    pciw_fifo_cbe_out ;                     // command / byte enable signals to PCIW_FIFO
290
output  [3:0]    pciw_fifo_control_out ;         // control signals to PCIW_FIFO
291 21 mihad
input                   pciw_fifo_two_left_in ;         // two data spaces left in PCIW_FIFO
292 2 mihad
input                   pciw_fifo_almost_full_in ;      // almost full indicator from PCIW_FIFO
293
input                   pciw_fifo_full_in ;                     // full indicator from PCIW_FIFO
294
 
295
// WBW_FIFO empy control signal used when delayed read is complete in PCIR_FIFO
296
input                   wbw_fifo_empty_in ;                     // empty indicator from WBW_FIFO
297 21 mihad
input                   wbu_del_read_comp_pending_in ; // delayed read pending indicator from WB Unit
298 2 mihad
 
299
 
300
/*==================================================================================================================
301
Configuration space signals - from and to registers
302
==================================================================================================================*/
303
// BUS for reading and writing to configuration space registers
304
output                  conf_hit_out ;  // like "chip select" for configuration space
305
output  [11:0]   conf_addr_out ; // address to configuration space when there is access to it
306
output  [31:0]   conf_data_out ; // data to configuration space - for writing to registers
307
input   [31:0]   conf_data_in ;  // data from configuration space - for reading from registers
308
output  [3:0]    conf_be_out ;   // byte enables used for correct writing to configuration space
309
output                  conf_we_out ;   // write enable control signal - 1 for writing / 0 for nothing
310
output                  conf_re_out ;   // read enable control signal - 1 for reading / 0 for nothing
311
 
312
// Inputs for image control registers
313
input                   mem_enable_in ; // allowed access to memory mapped image
314
input                   io_enable_in ;  // allowed access to io mapped image
315
 
316
// Inputs needed for determining if image is assigned to memory or io space with pre-fetch and address translation
317 21 mihad
input                   mem_io_addr_space0_in ; // bit-0 in pci_base_addr0 register
318
input                   mem_io_addr_space1_in ; // bit-0 in pci_base_addr1 register
319
input                   mem_io_addr_space2_in ; // bit-0 in pci_base_addr2 register
320
input                   mem_io_addr_space3_in ; // bit-0 in pci_base_addr3 register
321
input                   mem_io_addr_space4_in ; // bit-0 in pci_base_addr4 register
322 2 mihad
input                   mem_io_addr_space5_in ; // bit-0 in pci_base_addr5 register
323
input                   pre_fetch_en0_in ;      // bit-1 in pci_image_ctr0 register
324
input                   pre_fetch_en1_in ;      // bit-1 in pci_image_ctr1 register
325
input                   pre_fetch_en2_in ;      // bit-1 in pci_image_ctr2 register
326
input                   pre_fetch_en3_in ;      // bit-1 in pci_image_ctr3 register
327
input                   pre_fetch_en4_in ;      // bit-1 in pci_image_ctr4 register
328
input                   pre_fetch_en5_in ;      // bit-1 in pci_image_ctr5 register
329
 
330
// Input from image registers - register values needed for decoder to work properly
331
input   [31:(32-`PCI_NUM_OF_DEC_ADDR_LINES)]    pci_base_addr0_in ;     // base address from base address register
332
input   [31:(32-`PCI_NUM_OF_DEC_ADDR_LINES)]    pci_base_addr1_in ; // base address from base address register
333
input   [31:(32-`PCI_NUM_OF_DEC_ADDR_LINES)]    pci_base_addr2_in ; // base address from base address register
334
input   [31:(32-`PCI_NUM_OF_DEC_ADDR_LINES)]    pci_base_addr3_in ; // base address from base address register
335
input   [31:(32-`PCI_NUM_OF_DEC_ADDR_LINES)]    pci_base_addr4_in ; // base address from base address register
336
input   [31:(32-`PCI_NUM_OF_DEC_ADDR_LINES)]    pci_base_addr5_in ; // base address from base address register
337
input   [31:(32-`PCI_NUM_OF_DEC_ADDR_LINES)]    pci_addr_mask0_in ; // masking of base address from address mask register
338
input   [31:(32-`PCI_NUM_OF_DEC_ADDR_LINES)]    pci_addr_mask1_in ; // masking of base address from address mask register
339
input   [31:(32-`PCI_NUM_OF_DEC_ADDR_LINES)]    pci_addr_mask2_in ; // masking of base address from address mask register
340
input   [31:(32-`PCI_NUM_OF_DEC_ADDR_LINES)]    pci_addr_mask3_in ; // masking of base address from address mask register
341
input   [31:(32-`PCI_NUM_OF_DEC_ADDR_LINES)]    pci_addr_mask4_in ; // masking of base address from address mask register
342
input   [31:(32-`PCI_NUM_OF_DEC_ADDR_LINES)]    pci_addr_mask5_in ; // masking of base address from address mask register
343
input   [31:(32-`PCI_NUM_OF_DEC_ADDR_LINES)]    pci_tran_addr0_in ; // translation address from address translation register
344
input   [31:(32-`PCI_NUM_OF_DEC_ADDR_LINES)]    pci_tran_addr1_in ; // translation address from address translation register
345
input   [31:(32-`PCI_NUM_OF_DEC_ADDR_LINES)]    pci_tran_addr2_in ; // translation address from address translation register
346
input   [31:(32-`PCI_NUM_OF_DEC_ADDR_LINES)]    pci_tran_addr3_in ; // translation address from address translation register
347
input   [31:(32-`PCI_NUM_OF_DEC_ADDR_LINES)]    pci_tran_addr4_in ; // translation address from address translation register
348
input   [31:(32-`PCI_NUM_OF_DEC_ADDR_LINES)]    pci_tran_addr5_in ; // translation address from address translation register
349
 
350
input                   addr_tran_en0_in ;      // address translation enable bit
351
input                   addr_tran_en1_in ;      // address translation enable bit
352
input                   addr_tran_en2_in ;      // address translation enable bit
353
input                   addr_tran_en3_in ;      // address translation enable bit
354
input                   addr_tran_en4_in ;      // address translation enable bit
355
input                   addr_tran_en5_in ;      // address translation enable bit
356
 
357
/*==================================================================================================================
358
END of input / output PORT DEFINITONS !!!
359
==================================================================================================================*/
360
 
361
// address output from address multiplexer
362
reg             [31:0]   address ;
363
// prefetch enable for access to selected image space
364
reg                             pre_fetch_en ;
365
 
366
// Input addresses and image hits from address decoders - addresses are multiplexed to address
367 21 mihad
`ifdef                  HOST
368
        `ifdef          NO_CNF_IMAGE
369
                `ifdef  PCI_IMAGE0      // if PCI bridge is HOST and IMAGE0 is assigned as general image space
370 2 mihad
wire                    hit0_in ;
371
wire    [31:0]   address0_in ;
372 21 mihad
wire                    pre_fetch_en0 = pre_fetch_en0_in ;
373
                `else
374
wire                    hit0_in         = 1'b0 ;
375
wire    [31:0]   address0_in     = 32'h0 ;
376
wire                    pre_fetch_en0 = 1'b0 ;
377
                `endif
378
        `else
379
wire                    hit0_in ;
380
wire    [31:0]   address0_in ;
381
wire                    pre_fetch_en0 = pre_fetch_en0_in ;
382
        `endif
383
`else // GUEST
384
wire                    hit0_in ;
385
wire    [31:0]   address0_in ;
386
wire                    pre_fetch_en0 = pre_fetch_en0_in ;
387
`endif
388
 
389 2 mihad
wire                    hit1_in ;
390
wire    [31:0]   address1_in ;
391 21 mihad
wire                    pre_fetch_en1 = pre_fetch_en1_in ;
392
 
393
`ifdef          PCI_IMAGE2
394 2 mihad
wire                    hit2_in ;
395
wire    [31:0]   address2_in ;
396 21 mihad
wire                    pre_fetch_en2 = pre_fetch_en2_in ;
397
`else
398
wire                    hit2_in         = 1'b0 ;
399
wire    [31:0]   address2_in     = 32'h0 ;
400
wire                    pre_fetch_en2 = 1'b0 ;
401 2 mihad
`endif
402 21 mihad
 
403 2 mihad
`ifdef          PCI_IMAGE3
404
wire                    hit3_in ;
405
wire    [31:0]   address3_in ;
406 21 mihad
wire                    pre_fetch_en3 = pre_fetch_en3_in ;
407
`else
408
wire                    hit3_in         = 1'b0 ;
409
wire    [31:0]   address3_in     = 32'h0 ;
410
wire                    pre_fetch_en3 = 1'b0 ;
411 2 mihad
`endif
412 21 mihad
 
413 2 mihad
`ifdef          PCI_IMAGE4
414
wire                    hit4_in ;
415
wire    [31:0]   address4_in ;
416 21 mihad
wire                    pre_fetch_en4 = pre_fetch_en4_in ;
417
`else
418
wire                    hit4_in         = 1'b0 ;
419
wire    [31:0]   address4_in     = 32'h0 ;
420
wire                    pre_fetch_en4 = 1'b0 ;
421 2 mihad
`endif
422 21 mihad
 
423 2 mihad
`ifdef          PCI_IMAGE5
424
wire                    hit5_in ;
425
wire    [31:0]   address5_in ;
426 21 mihad
wire                    pre_fetch_en5 = pre_fetch_en5_in ;
427
`else
428
wire                    hit5_in         = 1'b0 ;
429
wire    [31:0]   address5_in     = 32'h0 ;
430
wire                    pre_fetch_en5 = 1'b0 ;
431 2 mihad
`endif
432
 
433
// Include address decoders
434 21 mihad
`ifdef                  HOST
435
        `ifdef          NO_CNF_IMAGE
436
                `ifdef  PCI_IMAGE0      // if PCI bridge is HOST and IMAGE0 is assigned as general image space
437 77 mihad
        pci_pci_decoder   #(`PCI_NUM_OF_DEC_ADDR_LINES) decoder0
438 21 mihad
                                   (.hit                        (hit0_in),
439
                                        .addr_out               (address0_in),
440
                                        .addr_in                (address_in),
441
                                        .bc_in                  (bc_in),
442 2 mihad
                                        .base_addr              (pci_base_addr0_in),
443 21 mihad
                                        .mask_addr              (pci_addr_mask0_in),
444
                                        .tran_addr              (pci_tran_addr0_in),
445 2 mihad
                                        .at_en                  (addr_tran_en0_in),
446 21 mihad
                                        .mem_io_space   (mem_io_addr_space0_in),
447
                                        .mem_en                 (mem_enable_in),
448 2 mihad
                                        .io_en                  (io_enable_in)
449
                                        ) ;
450 21 mihad
                `endif
451
        `else
452 77 mihad
        pci_pci_decoder   #(`PCI_NUM_OF_DEC_ADDR_LINES) decoder0
453 21 mihad
                                   (.hit                        (hit0_in),
454
                                        .addr_out               (address0_in),
455
                                        .addr_in                (address_in),
456
                                        .bc_in                  (bc_in),
457
                                        .base_addr              (pci_base_addr0_in),
458
                                        .mask_addr              (pci_addr_mask0_in),
459
                                        .tran_addr              (pci_tran_addr0_in),
460
                                        .at_en                  (addr_tran_en0_in),
461
                                        .mem_io_space   (mem_io_addr_space0_in),
462
                                        .mem_en                 (mem_enable_in),
463
                                        .io_en                  (io_enable_in)
464
                                        ) ;
465
        `endif
466
`else // GUEST
467 77 mihad
        pci_pci_decoder   #(`PCI_NUM_OF_DEC_ADDR_LINES) decoder0
468 21 mihad
                                   (.hit                        (hit0_in),
469
                                        .addr_out               (address0_in),
470
                                        .addr_in                (address_in),
471
                                        .bc_in                  (bc_in),
472
                                        .base_addr              (pci_base_addr0_in),
473
                                        .mask_addr              (pci_addr_mask0_in),
474
                                        .tran_addr              (pci_tran_addr0_in),
475
                                        .at_en                  (addr_tran_en0_in),
476
                                        .mem_io_space   (mem_io_addr_space0_in),
477
                                        .mem_en                 (mem_enable_in),
478
                                        .io_en                  (io_enable_in)
479
                                        ) ;
480
`endif
481 77 mihad
        pci_pci_decoder   #(`PCI_NUM_OF_DEC_ADDR_LINES) decoder1
482 21 mihad
                                   (.hit                        (hit1_in),
483
                                        .addr_out               (address1_in),
484
                                        .addr_in                (address_in),
485
                                        .bc_in                  (bc_in),
486 2 mihad
                                        .base_addr              (pci_base_addr1_in),
487 21 mihad
                                        .mask_addr              (pci_addr_mask1_in),
488
                                        .tran_addr              (pci_tran_addr1_in),
489
                                        .at_en                  (addr_tran_en1_in),
490
                                        .mem_io_space   (mem_io_addr_space1_in),
491
                                        .mem_en                 (mem_enable_in),
492 2 mihad
                                        .io_en                  (io_enable_in)
493
                                        ) ;
494 21 mihad
`ifdef          PCI_IMAGE2
495 77 mihad
        pci_pci_decoder   #(`PCI_NUM_OF_DEC_ADDR_LINES) decoder2
496 21 mihad
                                   (.hit                        (hit2_in),
497
                                        .addr_out               (address2_in),
498
                                        .addr_in                (address_in),
499
                                        .bc_in                  (bc_in),
500 2 mihad
                                        .base_addr              (pci_base_addr2_in),
501 21 mihad
                                        .mask_addr              (pci_addr_mask2_in),
502
                                        .tran_addr              (pci_tran_addr2_in),
503
                                        .at_en                  (addr_tran_en2_in),
504
                                        .mem_io_space   (mem_io_addr_space2_in),
505
                                        .mem_en                 (mem_enable_in),
506 2 mihad
                                        .io_en                  (io_enable_in)
507
                                        ) ;
508
`endif
509
`ifdef          PCI_IMAGE3
510 77 mihad
        pci_pci_decoder   #(`PCI_NUM_OF_DEC_ADDR_LINES) decoder3
511 21 mihad
                                   (.hit                        (hit3_in),
512
                                        .addr_out               (address3_in),
513
                                        .addr_in                (address_in),
514
                                        .bc_in                  (bc_in),
515 2 mihad
                                        .base_addr              (pci_base_addr3_in),
516 21 mihad
                                        .mask_addr              (pci_addr_mask3_in),
517
                                        .tran_addr              (pci_tran_addr3_in),
518
                                        .at_en                  (addr_tran_en3_in),
519
                                        .mem_io_space   (mem_io_addr_space3_in),
520
                                        .mem_en                 (mem_enable_in),
521 2 mihad
                                        .io_en                  (io_enable_in)
522
                                        ) ;
523
`endif
524
`ifdef          PCI_IMAGE4
525 77 mihad
        pci_pci_decoder   #(`PCI_NUM_OF_DEC_ADDR_LINES) decoder4
526 21 mihad
                                   (.hit                        (hit4_in),
527
                                        .addr_out               (address4_in),
528
                                        .addr_in                (address_in),
529
                                        .bc_in                  (bc_in),
530 2 mihad
                                        .base_addr              (pci_base_addr4_in),
531 21 mihad
                                        .mask_addr              (pci_addr_mask4_in),
532
                                        .tran_addr              (pci_tran_addr4_in),
533
                                        .at_en                  (addr_tran_en4_in),
534
                                        .mem_io_space   (mem_io_addr_space4_in),
535
                                        .mem_en                 (mem_enable_in),
536 2 mihad
                                        .io_en                  (io_enable_in)
537
                                        ) ;
538
`endif
539
`ifdef          PCI_IMAGE5
540 77 mihad
        pci_pci_decoder   #(`PCI_NUM_OF_DEC_ADDR_LINES) decoder5
541 21 mihad
                                   (.hit                        (hit5_in),
542
                                        .addr_out               (address5_in),
543
                                        .addr_in                (address_in),
544
                                        .bc_in                  (bc_in),
545 2 mihad
                                        .base_addr              (pci_base_addr5_in),
546 21 mihad
                                        .mask_addr              (pci_addr_mask5_in),
547
                                        .tran_addr              (pci_tran_addr5_in),
548
                                        .at_en                  (addr_tran_en5_in),
549
                                        .mem_io_space   (mem_io_addr_space5_in),
550
                                        .mem_en                 (mem_enable_in),
551 2 mihad
                                        .io_en                  (io_enable_in)
552
                                        ) ;
553
`endif
554
 
555
// Internal signals for image hit determination
556
reg                             addr_claim ;// address claim signal is asinchronous set for addr_claim_out signal to PCI Target SM
557
 
558
// Determining if image 0 is assigned to configuration space or as normal pci to wb access!
559
//   if normal access is allowed to configuration space, then hit0 is hit0_conf
560
`ifdef          HOST
561 21 mihad
        `ifdef  NO_CNF_IMAGE
562
                        parameter       hit0_conf = 1'b0 ;
563 2 mihad
        `else
564 21 mihad
                        parameter       hit0_conf = 1'b1 ;      // if normal access is allowed to configuration space, then hit0 is hit0_conf
565 2 mihad
        `endif
566 21 mihad
`else // GUEST
567
                        parameter       hit0_conf = 1'b1 ;      // if normal access is allowed to configuration space, then hit0 is hit0_conf
568 2 mihad
`endif
569
 
570
// Logic with address mux, determining if address is still in the same image space and if it is prefetced or not
571 21 mihad
always@(hit5_in or     hit4_in or     hit3_in or     hit2_in or     hit1_in or     hit0_in or
572
                address5_in or address4_in or address3_in or address2_in or address1_in or address0_in or
573
                pre_fetch_en5 or
574
                pre_fetch_en4 or
575
                pre_fetch_en3 or
576
                pre_fetch_en2 or
577
                pre_fetch_en1 or
578
                pre_fetch_en0
579
                )
580
begin
581
        addr_claim <= (hit5_in || hit4_in) || (hit3_in || hit2_in || hit1_in || hit0_in) ;
582
        case ({hit5_in, hit4_in, hit3_in, hit2_in, hit0_in})
583
        5'b10000 :
584 2 mihad
        begin
585 21 mihad
                address <= address5_in ;
586
                pre_fetch_en <= pre_fetch_en5 ;
587 2 mihad
        end
588 21 mihad
        5'b01000 :
589
        begin
590
                address <= address4_in ;
591
                pre_fetch_en <= pre_fetch_en4 ;
592
        end
593
        5'b00100 :
594
        begin
595
                address <= address3_in ;
596
                pre_fetch_en <= pre_fetch_en3 ;
597
        end
598
        5'b00010 :
599
        begin
600
                address <= address2_in ;
601
                pre_fetch_en <= pre_fetch_en2 ;
602
        end
603
        5'b00001 :
604
        begin
605
                address <= address0_in ;
606
                pre_fetch_en <= pre_fetch_en0 ;
607
        end
608
        default : // IMAGE 1 is always included into PCI bridge
609
        begin
610
                address <= address1_in ;
611
                pre_fetch_en <= pre_fetch_en1 ;
612
        end
613
        endcase
614
end
615 2 mihad
 
616
// Address claim output to PCI Target SM
617
assign  addr_claim_out = addr_claim ;
618
 
619
reg             [31:0]   norm_address ;          // stored normal address (decoded and translated) for access to WB
620
reg                             norm_prf_en ;           // stored pre-fetch enable
621
reg             [3:0]    norm_bc ;                       // stored bus-command
622
reg                             same_read_reg ;         // stored SAME_READ information
623 21 mihad
reg                             target_rd ;             // delayed registered TRDY output equivalent signal
624 2 mihad
 
625
always@(posedge clk_in or posedge reset_in)
626
begin
627 21 mihad
    if (reset_in)
628 2 mihad
        begin
629 21 mihad
                norm_address <= #`FF_DELAY 32'h0000_0000 ;
630
                norm_prf_en <= #`FF_DELAY 1'b0 ;
631
                norm_bc <= #`FF_DELAY 4'h0 ;
632
                same_read_reg <= #`FF_DELAY 1'b0 ;
633 2 mihad
        end
634
        else
635
        begin
636
                if (addr_phase_in)
637
                begin
638 21 mihad
                        norm_address <= #`FF_DELAY address ;
639
                        norm_prf_en <= #`FF_DELAY pre_fetch_en ;
640
                        norm_bc <= #`FF_DELAY bc_in ;
641
                        same_read_reg <= #`FF_DELAY same_read_out ;
642 2 mihad
                end
643
        end
644
end
645 21 mihad
 
646
`ifdef          HOST
647
  `ifdef        NO_CNF_IMAGE
648
                        reg              [1:0]   strd_address ;          // stored INPUT address for accessing Configuration space registers
649
  `else
650
                        reg             [11:0]   strd_address ;          // stored INPUT address for accessing Configuration space registers
651
  `endif
652
`else
653
                        reg             [11:0]   strd_address ;          // stored INPUT address for accessing Configuration space registers
654
`endif
655 2 mihad
always@(posedge clk_in or posedge reset_in)
656
begin
657 21 mihad
    if (reset_in)
658 2 mihad
        begin
659 21 mihad
                strd_address <= #`FF_DELAY 0 ;
660 2 mihad
        end
661
        else
662
        begin
663 21 mihad
                if (addr_phase_in)
664
                begin
665
`ifdef          HOST
666
  `ifdef        NO_CNF_IMAGE
667
                        strd_address <= #`FF_DELAY address_in[1:0] ;
668
  `else
669
                        strd_address <= #`FF_DELAY address_in[11:0] ;
670
  `endif
671
`else
672
                        strd_address <= #`FF_DELAY address_in[11:0] ;
673
`endif
674
                end
675 2 mihad
        end
676
end
677
 
678 21 mihad
always@(posedge clk_in or posedge reset_in)
679
begin
680
    if (reset_in)
681
        begin
682
                target_rd               <= #`FF_DELAY 1'b0 ;
683
        end
684
        else
685
        begin
686
                if (same_read_reg && !bckp_trdy_in)
687
                        target_rd       <= #`FF_DELAY 1'b1 ;// Signal indicates when target ready is deaserted on PCI bus
688
                else if (same_read_reg && bckp_devsel_in && !bckp_stop_in)
689
                        target_rd       <= #`FF_DELAY 1'b1 ;// Signal indicates when target ready is deaserted on PCI bus
690 26 mihad
                else if ((!same_read_reg) || (last_reg_in && target_rd))
691 21 mihad
                        target_rd       <= #`FF_DELAY 1'b0 ;// Signal indicates when target ready is deaserted on PCI bus
692
        end
693
end
694
// '1' indicates asserted TRDY signal when same read operation is performed
695
wire    target_rd_completed     = target_rd ;
696
 
697 2 mihad
reg                             same_read_request ;
698
 
699 21 mihad
// When delayed read is completed on WB, addres and bc must be compered, if there is the same read request
700 2 mihad
always@(address or strd_addr_in or bc_in or strd_bc_in)
701
begin
702
        if ((address == strd_addr_in) & (bc_in == strd_bc_in))
703
                same_read_request <= 1'b1 ;
704
        else
705
                same_read_request <= 1'b0 ;
706
end
707
 
708
assign  same_read_out = (same_read_request) ; // && ~pcir_fifo_empty_in) ;
709
 
710
// Signals for byte enable checking
711
reg                             addr_burst_ok ;
712
reg                             io_be_ok ;
713
 
714
// Byte enable checking for IO, MEMORY and CONFIGURATION spaces - be_in is active low!
715
always@(strd_address or be_in)
716
begin
717
        case (strd_address[1:0])
718
        2'b11 :
719
        begin
720
                addr_burst_ok <= 1'b0 ;
721
                io_be_ok <= (be_in[2] && be_in[1] && be_in[0]) ; // only be3 can be active
722
        end
723
        2'b10 :
724
        begin
725
                addr_burst_ok <= 1'b0 ;
726
                io_be_ok <= (~be_in[2] && be_in[1] && be_in[0]) || (be_in[3] && be_in[2] && be_in[1] && be_in[0]) ;
727
        end
728
        2'b01 :
729
        begin
730
                addr_burst_ok <= 1'b0 ;
731
                io_be_ok <= (~be_in[1] && be_in[0]) || (be_in[3] && be_in[2] && be_in[1] && be_in[0]) ;
732
        end
733
        default :       // 2'b00
734
        begin
735
                addr_burst_ok <= 1'b1 ;
736
                io_be_ok <= (~be_in[0]) || (be_in[3] && be_in[2] && be_in[1] && be_in[0]) ;
737
        end
738
        endcase
739
end
740
 
741 53 mihad
wire calc_target_abort = (norm_bc[3:1] == `BC_IO_RW) ? !io_be_ok : 1'b0 ;
742 2 mihad
 
743 21 mihad
wire [3:0]       pcir_fifo_control_input = pcir_fifo_empty_in ? 4'h0 : pcir_fifo_control_in ;
744
 
745 2 mihad
// Medium registers for data and control busses from PCIR_FIFO
746
reg             [31:0]   pcir_fifo_data_reg ;
747
reg             [3:0]    pcir_fifo_ctrl_reg ;
748
 
749
always@(posedge clk_in or posedge reset_in)
750
begin
751 21 mihad
    if (reset_in)
752 2 mihad
    begin
753 21 mihad
        pcir_fifo_data_reg <= #`FF_DELAY 32'h0000_0000 ;
754
        pcir_fifo_ctrl_reg <=  #`FF_DELAY 4'h0 ;
755 2 mihad
    end
756
    else
757
    begin
758
        if (load_medium_reg_in)
759
        begin
760 21 mihad
                pcir_fifo_data_reg <= #`FF_DELAY pcir_fifo_data_in ;
761
                pcir_fifo_ctrl_reg <= #`FF_DELAY pcir_fifo_control_input ;
762 2 mihad
        end
763
    end
764
end
765
 
766 73 mihad
// when disconnect is signalled, the next data written to fifo will be the last
767
// also when this happens, disconnect must stay asserted until last data is written to the fifo
768
reg next_write_to_pciw_fifo_is_last ;
769
 
770 2 mihad
// selecting "fifo data" from medium registers or from PCIR_FIFO
771 21 mihad
wire [31:0]      pcir_fifo_data = (sel_fifo_mreg_in && !pcir_fifo_empty_in) ? pcir_fifo_data_in : pcir_fifo_data_reg ;
772
wire [3:0]       pcir_fifo_ctrl = (sel_fifo_mreg_in && !pcir_fifo_empty_in) ? pcir_fifo_control_input : pcir_fifo_ctrl_reg ;
773 2 mihad
 
774
// signal assignments to PCI Target FSM
775 21 mihad
assign  read_completed_out = req_comp_pending_in ; // completion pending input for requesting side of the bridge
776 2 mihad
assign  read_processing_out = req_req_pending_in ; // request pending input for requesting side
777 21 mihad
  // when '1', the bus command is IO command - not supported commands are checked in pci_decoder modules
778
  wire  io_memory_bus_command = !norm_bc[3] && !norm_bc[2] ;
779 2 mihad
assign  disconect_wo_data_out = (
780 21 mihad
        ((/*pcir_fifo_ctrl[`LAST_CTRL_BIT] ||*/ pcir_fifo_empty_in || ~burst_ok_out/*addr_burst_ok*/ || io_memory_bus_command) &&
781
                ~bc0_in && ~frame_reg_in) ||
782 73 mihad
        ((pciw_fifo_full_in || pciw_fifo_almost_full_in || next_write_to_pciw_fifo_is_last || (pciw_fifo_two_left_in && pciw_fifo_wenable_out) || ~addr_burst_ok || io_memory_bus_command) &&
783 21 mihad
                bc0_in && ~frame_reg_in)
784 2 mihad
                                                                ) ;
785 21 mihad
assign  disconect_w_data_out =  (
786
        ( burst_ok_out  && !io_memory_bus_command && ~bc0_in ) ||
787
        ( addr_burst_ok && !io_memory_bus_command && bc0_in )
788
                                                                ) ;
789
assign  target_abort_out = ( ~addr_phase_in && calc_target_abort ) ;
790 2 mihad
 
791 21 mihad
`ifdef          HOST
792
        `ifdef  NO_CNF_IMAGE
793
                        // signal assignments to PCI Target FSM
794
                        assign  norm_access_to_config_out = 1'b0 ;
795
                        // control signal assignments to read request sinchronization module
796
                        assign  done_out =  (target_rd_completed && last_reg_in) ;
797
                        assign  in_progress_out = (same_read_reg && ~bckp_trdy_in) ;
798
                        // signal used for PCIR_FIFO flush (with comp_flush_in signal)
799
                        wire    pcir_fifo_flush = (target_rd_completed && last_reg_in && ~pcir_fifo_empty_in) ;
800
        `else
801
                        // signal assignments to PCI Target FSM
802
                        assign  norm_access_to_config_out = (hit0_in && hit0_conf) ;
803
                        // control signal assignments to read request sinchronization module
804
                        assign  done_out =  (~sel_conf_fifo_in && target_rd_completed && last_reg_in) ;
805
                        assign  in_progress_out = (~sel_conf_fifo_in && same_read_reg && ~bckp_trdy_in) ;
806
                        // signal used for PCIR_FIFO flush (with comp_flush_in signal)
807
                        wire    pcir_fifo_flush = (~sel_conf_fifo_in && target_rd_completed && last_reg_in && ~pcir_fifo_empty_in) ;
808
        `endif
809
`else
810
                        // signal assignments to PCI Target FSM
811
                        assign  norm_access_to_config_out = (hit0_in && hit0_conf) ;
812
                        // control signal assignments to read request sinchronization module
813
                        assign  done_out =  (~sel_conf_fifo_in && target_rd_completed && last_reg_in) ;
814
                        assign  in_progress_out = (~sel_conf_fifo_in && same_read_reg && ~bckp_trdy_in) ;
815
                        // signal used for PCIR_FIFO flush (with comp_flush_in signal)
816
                        wire    pcir_fifo_flush = (~sel_conf_fifo_in && target_rd_completed && last_reg_in && ~pcir_fifo_empty_in) ;
817
`endif
818 2 mihad
 
819
// flush signal for PCIR_FIFO must be registered, since it asinchronously resets some status registers
820 21 mihad
wire            pcir_fifo_flush_reg ;
821 77 mihad
pci_async_reset_flop async_reset_as_pcir_flush
822 21 mihad
(
823
    .data_in              (comp_flush_in || pcir_fifo_flush),
824
    .clk_in               (clk_in),
825
    .async_reset_data_out (pcir_fifo_flush_reg),
826
    .reset_in                     (reset_in)
827
) ;
828 2 mihad
 
829 73 mihad
always@(posedge clk_in or posedge reset_in)
830
begin
831
    if (reset_in)
832
        next_write_to_pciw_fifo_is_last <= #1 1'b0 ;
833
    else if (next_write_to_pciw_fifo_is_last && pciw_fifo_wenable_out)
834
        next_write_to_pciw_fifo_is_last <= #1 1'b0 ;
835
    else if (pciw_fifo_wenable_out && disconect_wo_data_out)
836
        next_write_to_pciw_fifo_is_last <= #1 1'b1 ;
837
end
838
 
839 2 mihad
// signal assignments from fifo to PCI Target FSM
840
assign  wbw_fifo_empty_out = wbw_fifo_empty_in ;
841 21 mihad
assign  wbu_del_read_comp_pending_out = wbu_del_read_comp_pending_in ;
842 2 mihad
assign  pciw_fifo_full_out = (pciw_fifo_full_in || pciw_fifo_almost_full_in || pciw_fifo_two_left_in) ;
843 21 mihad
assign  pcir_fifo_data_err_out = pcir_fifo_ctrl[`DATA_ERROR_CTRL_BIT] && !sel_conf_fifo_in ;
844 2 mihad
// signal assignments to fifo
845
assign  pcir_fifo_flush_out                                                     = pcir_fifo_flush_reg ;
846 21 mihad
assign  pcir_fifo_renable_out                                           = fetch_pcir_fifo_in && !pcir_fifo_empty_in ;
847 2 mihad
assign  pciw_fifo_wenable_out                                           = load_to_pciw_fifo_in ;
848 21 mihad
assign  pciw_fifo_control_out[`ADDR_CTRL_BIT]           = ~rdy_in ;
849
assign  pciw_fifo_control_out[`BURST_BIT]                       = rdy_in ? ~frame_reg_in : 1'b0 ;
850 2 mihad
assign  pciw_fifo_control_out[`DATA_ERROR_CTRL_BIT]     = 1'b0 ;
851 73 mihad
assign  pciw_fifo_control_out[`LAST_CTRL_BIT]           = rdy_in &&
852
                (next_write_to_pciw_fifo_is_last || last_reg_in || pciw_fifo_almost_full_in || ~addr_burst_ok || io_memory_bus_command);
853 2 mihad
 
854 21 mihad
`ifdef          HOST
855
        `ifdef  NO_CNF_IMAGE
856
                        // data and address outputs assignments to PCI Target FSM
857
                        assign  data_out = pcir_fifo_data ;
858
        `else
859
                        // data and address outputs assignments to PCI Target FSM
860
                        assign  data_out = sel_conf_fifo_in ? conf_data_in : pcir_fifo_data ;
861
        `endif
862
`else
863
                        // data and address outputs assignments to PCI Target FSM
864
                        assign  data_out = sel_conf_fifo_in ? conf_data_in : pcir_fifo_data ;
865
`endif
866
 
867 2 mihad
// data and address outputs assignments to read request sinchronization module
868
assign  req_out = req_in ;
869 21 mihad
        // this address is stored in delayed_sync module and is connected back as strd_addr_in 
870
assign  addr_out = norm_address[31:0] ; // correction of 2 LSBits is done in wb_master module, original address must be saved
871 2 mihad
assign  be_out = be_in ;
872
assign  we_out = 1'b0 ;
873
assign  bc_out = norm_bc ;
874 21 mihad
// burst is OK for reads when there is ((MEM_READ_LN or MEM_READ_MUL) and AD[1:0]==2'b00) OR
875
//   (MEM_READ and Prefetchable_IMAGE and AD[1:0]==2'b00)
876
assign  burst_ok_out = (norm_bc[3] && addr_burst_ok) || (norm_bc[2] && norm_prf_en && addr_burst_ok) ;
877
// data and address outputs assignments to PCIW_FIFO - correction of 2 LSBits 
878
assign  pciw_fifo_addr_data_out = rdy_in ? data_in : {norm_address[31:2], norm_address[1] && io_memory_bus_command,
879
                                                                                                                                                  norm_address[0] && io_memory_bus_command} ;
880 2 mihad
assign  pciw_fifo_cbe_out = rdy_in ? be_in : norm_bc ;
881
// data and address outputs assignments to Configuration space
882 21 mihad
`ifdef          HOST
883
        `ifdef  NO_CNF_IMAGE
884
                        assign  conf_data_out   = 32'h0 ;
885
                        assign  conf_addr_out   = 12'h0 ;
886
                        assign  conf_be_out             = 4'b0 ;
887
                        assign  conf_we_out             = 1'h0 ;
888
        `else
889
                        assign  conf_data_out   = data_in ;
890
                        assign  conf_addr_out   = strd_address[11:0] ;
891
                        assign  conf_be_out             = be_in ;
892
                        assign  conf_we_out             = load_to_conf_in ;
893
        `endif
894
`else
895
                        assign  conf_data_out   = data_in ;
896
                        assign  conf_addr_out   = strd_address[11:0] ;
897
                        assign  conf_be_out             = be_in ;
898
                        assign  conf_we_out             = load_to_conf_in ;
899
`endif
900
// NOT USED NOW, SONCE READ IS ASYNCHRONOUS
901
//assign        conf_re_out = fetch_conf_in ;
902
assign  conf_re_out = 1'b0 ;
903 2 mihad
 
904 21 mihad
endmodule

powered by: WebSVN 2.1.0

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