mi.ss 5.7 KB
/*****************************************************************************/
/* custom variables                                                          */
/*****************************************************************************/
module = "mi"
wire_load = 256000
standard_load = 0.01
clock = "clock"
default_input_delay = 1.5
default_output_delay = 13.0
/*
default_pin_delay = 11.0
*/
default_pin_delay = 13.0
default_input_load = 20
default_output_load = 20
default_pin_load = 150
default_drive_cell = "dfntnh"
default_drive_pin = "q"
default_period = 16.0
default_max_transition = 2.0
default_uncertainty = 1.0


/*****************************************************************************/
/* set the path and read                                                     */
/*****************************************************************************/
search_path = search_path \
   + "../src" \
   + "../../inc" \
   + "../../../lib/verilog/user" \
   + "../../syn"

read -f verilog cbus_driver.v
read -f verilog dbus_driver.v
read -f verilog ebus_driver.v
read -f verilog module + ".v"


/*****************************************************************************/
/* default environment                                                       */
/*****************************************************************************/
set_operating_conditions NOM
set_wire_load wire_load -mode top


/*****************************************************************************/
/* clock constraints                                                         */
/*****************************************************************************/
create_clock clock -period default_period -waveform { 0.0 default_period / 2 }
set_clock_skew -propagated -uncertainty default_uncertainty clock
set_dont_touch_network clock


/*****************************************************************************/
/* default constraint                                                        */
/*****************************************************************************/
set_max_area 0
set_dont_touch { ne35hd130d/nt01d* }

set_input_delay default_input_delay -clock clock all_inputs() > /dev/null
set_output_delay default_output_delay -clock clock all_outputs() > /dev/null
set_load default_output_load * standard_load all_outputs() > /dev/null
set_load default_input_load * standard_load all_inputs() > /dev/null
set_driving_cell -cell default_drive_cell -pin default_drive_pin all_inputs() > /dev/null

set_drive 0 { clock }
set_input_delay 0 { clock }
set_fix_hold all_clocks()

set_max_transition default_max_transition current_design

set_input_delay 5.0 -clock clock { sp_interrupt }

/*****************************************************************************/
/* custom constraints                                                        */
/*****************************************************************************/
set_driving_cell -cell ni01d5 { *_read_enable *_write_enable }
set_input_delay 5.0 -clock clock { cbus_read_enable }
set_input_delay 5.0 -clock clock { cbus_write_enable }
set_input_delay 5.0 -clock clock { dbus_read_enable }
set_input_delay 5.0 -clock clock { dbus_write_enable }

set_driving_cell -cell nt01d5 { cbus_data dbus_data ebus_data }
set_load 350 * standard_load { cbus_data dbus_data ebus_data }
set_input_delay 10.0 -clock clock { cbus_data dbus_data ebus_data }
set_output_delay 6.0 -clock clock { cbus_data dbus_data ebus_data }

set_driving_cell -cell ni01d5 { dma_start dma_last }
set_load 100 * standard_load { dma_start dma_last }
set_max_fanout 2 * standard_load { dma_start dma_last }

set_driving_cell -cell ni01d5 { cbus_command cbus_select }
set_load 200 * standard_load { cbus_command cbus_select }
set_max_fanout 2 * standard_load { cbus_command cbus_select }

/*
set_load 3.0 { sys_ad_out_h }
set_load 3.5 { sys_cmd_out_h }
set_load 3.0 { e_ok_l }
set_load 2.5 { e_valid_l }
set_load 2.5 { int_l }
set_load 4.5 { sys_ad_enable_l }
*/
/* increase these load to compensate for metal resistance */
set_load 6.0 { sys_ad_out_h }
set_load 6.0 { sys_cmd_out_h }
set_load 6.0 { e_ok_l }
set_load 6.0 { e_valid_l }
set_load 6.0 { int_l }
set_load 6.0 { sys_ad_enable_l }

set_output_delay default_pin_delay -clock clock \
   { sys_ad_out_h sys_cmd_out_h e_valid_l e_ok_l int_l }

set_output_delay 11.0 -clock clock { sys_ad_enable_l }

set_false_path -fall -from reset_l
set_max_fanout 2 * standard_load reset_l

current_design mi_buffer
set_dont_touch { g_0_l, g_0_h, g_1_l, g_1_h, \
  g_2_l, g_2_h, g_3_l, g_3_h }
set_dont_touch { wr_d_latl }
set_dont_touch { wr_d_lath }

compile -map_effort high -ungroup_all

current_design mi


/*****************************************************************************/
/* check                                                                     */
/*****************************************************************************/
link
check_design > module + ".lint"


/*****************************************************************************/
/* compile                                                                   */
/*****************************************************************************/
compile -map_effort high -ungroup_all


/*****************************************************************************/
/* write                                                                     */
/*****************************************************************************/
/* set loads to realistic numbers for reporting */
set_load 3.2 { sys_ad_out_h }
set_load 3.5 { sys_cmd_out_h }
set_load 3.0 { e_ok_l }
set_load 2.5 { e_valid_l }
set_load 2.5 { int_l }
set_load 4.5 { sys_ad_enable_l }

include "report.dc"

write -format edif -hierarchy -o module + ".edf" module
write -format db -hierarchy -o module + ".db" module

quit