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

Subversion Repositories sc2v

[/] [sc2v/] [trunk/] [examples/] [delay_line.cpp] - Blame information for rev 36

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 13 jcastillo
#include "delay_line.h"
2
 
3
void delay_line::registers()
4
{
5
 
6
  sc_uint<8> var1,var2;
7
 
8
  if( reset.read() == 1 )
9
  {
10
    pipe_0.write( 0 );
11
    pipe_1.write( 0 );
12
    pipe_2.write( 0 );
13
    pipe_3.write( 0 );
14
 
15
   var1=0;
16
   var2=0;
17
 
18
    num_out.write( 0 );
19
  }
20
  else
21
  {
22
    pipe_0.write( num_in );
23
    pipe_1.write( pipe_0 );
24
    pipe_2.write( pipe_1 );
25
    pipe_3.write( pipe_2 );
26
 
27
    var1=pipe_0.read();
28
    var2=var1;
29
 
30
    num_out.write( pipe_3 );
31
  }
32
}

powered by: WebSVN 2.1.0

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