Skip to content
Snippets Groups Projects
Select Git revision
  • f371378e2d8c58e21e3e00c699bab2883ff581da
  • master default protected
  • L2SS-1914-fix_job_dispatch
  • TMSS-3170
  • TMSS-3167
  • TMSS-3161
  • TMSS-3158-Front-End-Only-Allow-Changing-Again
  • TMSS-3133
  • TMSS-3319-Fix-Templates
  • test-fix-deploy
  • TMSS-3134
  • TMSS-2872
  • defer-state
  • add-custom-monitoring-points
  • TMSS-3101-Front-End-Only
  • TMSS-984-choices
  • SDC-1400-Front-End-Only
  • TMSS-3079-PII
  • TMSS-2936
  • check-for-max-244-subbands
  • TMSS-2927---Front-End-Only-PXII
  • Before-Remove-TMSS
  • LOFAR-Release-4_4_318 protected
  • LOFAR-Release-4_4_317 protected
  • LOFAR-Release-4_4_316 protected
  • LOFAR-Release-4_4_315 protected
  • LOFAR-Release-4_4_314 protected
  • LOFAR-Release-4_4_313 protected
  • LOFAR-Release-4_4_312 protected
  • LOFAR-Release-4_4_311 protected
  • LOFAR-Release-4_4_310 protected
  • LOFAR-Release-4_4_309 protected
  • LOFAR-Release-4_4_308 protected
  • LOFAR-Release-4_4_307 protected
  • LOFAR-Release-4_4_306 protected
  • LOFAR-Release-4_4_304 protected
  • LOFAR-Release-4_4_303 protected
  • LOFAR-Release-4_4_302 protected
  • LOFAR-Release-4_4_301 protected
  • LOFAR-Release-4_4_300 protected
  • LOFAR-Release-4_4_299 protected
41 results

t_scheduling.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    sim_transceiver_serializer.vhd 6.05 KiB
    --------------------------------------------------------------------------------
    --
    -- Copyright (C) 2012
    -- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
    -- JIVE (Joint Institute for VLBI in Europe) <http://www.jive.nl/>
    -- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
    --
    -- This program is free software: you can redistribute it and/or modify
    -- it under the terms of the GNU General Public License as published by
    -- the Free Software Foundation, either version 3 of the License, or
    -- (at your option) any later version.
    --
    -- This program is distributed in the hope that it will be useful,
    -- but WITHOUT ANY WARRANTY; without even the implied warranty of
    -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    -- GNU General Public License for more details.
    --
    -- You should have received a copy of the GNU General Public License
    -- along with this program.  If not, see <http://www.gnu.org/licenses/>.
    --
    --------------------------------------------------------------------------------
    
    -- Purpose:
    --   Basic serializer model for fast transceiver simulation
    -- Description:
    --   The model serializes parallel data using 10 serial bits per byte. The two 
    --   extra bits are used to transfer (XGMII) control. The model can represent
    --   any real transceiver encoding scheme (10b/8b, 66b/64b) because it the
    --   modelled line rate does not have to be the same as the true line rate.
    --   The key feature that the model provides is that the parallel data gets
    --   transported via a single 1-bit lane. This allows fast simulation of the 
    --   link using the true port widths. The model also assumes that the
    --   transceivers on both sides of the link use the same tr_clk. Therefore any
    --   delay on the link must be an integer number of tr_clk cycles.
    --   This model can be connected to the transmitter entity serial transmitter
    --   output in simulation. As all serializers in the simualation are
    --   simultaneously released from reset and share the same transceiver
    --   reference clock, we don't need to worry about synchronization and can
    --   simply assign one or more bits per serial group as validity indicator. The
    --   most straightforward is to mimic 10/8 encoding for as far as data rates
    --   and clock ratios are concerned (not the encoding itself):
    --   * User data rate = (8/10)*line data rate
    --   * User clock frequency = User data rate / user data width
    --   * Serial data block size = 10 bits [9..0] LSb sent first
    --     *  [9] = Unused, '0'., indiced by 'x' (so 9/8 encoding would suffice too).
    --     *  [8] = Control bit.
    --     *  [7..0] = Data
    --   * Word/byte alignment is not required because reference clk and rst are
    --     global in simulation: what gets transmitted first is received first.
    --   
    --  The following diagram shows the serialization of the 32-bit word 0x2. The
    --  grid of dots indicates the bit resolution. Note the 1 serial cycle of delay
    --  before the first bit is put on the line.
    --
    --               . _______________________________________ . . . . . . . . . . . . . . . . . . . . .
    -- tr_clk        _|. . . . . . . . . . . . . . . . . . . .|_________________________________________
    --               _ . . _ . . . . . . _ . . . . . . . . . _ . . . . . . . . . _ . . . . . . . . . _ .        
    -- tx_serial_out .|___|.|___________|.|_________________|.|_________________|.|_________________|.|_
    --              
    --               c x 0 1 2 3 4 5 6 7 c x 0 1 2 3 4 5 6 7 c x 0 1 2 3 4 5 6 7 c x 0 1 2 3 4 5 6 7 c x
    --                  |<----- Byte 0 ---->|<----- Byte 1 ---->|<----- Byte 2 ---->|<----- Byte 3 ---->|
    --
    -- Remarks:
    -- . All serializers in the simualation should be simultaneously released from 
    --   reset and have to share the same transceiver reference clock.
    -- . The number of line clock cycles to transmit one data word fits within 1
    --   tr_clk period. After every data word the data is realigned to the tr_clk.
    
    
    LIBRARY IEEE, common_lib;