module: bus8_to_double
description: 
parameters:  
inputs:  bool in[7:0]
outputs:  double out
classes:  
static_variables:  
init:  
end:  
code:  

int i;

out = 0.0;
for (i = 0; i < 8; i++)
  {
   out += (double) (in.get_elem(i)*(1<<i)); 
  }