Ejemplo n.º 1
0
 public DataOut(TrueDualPortMemory <byte> memory, int memory_size)
 {
     // Set up the header information
     this.memory      = memory;
     this.memory_size = memory_size;
     this.controlB    = memory.ControlB;
     this.controlA    = memory.ControlA;
     this.readResultA = memory.ReadResultA;
     this.readResultB = memory.ReadResultB;
     this.mem_calc    = new SingleMemorySegmentsRingBufferFIFO <TempData>(mem_calc_num_segments, memory_size);
     this.buffer_calc = new SingleMemorySegmentsRingBufferFIFO <TempData>(send_buffer_size, send_buffer_size);
 }
Ejemplo n.º 2
0
 public DataIn(TrueDualPortMemory <byte> memory, int memory_size)
 {
     // Set up the header information
     this.memory      = memory;
     this.memory_size = memory_size;
     this.controlB    = memory.ControlB;
     this.controlA    = memory.ControlA;
     this.readResultA = memory.ReadResultA;
     this.readResultB = memory.ReadResultB;
     this.mem_calc    = new MultiMemorySegmentsRingBufferFIFO <InputData>(mem_calc_num_segments, memory_size);
     // XXX better magic numbers
     this.sequence_dict = new DictionaryListSparseLinked <SequenceInfo>(10, 100);
     // Define the little ring buffer for the outgoing packets
     this.buffer_calc = new SingleMemorySegmentsRingBufferFIFO <InputData>(send_buffer_size, send_buffer_size);
 }