~ubuntu-branches/ubuntu/wily/acl2/wily

« back to all changes in this revision

Viewing changes to books/centaur/vl/systest/flopcode/compare.v

  • Committer: Package Import Robot
  • Author(s): Camm Maguire
  • Date: 2015-01-16 10:35:45 UTC
  • mfrom: (3.3.26 sid)
  • Revision ID: package-import@ubuntu.com-20150116103545-prehe9thgo79o8w8
Tags: 7.0-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
//
29
29
// Original author: Jared Davis <jared@centtech.com>
30
30
 
31
 
`include "spec.v"
32
 
 
33
 
`ifdef SYSTEM_VERILOG_MODE
34
 
 `include "impl.sv"
35
 
`else
36
 
 `include "impl.v"
37
 
`endif
38
 
 
39
31
// Using a global random seed seems like a good idea -- When each instance of
40
32
// randomBit2 had its own seed, they seemed to just always produce the same
41
33
// values on NCVerilog, which was terrible.
252
244
 
253
245
  wire allok = &{okf, okg, okwf, okwg};
254
246
 
 
247
`ifndef VL_SYSTEST_VCS
255
248
  always @(allok)
 
249
`else
 
250
  // On VCS we seem to get some spurious fails if we just do allok... well, we
 
251
  // can at least check on clock transitions.
 
252
  always @(posedge clk or negedge clk)
 
253
`endif
256
254
    begin
257
255
      if (allok !== 1'b1)
258
256
        $display("failure at time %d", $time);