/* ************************************************************ */
declare PAR8 {
input Data_i[8] ;
output Parity_o1 ;
output Parity_o2 ;
}
/* ************************************************************ */
// Declare module
module PAR8 {
/* ************************************************************ */
// Internal operation signals
/* ************************************************************ */
// Equation
{
// Syntax Example #1
Parity_o1 = {
Data_i[7] ^ Data_i[6] ^ Data_i[5] ^ Data_i[4] ^
Data_i[3] ^ Data_i[2] ^ Data_i[1] ^ Data_i[0]
} ;
// Syntax Example #1
Parity_o2 = ^( Data_i[7:0] ) ;
}
}
/* ************************************************************ */