diff options
| author | Julian Blake Kongslie | 2022-02-27 17:21:05 -0800 |
|---|---|---|
| committer | Julian Blake Kongslie | 2022-02-27 17:21:05 -0800 |
| commit | 0553c4839c06011bd044f69b4913e5c793fdd2ec (patch) | |
| tree | d11e69863532621fe1fa55cc7e8aa2a8cfa3b727 /tcl/init.tcl | |
| download | multipdp8-0553c4839c06011bd044f69b4913e5c793fdd2ec.tar.xz | |
Initial commit.
Diffstat (limited to '')
| -rw-r--r-- | tcl/init.tcl | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/tcl/init.tcl b/tcl/init.tcl new file mode 100644 index 0000000..8665ee9 --- /dev/null +++ b/tcl/init.tcl | |||
| @@ -0,0 +1,107 @@ | |||
| 1 | project_new pdp8 -revision pdp8 -overwrite | ||
| 2 | |||
| 3 | set_global_assignment -name DEVICE 10CL025YU256I7G | ||
| 4 | |||
| 5 | set_global_assignment -name TOP_LEVEL_ENTITY top | ||
| 6 | set_global_assignment -name VERILOG_INPUT_VERSION SYSTEMVERILOG_2005 | ||
| 7 | set_global_assignment -name VERILOG_MACRO "SYNTHESIS=1" | ||
| 8 | set_global_assignment -name NUM_PARALLEL_PROCESSORS 1 | ||
| 9 | set_global_assignment -name ENABLE_SIGNALTAP OFF | ||
| 10 | |||
| 11 | proc pin {net loc} { | ||
| 12 | set_location_assignment -to $net "PIN_$loc" | ||
| 13 | set_instance_assignment -name IO_STANDARD "3.3V LVTTL" -to $net | ||
| 14 | } | ||
| 15 | |||
| 16 | proc iopin {net loc} { | ||
| 17 | pin $net $loc | ||
| 18 | set_instance_assignment -name WEAK_PULL_UP_RESISTOR ON -to $net | ||
| 19 | } | ||
| 20 | |||
| 21 | proc rampin {net loc} { | ||
| 22 | set_location_assignment -to $net "PIN_$loc" | ||
| 23 | set_instance_assignment -name IO_STANDARD "1.8V" -to $net | ||
| 24 | } | ||
| 25 | |||
| 26 | pin clock E1 | ||
| 27 | |||
| 28 | iopin resetn J15 | ||
| 29 | |||
| 30 | iopin gpioa[1] L13 | ||
| 31 | iopin gpioa[2] L16 | ||
| 32 | iopin gpioa[3] L15 | ||
| 33 | iopin gpioa[4] K16 | ||
| 34 | iopin gpioa[5] P16 | ||
| 35 | iopin gpioa[6] R16 | ||
| 36 | iopin gpioa[7] N16 | ||
| 37 | iopin gpioa[8] N15 | ||
| 38 | iopin gpioa[9] N14 | ||
| 39 | iopin gpioa[10] P15 | ||
| 40 | iopin gpiob[13] N8 | ||
| 41 | iopin gpiob[14] P8 | ||
| 42 | iopin gpiob[15] M8 | ||
| 43 | iopin gpiob[16] L8 | ||
| 44 | iopin gpiob[17] R7 | ||
| 45 | iopin gpiob[18] T7 | ||
| 46 | iopin gpiob[19] L7 | ||
| 47 | iopin gpiob[20] M7 | ||
| 48 | iopin gpiob[21] R6 | ||
| 49 | iopin gpiob[22] T6 | ||
| 50 | iopin gpiob[23] T2 | ||
| 51 | iopin gpiob[24] M6 | ||
| 52 | iopin gpiob[25] R5 | ||
| 53 | iopin gpiob[26] T5 | ||
| 54 | iopin gpiob[27] N5 | ||
| 55 | iopin gpiob[28] N6 | ||
| 56 | iopin gpioc[31] R4 | ||
| 57 | iopin gpioc[32] T4 | ||
| 58 | iopin gpioc[33] N3 | ||
| 59 | iopin gpioc[34] P3 | ||
| 60 | iopin gpioc[35] R3 | ||
| 61 | iopin gpioc[36] T3 | ||
| 62 | iopin gpioc[37] P6 | ||
| 63 | iopin gpioc[38] P2 | ||
| 64 | iopin gpioc[39] P1 | ||
| 65 | iopin gpioc[40] R1 | ||
| 66 | |||
| 67 | rampin ram_data[0] T12 | ||
| 68 | rampin ram_data[1] T13 | ||
| 69 | rampin ram_data[2] T11 | ||
| 70 | rampin ram_data[3] R10 | ||
| 71 | rampin ram_data[4] T10 | ||
| 72 | rampin ram_data[5] R11 | ||
| 73 | rampin ram_data[6] R12 | ||
| 74 | rampin ram_data[7] R13 | ||
| 75 | rampin ram_csn P9 | ||
| 76 | rampin ram_rwds T14 | ||
| 77 | rampin ram_clkp P14 | ||
| 78 | rampin ram_clkn R14 | ||
| 79 | rampin ram_resetn N9 | ||
| 80 | |||
| 81 | # This is the clock for timing-driven synthesis, not timing analysis. | ||
| 82 | # See clocks.sdf for the other clock. | ||
| 83 | create_base_clock -fmax "50 MHz" clock | ||
| 84 | |||
| 85 | proc add_files {typ ext dir} { | ||
| 86 | foreach name [glob -nocomplain -directory $dir -type f "*.$ext"] { | ||
| 87 | set_global_assignment -name "${typ}_FILE" $name | ||
| 88 | } | ||
| 89 | } | ||
| 90 | |||
| 91 | proc add_dir {dir} { | ||
| 92 | add_files CDF cdf $dir | ||
| 93 | add_files HEX hex $dir | ||
| 94 | add_files SDC sdc $dir | ||
| 95 | add_files USE_SIGNALTAP stp $dir | ||
| 96 | add_files SIGNALTAP stp $dir | ||
| 97 | add_files VERILOG sv $dir | ||
| 98 | add_files VERILOG svh $dir | ||
| 99 | |||
| 100 | foreach subdir [glob -nocomplain -directory $dir -type d *] { | ||
| 101 | add_dir $subdir | ||
| 102 | } | ||
| 103 | } | ||
| 104 | |||
| 105 | add_dir . | ||
| 106 | |||
| 107 | project_close | ||
