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

Subversion Repositories socgen

[/] [socgen/] [trunk/] [common/] [opencores.org/] [Testbench/] [bfms/] [io_probe/] [rtl/] [verilog/] [top.body.in] - Rev 131

Compare with Previous | Blame | View Log


reg   [WIDTH-1:0]          filtered_value;
reg   [WIDTH:1]            fail;
   

      
always @(posedge clk)   filtered_value <=   signal;
always @(posedge clk)   fail           <=   mask & (signal^ expected_value);  


initial
  begin
    cg.next(3);
    while(1)
      begin
      if(fail !== {WIDTH{1'b0}})        
           begin
           $display("%t %m              value %x   failure on bit(s)  %b",$realtime,filtered_value,fail );
           cg.fail(MESG);
           end
      cg.next(1);
      end // while (1)
  end // initial begin
   
  
   
   

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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