ofb_vck190: Architecture and Design Description¶
1. Block diagram¶
2. Clocks and resets¶
| Clock | Source | Use |
|---|---|---|
MgmtClk |
CIPS pl0_ref_clk, 100 MHz (clk_pl_0) |
MIB, free-running clock of the transceiver reset controller, power-on reset (with the fabric reset pl0_resetn), LED poller |
UserClk |
CIPS pl1_ref_clk, 150 MHz (clk_pl_1) |
User side of the core (VC and broadcast ports, echo) |
LaneClk |
ofb_pa_gty (transmit user clock, 156.25 MHz) |
CoreClk and LaneClk of the core |
CoreClk is the lane clock, so that it is never slower than LaneClk (CORE-CK-01). UserClk is independent of
the link and exercises the user clock crossings of the core; at 150 MHz a VC port of 128 bits carries 19.2 Gbit/s,
more than the 18.7 Gbit/s that four lanes deliver (94 % of the payload capacity, user guide section 7). In
simulation (IncludeCips_g = false) clock models of the same frequencies replace the CIPS.
The core and the adapter are reset by the power-on reset. The transmitter ready status of the adapter
(Stat_TxReady, a register of the free-running clock) drives Phy_TxReady of the core, which holds the link in
Near-End Reset until the transmitters are ready, also while the lane clock stands still during a reset of the
transmitters. The echo needs no buffering: the output
port of every VC (M_Vc) feeds the input port of the same VC (S_Vc), back-pressure included. The serial loopback
enables of the core drive the adapter, and the comma alignment of the adapter (Stat_Aligned) is the bit
synchronisation status of the core (Phy_BitSync, LANE_STATUS bit 6). The PRBS test signals of the core (Phy_Prbs*)
connect to the PRBS generator and checker of the transceiver channels.
3. Register access¶
The MIB has one AXI4-Lite port and two masters. In the block design ofb_cips a SmartConnect (mib_axi, clock
pl0, reset from a proc_sys_reset of pl0_resetn) takes the master port M_AXI_FPD of the CIPS (32 bits) and the
LED poller of the top level (S_AXI_POLL), arbitrates between them and drives the MIB (M_AXI_MIB, AXI4-Lite,
32 bits). Address map:
| Master | MIB registers |
|---|---|
| CIPS M_AXI_FPD | 0xA400_0000 to 0xA400_0FFF (register offset = address - 0xA400_0000) |
| LED poller | 0x000 to 0xFFF |
M_AXI_MIB carries 32 address bits; the top level uses bits 11:0. Over JTAG, XSDB reads and writes the registers
through the debug access port of the device without software on the board (hardware test procedure, section 7). In
simulation (IncludeCips_g = false) the poller drives the MIB port directly.
4. Constraints (constr/ofb_vck190.xdc)¶
- Transceiver reference clock
gt_refclk, selected bytcl/build.tcl: Si570 (default, 100 MHz after power-up) on AB11 / AB10 (GTY_REFCLK0 of quad 201, used by quad 200,constr/ofb_vck190_refclk_si570.xdc) or 8A34001 output Q1 (156.25 MHz) on AD11 / AD10 (MGTREFCLK1 of quad 200,constr/ofb_vck190_refclk_8a34001.xdc);tcl/build.tclwrites the clock constraint at the selected frequency into the project directory and reads it beforeofb_vck190.xdc(processing order EARLY): the clock pair constraints find the lane clock as the clock of the transceiver output clock buffer, which exists only oncegt_refclkis defined. The clocks of the CIPS are created by its IP constraints (clk_pl_0,clk_pl_1). - Quad location GTY_QUAD_X1Y0 (quad 200) and the serial pins of channels 0 to 3.
- LEDs on H34, J33, K36, L35 (LVCMOS18), false path.
- Crossings between
clk_pl_0,clk_pl_1and the lane clock:set_max_delay -datapath_onlywith the period of the faster clock of each pair, as required by Open Logic; the scoped constraints of the Open Logic base entities are added for implementation (their cell patterns also match the three chains ofSyncTmr_g= true). The scoped constraint ofolo_intf_syncis not loaded: it constrains device pins, and the design usesolo_intf_synconly for internal asynchronous signals (transceiver status, far-end loopback, lane reset), whose crossings the clock pair constraints cover.
5. Build (tcl/build.tcl)¶
Every Versal design needs the CIPS IP: its platform management controller loads the device image. The script
creates the block design ofb_cips with one versal_cips (JTAG boot) whose PMC clock generator drives two clocks of
the programmable logic (pl0_ref_clk 100 MHz, pl1_ref_clk 150 MHz) and the fabric reset pl0_resetn, all three
external ports of the block design, and whose master port M_AXI_FPD reaches the MIB (section 3); it generates the
wrapper and sets IncludeCips_g = true, so that the top instantiates it. The simulations keep the default false and
use clock models instead.
vivado -mode batch -source hdl/ofb_vck190/tcl/build.tcl [-tclargs <step> <refclk> <frequency>] (step project,
rtl, synth, impl or all, default all; reference clock si570 (default) or 8a34001; frequency 100 or 156.25
MHz, default 100 with si570 and 156.25 with 8a34001) creates the project in vivado_out/ofb_vck190 or in the
directory of the environment variable OFB_VIVADO_OUT (on Windows at most about 40 characters, see the hardware test
procedure) (Open Logic in the library olo, OpenFibre in the default library, VHDL-2008, all files of one library
with one add_files call), creates the transceiver wizard instance at the frequency of the reference clock with
hdl/ofb_pa_gty/tcl/ofb_gtw.tcl, adds the constraints and runs the requested steps up to the device image; the
results of a complete build go to results in the project directory. The implementation run uses the strategy
Performance_ExplorePostRoutePhysOpt (several placement and routing directives, physical optimization also after
routing).
The constraint integrity check (tcl/build_checks.tcl, plain Tcl, tested by tcl/test/build_checks_test.tcl in the
CI) reads the logs of the synthesis and implementation runs for constraints that did not apply (an object query that
matched nothing: Vivado 12-180, 12-507, 12-508, 12-584, 12-627, 12-1008, 12-4739, Designutils 20-1280, Common 17-55,
Common 17-1548; and olo_base_ram_sdp-1, a distributed RAM of Open Logic whose read capture register was not found)
and the methodology report for TIMING-6, TIMING-7 and TIMING-47. Known exceptions can be listed with their expected
number of messages (another number fails the check); none is expected since Open Logic 4.7.0-ft.11, whose
constraint of the distributed RAM read path also matches the registers retimed by synthesis (verification report,
section 3). The build stops on a failed check, after synthesis or after the
implementation results are written (results/constraint_check.txt). The timing summary (worst setup and hold slack,
failing endpoints) goes to the console and to build_info.txt; a design that misses timing also stops the build
after the results are written ("BUILD FAILED").