busrecord.v

来自「xilinx官方PCIcore 有详细说明文档」· Verilog 代码 · 共 81 行

V
81
字号
/***********************************************************************   File:   busrecord.v  Rev:    3.0.0  This module saves the state of the PCI bus signals into a file at  every positive edge of the clock.  After simulation, the output  file can be compared to a known good file to verify the sameness  of two designs.  Copyright (c) 2003 Xilinx, Inc.  All rights reserved.***********************************************************************/module busrecord (                AD,                CBE,                PAR,                PAR64,                FRAME_N,                REQ64_N,                TRDY_N,                IRDY_N,                STOP_N,                DEVSEL_N,                ACK64_N,                PERR_N,                SERR_N,                INTR_A,                IDSEL,                REQ_N,                GNT_N,                RST_N,                CLK                );  // Port Directions  input  [63:0] AD;  input   [7:0] CBE;  input         PAR;  input         PAR64;  input         FRAME_N;  input         REQ64_N;  input         TRDY_N;  input         IRDY_N;  input         STOP_N;  input         DEVSEL_N;  input         ACK64_N;  input         PERR_N;  input         SERR_N;  input         INTR_A;  input         IDSEL;  input         REQ_N;  input         GNT_N;  input         RST_N;  input         CLK;   integer       file_ptr;  initial  begin    $timeformat(-9, 0, " NS", 0);     file_ptr = $fopen("waves.tbl");   end  always @(posedge CLK)  begin    $fdisplay(file_ptr,"%b %b %b %b %b %b %b %b %b %b %b %b %b %b %b %b %b %t",              AD, CBE, PAR, PAR64, FRAME_N, REQ64_N, TRDY_N, IRDY_N, STOP_N,              DEVSEL_N, ACK64_N, PERR_N, SERR_N, INTR_A, IDSEL, REQ_N, GNT_N,              $realtime);  endendmodule

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?