cvvalue.v
1.26 KB
/**************************************************************************
* *
* Copyright (C) 1994, Silicon Graphics, Inc. *
* *
* These coded instructions, statements, and computer programs contain *
* unpublished proprietary information of Silicon Graphics, Inc., and *
* are protected by Federal copyright law. They may not be disclosed *
* to third parties or copied or duplicated in any form, in whole or *
* in part, without the prior written consent of Silicon Graphics, Inc. *
* *
*************************************************************************/
// $Id: cvvalue.v,v 1.1 2002/05/21 23:55:43 berndt Exp $
/* Project Reality
MDP
Created by Mike M. Cai 6/4/94
*/
module cvvalue(cv_value, mask_in);
output [3:0] cv_value;
input [15:0] mask_in;
// coverage value mask[15:0] = 16'b1010010110100101
assign cv_value = mask_in[15] + mask_in[13] + mask_in[10] +
mask_in[8] + mask_in[7] + mask_in[5] +
mask_in[2] + mask_in[0];
endmodule // cvvalue