DHBKM1024I-8 Improved constraints for DHB fpga, moved DHB/HMB FPGA to 0x70

This commit is contained in:
Christos Spirotis 2020-07-24 14:08:34 +01:00
commit b5e6c4537b
11 changed files with 34 additions and 5 deletions

View file

@ -42,6 +42,12 @@ create_clock -name {clk25_in} -period 40.000 -waveform { 0.000 20.000 } [get_por
create_clock -name {lvds_clk_in} -period 20.000 -waveform { 0.000 10.000 } [get_ports {lvds_clk_in}]
create_clock -period 1000.000 -name virtual_ext_clk_1MHz
create_clock -period 4.000 -name virtual_ext_clk_250MHz
create_clock -period 4.000 -waveform { 2.000 4.000 } -name virtual_ext_clk_250MHzi
#**************************************************************
# Create Generated Clock
#**************************************************************
@ -64,31 +70,54 @@ derive_clock_uncertainty
# Set Input Delay
#**************************************************************
set_input_delay -max 100.0 -clock virtual_ext_clk_1MHz [get_ports {buck_good* sda_fpga scl_fpga}]
set_input_delay -min 0.0 -clock virtual_ext_clk_1MHz [get_ports {buck_good* sda_fpga scl_fpga}] -add_delay
set_input_delay -max 0.000 -clock virtual_ext_clk_250MHz [get_ports {lvds_d_in[*]}]
set_input_delay -min 0.000 -clock virtual_ext_clk_250MHz [get_ports {lvds_d_in[*]}] -add_delay
set_input_delay -max 0.000 -clock_fall -clock virtual_ext_clk_250MHz [get_ports {lvds_d_in[*]}] -add_delay
set_input_delay -min 0.000 -clock_fall -clock virtual_ext_clk_250MHz [get_ports {lvds_d_in[*]}] -add_delay
#**************************************************************
# Set Output Delay
#**************************************************************
set_output_delay -max 100.0 -clock virtual_ext_clk_1MHz [get_ports {buck_en* heater_en* sda_fpga scl_fpga nled_g nled_y nled_r}]
set_output_delay -min 0.0 -clock virtual_ext_clk_1MHz [get_ports {buck_en* heater_en* sda_fpga scl_fpga nled_g nled_y nled_r}] -add_delay
set_output_delay -max 0.000 -clock virtual_ext_clk_250MHzi [get_ports {lvds_d_out[*] lvds_d_out[*](n)}]
set_output_delay -min -0.000 -clock virtual_ext_clk_250MHzi [get_ports {lvds_d_out[*] lvds_d_out[*](n)}] -add_delay
set_output_delay -max 0.000 -clock_fall -clock virtual_ext_clk_250MHzi [get_ports {lvds_d_out[*] lvds_d_out[*](n)}] -add_delay
set_output_delay -min -0.000 -clock_fall -clock virtual_ext_clk_250MHzi [get_ports {lvds_d_out[*] lvds_d_out[*](n)}] -add_delay
set_max_skew -to [get_ports {dclk_l s_l[*] latch_l load_l gsclk_l plstm2_l plstm1_l stb_l}] 1.000
set_max_skew -to [get_ports {dclk_r s_r[*] latch_r load_r gsclk_r plstm2_r plstm1_r stb_r}] 1.000
#**************************************************************
# Set Clock Groups
#**************************************************************
set_clock_groups -asynchronous -group [get_clocks {virtual_ext_clk_1MHz}] -group [get_clocks {\GEN_PLL:pll_25in_100out_inst|altpll_component|auto_generated|pll1|clk[0]}]
#**************************************************************
# Set False Path
#**************************************************************
set_false_path -setup -rise_from [get_clocks {virtual_ext_clk_250MHz}] -rise_to [get_clocks {\GEN_LVDS_RX:lvds_link_sl_inst|lvds_pll_inst|altpll_component|auto_generated|pll1|clk[3]}]
set_false_path -setup -fall_from [get_clocks {virtual_ext_clk_250MHz}] -fall_to [get_clocks {\GEN_LVDS_RX:lvds_link_sl_inst|lvds_pll_inst|altpll_component|auto_generated|pll1|clk[3]}]
set_false_path -hold -rise_from [get_clocks {virtual_ext_clk_250MHz}] -fall_to [get_clocks {\GEN_LVDS_RX:lvds_link_sl_inst|lvds_pll_inst|altpll_component|auto_generated|pll1|clk[3]}]
set_false_path -hold -fall_from [get_clocks {virtual_ext_clk_250MHz}] -rise_to [get_clocks {\GEN_LVDS_RX:lvds_link_sl_inst|lvds_pll_inst|altpll_component|auto_generated|pll1|clk[3]}]
set_false_path -setup -rise_from [get_clocks {\GEN_LVDS_RX:lvds_link_sl_inst|lvds_pll_inst|altpll_component|auto_generated|pll1|clk[3]}] -rise_to [get_clocks {virtual_ext_clk_250MHzi}]
set_false_path -setup -fall_from [get_clocks {\GEN_LVDS_RX:lvds_link_sl_inst|lvds_pll_inst|altpll_component|auto_generated|pll1|clk[3]}] -fall_to [get_clocks {virtual_ext_clk_250MHzi}]
set_false_path -hold -rise_from [get_clocks {\GEN_LVDS_RX:lvds_link_sl_inst|lvds_pll_inst|altpll_component|auto_generated|pll1|clk[3]}] -fall_to [get_clocks {virtual_ext_clk_250MHzi}]
set_false_path -hold -fall_from [get_clocks {\GEN_LVDS_RX:lvds_link_sl_inst|lvds_pll_inst|altpll_component|auto_generated|pll1|clk[3]}] -rise_to [get_clocks {virtual_ext_clk_250MHzi}]
#**************************************************************
# Set Multicycle Path
#**************************************************************
#**************************************************************
# Set Maximum Delay
#**************************************************************

View file

@ -10,7 +10,7 @@ Quad-Serial configuration device dummy clock cycle: 8
Notes:
- Data checksum for this conversion is 0xF9983ADB
- Data checksum for this conversion is 0xF992541B
- All the addresses in this file are byte addresses

View file

@ -38,7 +38,7 @@ module simple_i2c_slave
// Internal Declarations
//----------------------------------------------------------------------------
// Parameters
parameter DEVICE_ADDRESS = 7'h38; // 7 bit Device Address
parameter DEVICE_ADDRESS = 7'h70; // 7 bit Device Address
parameter WR_SIZE = 2'd3;
// Timing

View file

@ -38,7 +38,7 @@ module simple_i2c_slave
// Internal Declarations
//----------------------------------------------------------------------------
// Parameters
localparam DEVICE_ADDRESS = 7'h39; // 7 bit Device Address
localparam DEVICE_ADDRESS = 7'h70; // 7 bit Device Address
// Timing
// I2C State Machine States

View file

@ -13,7 +13,7 @@
#include "hal/CTestAuto.h"
#define CMD_READ_OFFSET 0x80
#define I2C_ADDR_FPGA 0x38
#define I2C_ADDR_FPGA 0x70
#define I2C_ADDR_DAC 0x49
#define I2C_ADDR_DACC 0x4A
#define I2C_ADDR_STM8 0x10