示例#1
0
文件: DataOut.cs 项目: zone31/tcp_sme
 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);
 }
示例#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);
 }