User guide
Chapter 16: Transceiver Reconfiguration Controller IP Core 16–33
xcvr_diffmifgen Utility
November 2012 Altera Corporation Altera Transceiver PHY IP Core
User Guide
All MIF files must contain the lines shown in Table 16–26.
Figure 16–5 provides an example of a typical MIF format. Entries 3, 7, and <n> are 
data records. 
xcvr_diffmifgen Utility
The 
xcvr_diffmifgen
 utility allows you to create a .mif file that includes the 
differences in settings between two configurations. For example, if you have two 
configurations, inst0_1g_txpll0.mif that sets a TX PLL0 bandwidth to 1 Gbps and 
inst0_5g_txpll0.mif that sets the TX PLL0 bandwidth to 5 Gbps, the 
xcvr_diffmifgen
utility creates to_inst0_1g_txpll0.mif and to_inst0_5g_txpll0.mif that include the 
information necessary to change from 1 Gbps to 5 Gbps and from 5 Gbps to 1 Gbps. 
You can use these files to reduce reconfiguration and simulation times. 
The 
xcvr_diffmifgen
 utility can operate on up to five MIF files. This utility only 
works on MIF files at the same revision level. If you try to compare MIF files that are 
not at the same revision level, 
xcvr_diffmifgen
 issues a warning. 
1 You can also use the Reduced MIF Creation to create reduced MIF files.
Table 16–26. Required Lines for All MIFs 
Line Number Description Content Includes 
0 Specifies start of the reconfiguration MIF
Start of MIF opcode
1 Specifies the type of MIF
Type of MIF opcode
2 Specifies the reference clock
RefClk switch opcode
3 Specifies the PLL switch
CGB PLL switch opcode
Last Specifies end of reconfiguration MIF
End of MIF Opcode
Figure 16–5. MIF File Format
Length = 00 
1 
 2 
3
4 
 5 
6 
7 
8
<n>
<n>
+1 
<n>
+2 
<n>
+3 
MIF/Quartus Version Opcode = Start of MIF
Length = 0 Input Clock Index Opcode = Input Clock Index
Length = 0 PLL Index Opcode = PLL
Length = 0 Reserved Opcode = End of MIF
Length = 3 Offset Address N
Data for Offset N
Length = 1 Offset M
Data for Offset M
Data for Offset N + 1
Data for Offset N + 2
Length = 2 Offset Address L
Data for Offset L
Data for Offset L + 1
15 11 10
.
.
.
.
.
.
504










