Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- project_new LSIC_lab_dpopescu -overwrite
- set_global_assignment -name FAMILY MAX10
- set_global_assignment -name DEVICE 10M50DAF484C7G
- set_global_assignment -name BDF_FILE example1.bdf
- set_global_assignment -name VERILOG_FILE MainSystem.v
- set_global_assignment -name SDC_FILE example1.sdc
- set_global_assignment -name TOP_LEVEL_ENTITY MainSystem
- set_location_assignment -to clk PIN_AH10
- set_location_assignment PIN_C10 -to switch_pause ; # Slide Switch[0]
- set_location_assignment PIN_A7 -to btn_start ; # PUSH BUTTON[1]
- set_location_assignment PIN_B8 -to rst ;# PUSH BUTTON[0]
- set_location_assignment PIN_P11 -to clk ;
- # Output pins for Seven Segment Digit 0
- set_location_assignment PIN_C14 -to hex0[0] ;# Segment 0
- set_location_assignment PIN_E15 -to hex0[1] ;# Segment 1
- set_location_assignment PIN_C15 -to hex0[2] ;# Segment 2
- set_location_assignment PIN_C16 -to hex0[3] ;# Segment 3
- set_location_assignment PIN_E16 -to hex0[4] ;# Segment 4
- set_location_assignment PIN_D17 -to hex0[5] ;# Segment 5
- set_location_assignment PIN_C17 -to hex0[6] ;# Segment 6
- # Output pins for Seven Segment Digit 1
- set_location_assignment PIN_C18 -to hex1[0] ;# Segment 0
- set_location_assignment PIN_D18 -to hex1[1] ;# Segment 1
- set_location_assignment PIN_E18 -to hex1[2] ;# Segment 2
- set_location_assignment PIN_B16 -to hex1[3] ;# Segment 3
- set_location_assignment PIN_A17 -to hex1[4] ;# Segment 4
- set_location_assignment PIN_A18 -to hex1[5] ;# Segment 5
- set_location_assignment PIN_B17 -to hex1[6] ;# Segment 6
- # Output pins for Seven Segment Digit 2
- set_location_assignment PIN_B20 -to hex2[0] ;# Segment 0
- set_location_assignment PIN_A20 -to hex2[1] ;# Segment 1
- set_location_assignment PIN_B19 -to hex2[2] ;# Segment 2
- set_location_assignment PIN_A21 -to hex2[3] ;# Segment 3
- set_location_assignment PIN_B21 -to hex2[4] ;# Segment 4
- set_location_assignment PIN_C22 -to hex2[5] ;# Segment 5
- set_location_assignment PIN_B22 -to hex2[6] ;# Segment 6
- # Output pins for Seven Segment Digit 3
- set_location_assignment PIN_F21 -to hex3[0] ;# Segment 0
- set_location_assignment PIN_E22 -to hex3[1] ;# Segment 1
- set_location_assignment PIN_E21 -to hex3[2] ;# Segment 2
- set_location_assignment PIN_C19 -to hex3[3] ;# Segment 3
- set_location_assignment PIN_C20 -to hex3[4] ;# Segment 4
- set_location_assignment PIN_D19 -to hex3[5] ;# Segment 5
- set_location_assignment PIN_E17 -to hex3[6] ;# Segment 6
- # Output pins for Seven Segment Digit 4
- set_location_assignment PIN_F18 -to hex4[0] ;# Segment 0
- set_location_assignment PIN_E20 -to hex4[1] ;# Segment 1
- set_location_assignment PIN_E19 -to hex4[2] ;# Segment 2
- set_location_assignment PIN_J18 -to hex4[3] ;# Segment 3
- set_location_assignment PIN_H19 -to hex4[4] ;# Segment 4
- set_location_assignment PIN_F19 -to hex4[5] ;# Segment 5
- set_location_assignment PIN_F20 -to hex4[6] ;# Segment 6
- # Output pins for Seven Segment Digit 5
- set_location_assignment PIN_J20 -to hex5[0] ;# Segment 0
- set_location_assignment PIN_K20 -to hex5[1] ;# Segment 1
- set_location_assignment PIN_L18 -to hex5[2] ;# Segment 2
- set_location_assignment PIN_N18 -to hex5[3] ;# Segment 3
- set_location_assignment PIN_M20 -to hex5[4] ;# Segment 4
- set_location_assignment PIN_N19 -to hex5[5] ;# Segment 5
- set_location_assignment PIN_N20 -to hex5[6] ;# Segment 6
- load_package flow
- execute_flow -compile
- project_close
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement