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); }
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); }