diff options
author | Humberto Jimenez <humberto.jimenez@ni.com> | 2021-11-15 18:46:50 -0600 |
---|---|---|
committer | Wade Fife <wade.fife@ettus.com> | 2021-12-01 10:51:07 -0600 |
commit | 6fd9f37e1cc16bedaafbbf3f013e78bb4869de6c (patch) | |
tree | 7f0d9468c63e1e38f6f51a75fd561c4f903f66c6 /fpga/usrp3/top/x400/cpld | |
parent | e1ce4565dbc7336ee806adce7c087bda4fcc77ae (diff) | |
download | uhd-6fd9f37e1cc16bedaafbbf3f013e78bb4869de6c.tar.gz uhd-6fd9f37e1cc16bedaafbbf3f013e78bb4869de6c.tar.bz2 uhd-6fd9f37e1cc16bedaafbbf3f013e78bb4869de6c.zip |
fpga: x400: cpld: Add manufacturing support
This commit enables a special personality on the X410 motherboard CPLD required
for NI manufacturing purposes only.
Diffstat (limited to 'fpga/usrp3/top/x400/cpld')
-rw-r--r-- | fpga/usrp3/top/x400/cpld/Makefile | 11 | ||||
-rw-r--r-- | fpga/usrp3/top/x400/cpld/mb_cpld.v | 17 | ||||
-rw-r--r-- | fpga/usrp3/top/x400/cpld/regmap/constants_regmap_utils.vh | 2 |
3 files changed, 25 insertions, 5 deletions
diff --git a/fpga/usrp3/top/x400/cpld/Makefile b/fpga/usrp3/top/x400/cpld/Makefile index 56ae3cd82..fb147d031 100644 --- a/fpga/usrp3/top/x400/cpld/Makefile +++ b/fpga/usrp3/top/x400/cpld/Makefile @@ -22,8 +22,9 @@ 10M08_ID = "10M08SAU169I7G" # Target specific variables -X410_CPLD_10M04: DEFS = VARIANT_`echo $(10M04_ID) | cut -c1-5`=1 -X410_CPLD_10M08: DEFS = VARIANT_`echo $(10M08_ID) | cut -c1-5`=1 +X410_CPLD_10M04: DEFS = VARIANT_`echo $(10M04_ID) | cut -c1-5`=1 +X410_CPLD_10M08: DEFS = VARIANT_`echo $(10M08_ID) | cut -c1-5`=1 +X410_CPLD_MFG_10M08: DEFS = VARIANT_`echo $(10M08_ID) | cut -c1-5`=1 MFG_SUPPORT=1 TARGET = bin TOP ?= mb_cpld @@ -68,11 +69,15 @@ X410_CPLD_10M08: $(call quartus_build,$(10M08_ID),$(DEFS)) $(call post_build,"usrp_x410_cpld_`echo $(10M08_ID) | cut -c1-5 | tr A-Z a-z`") - X410_CPLD_IP: ##Build IPs only, needed for simulation. @# Building only X410_CPLD_10M04 IP $(call quartus_ip,$(10M04_ID),$(DEFS)) +# Internal manufacturing test image. +X410_CPLD_MFG_10M08: + $(call quartus_build,$(10M08_ID),$(DEFS)) + $(call post_build,"usrp_x410_cpld_mfg_`echo $(10M08_ID) | cut -c1-5 | tr A-Z a-z`") + clean: ##Clean up all target build outputs. @echo -ne "\nCleaning targets and git repo...\n"; @rm -rf build-X410_CPLD* diff --git a/fpga/usrp3/top/x400/cpld/mb_cpld.v b/fpga/usrp3/top/x400/cpld/mb_cpld.v index 2e709acd9..e9e21ac28 100644 --- a/fpga/usrp3/top/x400/cpld/mb_cpld.v +++ b/fpga/usrp3/top/x400/cpld/mb_cpld.v @@ -252,6 +252,19 @@ module mb_cpld #( // Power Supply Clock //--------------------------------------------------------------------------- +`ifdef MFG_SUPPORT + + assign PWR_SUPPLY_CLK_CORE = 1'b0; + assign PWR_SUPPLY_CLK_DDR4_S = 1'b0; + assign PWR_SUPPLY_CLK_DDR4_N = 1'b0; + assign PWR_SUPPLY_CLK_0P9V = 1'b0; + assign PWR_SUPPLY_CLK_1P8V = 1'b0; + assign PWR_SUPPLY_CLK_2P5V = 1'b0; + assign PWR_SUPPLY_CLK_3P3V = 1'b0; + assign PWR_SUPPLY_CLK_3P6V = 1'b0; + +`else + // Frequency definitions localparam SOUCE_CLOCK_FREQUENCY = 100_000_000; localparam TARGET_FREQUENCY_350k = 350_000; @@ -323,6 +336,8 @@ module mb_cpld #( assign PWR_SUPPLY_CLK_3P3V = pwr_supply_clk_1M; assign PWR_SUPPLY_CLK_3P6V = pwr_supply_clk_1M; +`endif + //--------------------------------------------------------------------------- // PL Interfaces //--------------------------------------------------------------------------- @@ -1025,7 +1040,7 @@ endmodule // </info> // <value name="PS_CPLD_SIGNATURE" integer="0x0A522D27"/> // <value name="PL_CPLD_SIGNATURE" integer="0x3FDC5C47"/> -// <value name="CPLD_REVISION" integer="0x21111614"/> +// <value name="CPLD_REVISION" integer="0x21111615"/> // <value name="OLDEST_CPLD_REVISION" integer="0x20122114"/> // </enumeratedtype> // </group> diff --git a/fpga/usrp3/top/x400/cpld/regmap/constants_regmap_utils.vh b/fpga/usrp3/top/x400/cpld/regmap/constants_regmap_utils.vh index a52461e3b..6f898a7fd 100644 --- a/fpga/usrp3/top/x400/cpld/regmap/constants_regmap_utils.vh +++ b/fpga/usrp3/top/x400/cpld/regmap/constants_regmap_utils.vh @@ -24,5 +24,5 @@ localparam CONSTANTS_ENUM_SIZE = 4; localparam PS_CPLD_SIGNATURE = 'hA522D27; // CONSTANTS_ENUM:PS_CPLD_SIGNATURE localparam OLDEST_CPLD_REVISION = 'h20122114; // CONSTANTS_ENUM:OLDEST_CPLD_REVISION - localparam CPLD_REVISION = 'h21111614; // CONSTANTS_ENUM:CPLD_REVISION + localparam CPLD_REVISION = 'h21111615; // CONSTANTS_ENUM:CPLD_REVISION localparam PL_CPLD_SIGNATURE = 'h3FDC5C47; // CONSTANTS_ENUM:PL_CPLD_SIGNATURE |