/* slop_pad.script This simple script file was used to place a test file on the FPGA, we managed to write and read successfully into and out of the SRAM. We clock things in by hand, and so only wrote and read from 8 values (so we could test quickly and easily.) It worked well. */ set_port_is_pad "*" set_pad_type -no_clock clock set_pad_type -no_clock reset set_pad_type -no_clock input_complete uniquify insert_pads set_attribute {"reset"} "pad_location" -type string "H17" set_attribute {"clock"} "pad_location" -type string "U1" set_attribute {"memory_enable"} "pad_location" -type string "F1" set_attribute {"memory_read"} "pad_location" -type string "E2" set_attribute {"memory_write"} "pad_location" -type string "B1" set_attribute {"DA_write"} "pad_location" -type string "A12" /*LED9*/ set_attribute {"input_complete"} "pad_location" -type string "P17"/*24*/ set_attribute {"observe_address[0]"} "pad_location" -type string "A11" /*to LED's*/ set_attribute {"observe_address[1]"} "pad_location" -type string "A13" set_attribute {"observe_address[2]"} "pad_location" -type string "A14" /*because we're actually only addressing 3 bits of memory(that's right 8 different ram values!) so we've output the address to the led's*/ /*to sram address lines*/ set_attribute {"address_line[0]"} "pad_location" -type string "N3" set_attribute {"address_line[1]"} "pad_location" -type string "P1" set_attribute {"address_line[2]"} "pad_location" -type string "P2" set_attribute {"address_line[3]"} "pad_location" -type string "P3" set_attribute {"address_line[4]"} "pad_location" -type string "R1" set_attribute {"address_line[5]"} "pad_location" -type string "R2" set_attribute {"address_line[6]"} "pad_location" -type string "T1" set_attribute {"address_line[7]"} "pad_location" -type string "T5" set_attribute {"address_line[8]"} "pad_location" -type string "D1" set_attribute {"address_line[9]"} "pad_location" -type string "D2" set_attribute {"address_line[10]"} "pad_location" -type string "E3" set_attribute {"address_line[11]"} "pad_location" -type string "U4" set_attribute {"address_line[12]"} "pad_location" -type string "T6" set_attribute {"address_line[13]"} "pad_location" -type string "C1" set_attribute {"address_line[14]"} "pad_location" -type string "E1" set_attribute {"AD_data[0]"} "pad_location" -type string "V15" /* pin 40-33*/ set_attribute {"AD_data[1]"} "pad_location" -type string "U14" set_attribute {"AD_data[2]"} "pad_location" -type string "T13" set_attribute {"AD_data[3]"} "pad_location" -type string "V16" set_attribute {"AD_data[4]"} "pad_location" -type string "U15" set_attribute {"AD_data[5]"} "pad_location" -type string "T14" set_attribute {"AD_data[6]"} "pad_location" -type string "U18" set_attribute {"AD_data[7]"} "pad_location" -type string "P16" set_attribute {"DA_data[0]"} "pad_location" -type string "C2" /* LED 0-7*/ set_attribute {"DA_data[1]"} "pad_location" -type string "A7" set_attribute {"DA_data[2]"} "pad_location" -type string "A4" set_attribute {"DA_data[3]"} "pad_location" -type string "A5" set_attribute {"DA_data[4]"} "pad_location" -type string "A6" set_attribute {"DA_data[5]"} "pad_location" -type string "A8" set_attribute {"DA_data[6]"} "pad_location" -type string "A9" set_attribute {"DA_data[7]"} "pad_location" -type string "A10" set_attribute {"sram_bus[0]"} "pad_location" -type string "N2" /*to sram*/ set_attribute {"sram_bus[1]"} "pad_location" -type string "N1" set_attribute {"sram_bus[2]"} "pad_location" -type string "M1" set_attribute {"sram_bus[3]"} "pad_location" -type string "L3" set_attribute {"sram_bus[4]"} "pad_location" -type string "L2" set_attribute {"sram_bus[5]"} "pad_location" -type string "L1" set_attribute {"sram_bus[6]"} "pad_location" -type string "K2" set_attribute {"sram_bus[7]"} "pad_location" -type string "K1" set_attribute {"sram_bus[8]"} "pad_location" -type string "J2" set_attribute {"sram_bus[9]"} "pad_location" -type string "J1" set_attribute {"sram_bus[10]"} "pad_location" -type string "H3" set_attribute {"sram_bus[11]"} "pad_location" -type string "H2" set_attribute {"sram_bus[12]"} "pad_location" -type string "H1" set_attribute {"sram_bus[13]"} "pad_location" -type string "G2" set_attribute {"sram_bus[14]"} "pad_location" -type string "G1" set_attribute {"sram_bus[15]"} "pad_location" -type string "F2" compile replace_fpga set_attribute slop "part" -type string "4010pg191-6" set_attribute find(design,"*") "xnfout_use_bl knames" -type boolean FALSE write -format xnf -hierarchy -output ~/EMo/slop.sxnf