Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.20 KB | None | 0 0
  1. module projectf(clk,r,g,sw,k,hex0,hex1,hex2,hex3);
  2.  
  3. input clk;
  4. input [9:0] sw;
  5. input [3:0] k;
  6.  
  7. output [9:0] r;
  8. output [7:0] g;
  9. output [6:0] hex0,hex1,hex2,hex3;
  10.  
  11. reg kn0, kn1, kn2, kn3, trig0, trig1, trig2, trig3, a, a0, a1, a2, b, bb;
  12. reg [6:0] d0, d1, d2, d3, t0, t1, t2, t3, s0, s1, s2, s3;
  13. reg [6:0] d83, d82, d81, d80, d63, d62, d61, d60, d43, d42, d41, d40, d33, d32, d31, d30;
  14. reg [6:0] d23, d22, d21, d20, d13, d12, d11, d10;
  15. reg [9:0] state1, state2, c, j0;
  16. reg [10:0] x, x1, x0, y, y1, y0, c1, c2, cc1, cc2, j1, j2, j3, j4, c10, c11, c20, c21;
  17. reg [30:0] ctr;
  18.  
  19. assign hex0 = d0;
  20. assign hex1 = d1;
  21. assign hex2 = d2;
  22. assign hex3 = d3;
  23. assign r = state1;
  24. assign g = state2;
  25.  
  26. parameter n1 = 7'b1001111;
  27. parameter n2 = 7'b0010010;
  28. parameter n3 = 7'b0000110;
  29. parameter n4 = 7'b1001100;
  30. parameter n5 = 7'b0100100;
  31. parameter n6 = 7'b0100000;
  32. parameter n7 = 7'b0001111;
  33. parameter n8 = 7'b0000000;
  34. parameter n9 = 7'b0000100;
  35. parameter n0 = 7'b0000001;
  36.  
  37. initial c <= 0;
  38. initial begin j3 = 1; j2 = 2; j1 = 1; j0 = 2; end
  39. initial begin d13 <= n0; d12 <= n0; end
  40.  
  41.  
  42. always @ (posedge clk) // Counter //
  43. if (ctr == 50_000_000)
  44. ctr <= 0;
  45. else if (a == 0 && c == 0)
  46. ctr <= ctr+1;
  47.  
  48.  
  49. always @ (posedge clk) // Trigger Buttons //
  50. begin
  51. kn0 <= ~k[0];
  52. kn1 <= ~k[1];
  53. kn2 <= ~k[2];
  54. kn3 <= ~k[3];
  55. trig0 <= k[0] & kn0;
  56. trig1 <= k[1] & kn1;
  57. trig2 <= k[2] & kn2;
  58. trig3 <= k[3] & kn3;
  59. end
  60.  
  61.  
  62. always @ (posedge clk)
  63. if (sw == 10'b1000000000) // Master Reset //
  64. begin
  65. t3 <= n1; t2 <= n0; t1 <= n0; t0 <= n0;
  66. s3 <= 127; s2 <= 127; s1 <= n2; s0 <= n4;
  67. d63 <= n1; b <= 0; d13 <= n6; d12 <= n0;
  68. end
  69.  
  70. else if (sw == 10'b0010000000 && trig0 == 1 && b == 0) // Reset Basketball Timer //
  71. begin
  72. t3 <= n1; t2 <= n0; t1 <= n0; t0 <= n0;
  73. s3 <= 127; s2 <= 127; s1 <= n2; s0 <= n4;
  74. end
  75.  
  76. else if (sw == 10'b0000100000 && trig0 == 1 && b == 0) // Reset Shot Clock //
  77. begin
  78. s3 <= 127; s2 <= 127; s1 <= n2; s0 <= n4;
  79. end
  80.  
  81. else if (sw == 10'b0000100000 && trig2 == 1 && b == 0) // Decrement Shot Clock //
  82. begin
  83. if (s1 == n0 && s0 == n0)
  84. s0 <= n0;
  85. else
  86. case (s0)
  87. n9: s0 <= n8;
  88. n8: s0 <= n7;
  89. n7: s0 <= n6;
  90. n6: s0 <= n5;
  91. n5: s0 <= n4;
  92. n4: s0 <= n3;
  93. n3: s0 <= n2;
  94. n2: s0 <= n1;
  95. n1: s0 <= n0;
  96. n0: s0 <= n9;
  97. endcase
  98. if (s0 == n0)
  99. case (s1)
  100. n2: s1 <= n1;
  101. default: s1 <= n0;
  102. endcase
  103. end
  104.  
  105. else if (sw == 10'b0000100000 && trig3 == 1 && b == 0) // Increment Shot Clock //
  106. begin
  107. if (s1 == n2 && s0 == n4)
  108. s0 <= n4;
  109. else
  110. case (s0)
  111. n9: s0 <= n0;
  112. n8: s0 <= n9;
  113. n7: s0 <= n8;
  114. n6: s0 <= n7;
  115. n5: s0 <= n6;
  116. n4: s0 <= n5;
  117. n3: s0 <= n4;
  118. n2: s0 <= n3;
  119. n1: s0 <= n2;
  120. n0: s0 <= n1;
  121. endcase
  122. if (s0 == n0)
  123. case (s1)
  124. n0: s1 <= n1;
  125. default: s1 <= n2;
  126. endcase
  127. end
  128.  
  129. else if (sw == 10'b0000000100 && (trig3 == 1 || trig1 == 1) && b == 0) // 60 secs timeout //
  130. begin
  131. d13 <= n6; d12 <= n0;
  132. end
  133.  
  134. else if (sw == 10'b0000000100 && (trig2 == 1 || trig0 == 1) && b == 0) // 30 secs timeout //
  135. begin
  136. d13 <= n3; d12 <= n0;
  137. end
  138.  
  139. else if (ctr == 50_000_000 && b == 0 && a0 == 1 && bb == 0) // Shot Clock Count //
  140. begin
  141. case (d12)
  142. n9: d12 <= n8;
  143. n8: d12 <= n7;
  144. n7: d12 <= n6;
  145. n6: d12 <= n5;
  146. n5: d12 <= n4;
  147. n4: d12 <= n3;
  148. n3: d12 <= n2;
  149. n2: d12 <= n1;
  150. n1: d12 <= n0;
  151. n0: d12 <= n9;
  152. endcase
  153. if (d12 == n0)
  154. case (d13)
  155. n6: d13 <= n5;
  156. n5: d13 <= n4;
  157. n4: d13 <= n3;
  158. n3: d13 <= n2;
  159. n2: d13 <= n1;
  160. n1: d13 <= n0;
  161. endcase
  162. end
  163.  
  164. else if (ctr == 50_000_000 && b == 0 && a0 == 0) // Basketball Timer Count //
  165. begin
  166. case (t3)
  167. n1: t3 <= n0;
  168. endcase
  169. case (t0)
  170. n9: t0 <= n8;
  171. n8: t0 <= n7;
  172. n7: t0 <= n6;
  173. n6: t0 <= n5;
  174. n5: t0 <= n4;
  175. n4: t0 <= n3;
  176. n3: t0 <= n2;
  177. n2: t0 <= n1;
  178. n1: t0 <= n0;
  179. n0: t0 <= n9;
  180. endcase
  181. if (s1 == n0)
  182. case (s0)
  183. n9: s0 <= n8;
  184. n8: s0 <= n7;
  185. n7: s0 <= n6;
  186. n6: s0 <= n5;
  187. n5: s0 <= n4;
  188. n4: s0 <= n3;
  189. n3: s0 <= n2;
  190. n2: s0 <= n1;
  191. n1: s0 <= n0;
  192. n0: s0 <= n4;
  193. endcase
  194. if (s1 != n0)
  195. case (s0)
  196. n9: s0 <= n8;
  197. n8: s0 <= n7;
  198. n7: s0 <= n6;
  199. n6: s0 <= n5;
  200. n5: s0 <= n4;
  201. n4: s0 <= n3;
  202. n3: s0 <= n2;
  203. n2: s0 <= n1;
  204. n1: s0 <= n0;
  205. n0: s0 <= n9;
  206. endcase
  207. if (s0 == n0)
  208. case (s1)
  209. n2: s1 <= n1;
  210. n1: s1 <= n0;
  211. n0: s1 <= n2;
  212. endcase
  213. if (t0 == n0)
  214. case (t1)
  215. n5: t1 <= n4;
  216. n4: t1 <= n3;
  217. n3: t1 <= n2;
  218. n2: t1 <= n1;
  219. n1: t1 <= n0;
  220. n0: t1 <= n5;
  221. endcase
  222. if (t1 == n0 && t0 == n0)
  223. case (t2)
  224. n9: t2 <= n8;
  225. n8: t2 <= n7;
  226. n7: t2 <= n6;
  227. n6: t2 <= n5;
  228. n5: t2 <= n4;
  229. n4: t2 <= n3;
  230. n3: t2 <= n2;
  231. n2: t2 <= n1;
  232. n1: t2 <= n0;
  233. n0: t2 <= n9;
  234. endcase
  235. if (t3 == n0 && t2 == n0 && t1 == n0 && t0 == n0)
  236. begin
  237. t3 <= n1; t2 <= n0; t1 <= n0; t0 <= n0;
  238. case (d63)
  239. n1: d63 <= n2;
  240. n2: d63 <= n3;
  241. n3: d63 <= n4;
  242. default: b <= 1; // Game Ends //
  243. endcase
  244. end
  245. if (s3 == 127 && s2 == 127 && s1 == n0 && s0 == n0)
  246. begin
  247. s3 <= 127; s2 <= 127; s1 <= n2; s0 <= n4;
  248. end
  249. end
  250.  
  251.  
  252. always @ (posedge clk)
  253. begin
  254. if (sw == 10'b1000000000) // SW9 - Master Reset //
  255. begin
  256. d80 <= n0; d81 <= n0; d82 <= n0; d83 <= n0;
  257. d40 <= n0; d41 <= n0; d42 <= n0; d43 <= n0;
  258. d30 <= n0; d31 <= n0; d32 <= n0; d33 <= n0;
  259. d20 <= n2; d21 <= n1; d22 <= n2; d23 <= n1;
  260. state1 <= 10'b0000000000; state2 <= 8'b00000000;
  261. x <=0 ; x1 <= 0; x0 <= 0; y <= 0; y1 <= 0; y0 <= 0;
  262. j0 = 2 ; j1 = 1; j2 = 2; j3 = 1;
  263. c1 =0 ; c11 = 0; c10 = 0; c2 = 0; c21 = 0; c20 = 0;
  264. cc1 = 0; cc2 = 0; bb <= 1;
  265. a <= 0; a0 <= 0;
  266. d3 <= 127; d2 <= 127; d1 <= 127; d0 <= 127;
  267. end
  268.  
  269. else if (sw == 10'b0100000000) // SW8 - Basketball Scoreboard //
  270. begin
  271. if (trig3 == 1 && b == 0) // increment 1st team //
  272. begin
  273. x = x + 1;
  274. if (x >= 99)
  275. x = 99;
  276. x0 = x%10;
  277. x1 = (x-x0)/10;
  278. end
  279. else if (trig2 == 1 && b == 0) // decrement 1st team //
  280. begin
  281. if (x <= 1)
  282. x = 0;
  283. else
  284. x = x - 1;
  285. x0 = x%10;
  286. x1 = (x-x0)/10;
  287. end
  288. else if (trig1 == 1 && b == 0) // increment 2nd team //
  289. begin
  290. y = y + 1;
  291. if (y >= 99)
  292. y = 99;
  293. y0 = y%10;
  294. y1 = (y-y0)/10;
  295. end
  296. else if (trig0 == 1 && b == 0) // decrement 2nd team //
  297. begin
  298. if (y <= 1)
  299. y = 0;
  300. else
  301. y = y - 1;
  302. y0 = y%10;
  303. y1 = (y-y0)/10;
  304. end
  305. case (x1) // value of HEX3 //
  306. 0: d83<=n0;
  307. 1: d83<=n1;
  308. 2: d83<=n2;
  309. 3: d83<=n3;
  310. 4: d83<=n4;
  311. 5: d83<=n5;
  312. 6: d83<=n6;
  313. 7: d83<=n7;
  314. 8: d83<=n8;
  315. 9: d83<=n9;
  316. endcase
  317. case (x0) // value of HEX2 //
  318. 0: d82<=n0;
  319. 1: d82<=n1;
  320. 2: d82<=n2;
  321. 3: d82<=n3;
  322. 4: d82<=n4;
  323. 5: d82<=n5;
  324. 6: d82<=n6;
  325. 7: d82<=n7;
  326. 8: d82<=n8;
  327. 9: d82<=n9;
  328. endcase
  329. case (y1) // value of HEX1 //
  330. 0: d81<=n0;
  331. 1: d81<=n1;
  332. 2: d81<=n2;
  333. 3: d81<=n3;
  334. 4: d81<=n4;
  335. 5: d81<=n5;
  336. 6: d81<=n6;
  337. 7: d81<=n7;
  338. 8: d81<=n8;
  339. 9: d81<=n9;
  340. endcase
  341. case (y0) // value of HEX0 //
  342. 0: d80<=n0;
  343. 1: d80<=n1;
  344. 2: d80<=n2;
  345. 3: d80<=n3;
  346. 4: d80<=n4;
  347. 5: d80<=n5;
  348. 6: d80<=n6;
  349. 7: d80<=n7;
  350. 8: d80<=n8;
  351. 9: d80<=n9;
  352. endcase
  353. d3 <= d83; d2 <= d82; d1 <= d81; d0 <= d80;
  354. end
  355.  
  356. else if (sw == 10'b0010000000) // SW7 - Basketball Timer //
  357. begin
  358. if (trig1 == 1 && b == 0)
  359. a <= ~a;
  360. d3 <= t3; d2 <= t2; d1 <= t1; d0 <= t0;
  361. end
  362.  
  363. else if (sw == 10'b0001000000) // SW6 - Game Quarter //
  364. begin
  365. d3 <= d63; d2 <= 127; d1 <= 127; d0 <= 127;
  366. end
  367.  
  368. else if (sw == 10'b0000100000) // SW5 - Shot Clock //
  369. begin
  370. if (trig1 == 1 && b == 0)
  371. a <= ~a;
  372. d3 <= s3; d2 <= s2; d1 <= s1; d0 <= s0;
  373. end
  374.  
  375. else if (sw == 10'b0000011000) // SW4 with SW3 up - Team Fouls of 1st team //
  376. begin
  377. if (trig3 == 1 && b == 0)
  378. begin
  379. c1 = c1+1;
  380. if (c1 >= 99)
  381. c1 = 99;
  382. c10 = c1%10;
  383. c11 = (c1-c10)/10;
  384. end
  385. else if (trig2 == 1 && b == 0)
  386. begin
  387. c1 = c1+1;
  388. if (c1 >= 99)
  389. c1 = 99;
  390. c10 = c1%10;
  391. c11 = (c1-c10)/10;
  392. x = x+1;
  393. if (x >= 99)
  394. x = 99;
  395. x0 = x%10;
  396. x1 = (x-x0)/10;
  397. end
  398. else if (trig1 == 1 && b == 0)
  399. begin
  400. c1 = c1+1;
  401. if (c1 >= 99)
  402. c1 = 99;
  403. c10 = c1%10;
  404. c11 = (c1-c10)/10;
  405. x = x+2;
  406. if (x >= 99)
  407. x = 99;
  408. x0 = x%10;
  409. x1 = (x-x0)/10;
  410. end
  411. else if (trig0 == 1 && b == 0)
  412. begin
  413. c1 = c1+1;
  414. if (c1 >= 99)
  415. c1 = 99;
  416. c10 = c1%10;
  417. c11 = (c1-c10)/10;
  418. x = x+3;
  419. if (x >= 99)
  420. x = 99;
  421. x0 = x%10;
  422. x1 = (x-x0)/10;
  423. end
  424. case (c11) // value of HEX3 //
  425. 0: d43<=n0;
  426. 1: d43<=n1;
  427. 2: d43<=n2;
  428. 3: d43<=n3;
  429. 4: d43<=n4;
  430. 5: d43<=n5;
  431. 6: d43<=n6;
  432. 7: d43<=n7;
  433. 8: d43<=n8;
  434. 9: d43<=n9;
  435. endcase
  436. case (c10) // value of HEX2 //
  437. 0: d42<=n0;
  438. 1: d42<=n1;
  439. 2: d42<=n2;
  440. 3: d42<=n3;
  441. 4: d42<=n4;
  442. 5: d42<=n5;
  443. 6: d42<=n6;
  444. 7: d42<=n7;
  445. 8: d42<=n8;
  446. 9: d42<=n9;
  447. endcase
  448. if (c1 >= 4)
  449. state1 <= 10'b0011111111;
  450. d3 <= d43; d2 <= d42; d1 <= 127; d0 <= 127;
  451. end
  452.  
  453. else if (sw == 10'b0000010000) // SW4 with SW3 down - Team Fouls of 2nd team //
  454. begin
  455. if (trig3 == 1 && b == 0)
  456. begin
  457. c2 = c2+1;
  458. if (c2 >= 99)
  459. c2 = 99;
  460. c20 = c2%10;
  461. c21 = (c2-c20)/10;
  462. end
  463. else if (trig2 == 1 && b == 0)
  464. begin
  465. c2 = c2+1;
  466. if (c2 >= 99)
  467. c2 = 99;
  468. c20 = c2%10;
  469. c21 = (c2-c20)/10;
  470. y = y+1;
  471. if (y >= 99)
  472. y = 99;
  473. y0 = y%10;
  474. y1 = (y-y0)/10;
  475. end
  476. else if (trig1 == 1 && b == 0)
  477. begin
  478. c2 = c2+1;
  479. if (c2 >= 99)
  480. c2 = 99;
  481. c20 = c2%10;
  482. c21 = (c2-c20)/10;
  483. y = y+2;
  484. if (y >= 99)
  485. y = 99;
  486. y0 = y%10;
  487. y1 = (y-y0)/10;
  488. end
  489. else if (trig0 == 1 && b == 0)
  490. begin
  491. c2 = c2+1;
  492. if (c2 >= 99)
  493. c2 = 99;
  494. c20 = c2%10;
  495. c21 = (c2-c20)/10;
  496. y = y+3;
  497. if (y >= 99)
  498. y = 99;
  499. y0 = y%10;
  500. y1 = (y-y0)/10;
  501. end
  502. case (c21) // value of HEX3 //
  503. 0: d33<=n0;
  504. 1: d33<=n1;
  505. 2: d33<=n2;
  506. 3: d33<=n3;
  507. 4: d33<=n4;
  508. 5: d33<=n5;
  509. 6: d33<=n6;
  510. 7: d33<=n7;
  511. 8: d33<=n8;
  512. 9: d33<=n9;
  513. endcase
  514. case (c20) // value of HEX2 //
  515. 0: d32<=n0;
  516. 1: d32<=n1;
  517. 2: d32<=n2;
  518. 3: d32<=n3;
  519. 4: d32<=n4;
  520. 5: d32<=n5;
  521. 6: d32<=n6;
  522. 7: d32<=n7;
  523. 8: d32<=n8;
  524. 9: d32<=n9;
  525. endcase
  526. if (c2 >= 4)
  527. state2 <= 8'b11111111;
  528. d3 <= d33; d2 <= d32; d1 <= 127; d0 <= 127;
  529. end
  530.  
  531. else if (sw == 10'b0000000110) // SW2 with SW1 up - Timeout Countdown //
  532. begin
  533. a0 <= 1;
  534. d3 <= d13; d2 <= d12; d1 <= 127; d0 <= 127;
  535. end
  536.  
  537. else if (sw == 10'b0000000100) // SW2 with SW1 down - Number of Timeouts for both team //
  538. begin
  539. a0 <= 1;
  540. if (trig3 == 1 && b == 0)
  541. begin
  542. if (j3 <= 1)
  543. j3 = 0;
  544. else
  545. j3 = j3 - 1;
  546. bb <= 0;
  547. end
  548. else if (trig2 == 1 && b == 0)
  549. begin
  550. if (j2 <= 1)
  551. j2 = 0;
  552. else
  553. j2 = j2 - 1;
  554. bb <= 0;
  555. end
  556. else if (trig1 == 1 && b == 0)
  557. begin
  558. if (j1 <= 1)
  559. j1 = 0;
  560. else
  561. j1 = j1 - 1;
  562. bb <= 0;
  563. end
  564. else if (trig0 == 1 && b == 0)
  565. begin
  566. if (j0 <= 1)
  567. j0 = 0;
  568. else
  569. j0 = j0 - 1 ;
  570. bb <= 0;
  571. end
  572. case (j3) // value of HEX3 //
  573. 0: d23<=n0;
  574. 1: d23<=n1;
  575. 2: d23<=n2;
  576. 3: d23<=n3;
  577. 4: d23<=n4;
  578. 5: d23<=n5;
  579. 6: d23<=n6;
  580. 7: d23<=n7;
  581. 8: d23<=n8;
  582. 9: d23<=n9;
  583. endcase
  584. case (j2) // value of HEX2 //
  585. 0: d22<=n0;
  586. 1: d22<=n1;
  587. 2: d22<=n2;
  588. 3: d22<=n3;
  589. 4: d22<=n4;
  590. 5: d22<=n5;
  591. 6: d22<=n6;
  592. 7: d22<=n7;
  593. 8: d22<=n8;
  594. 9: d22<=n9;
  595. endcase
  596. case (j1) // value of HEX1 //
  597. 0: d21<=n0;
  598. 1: d21<=n1;
  599. 2: d21<=n2;
  600. 3: d21<=n3;
  601. 4: d21<=n4;
  602. 5: d21<=n5;
  603. 6: d21<=n6;
  604. 7: d21<=n7;
  605. 8: d21<=n8;
  606. 9: d21<=n9;
  607. endcase
  608. case (j0) // value of HEX0 //
  609. 0: d20<=n0;
  610. 1: d20<=n1;
  611. 2: d20<=n2;
  612. 3: d20<=n3;
  613. 4: d20<=n4;
  614. 5: d20<=n5;
  615. 6: d20<=n6;
  616. 7: d20<=n7;
  617. 8: d20<=n8;
  618. 9: d20<=n9;
  619. endcase
  620. d3 <= d23; d2 <= d22; d1 <= d21; d0 <= d20;
  621. end
  622.  
  623. else // No Active Switch //
  624. begin
  625. a0 <= 0;
  626. d3 <= 127; d2 <= 127; d1 <= 127; d0 <= 127;
  627. end
  628.  
  629. if (t3 == n0 && t2 == n0 && t1 == n0 && t0 == n0) // Quarter Changes //
  630. begin
  631. case (d63)
  632. n1: begin
  633. c1 = 0; c2 = 0; state1 <= 10'b0000000000; state2 <= 8'b00000000;
  634. c10 <= 0; c11 <= 0; c20 <= 0; c21 <= 0;
  635. j3 <= j3 + 1; j2 <= j2 + 2; j1 <= j1 + 1; j0 <= j0 + 2;
  636. end
  637. n2: begin
  638. c1 = 0; c2 = 0; state1 <= 10'b0000000000; state2 <= 8'b00000000;
  639. c10 <= 0; c11 <= 0; c20 <= 0; c21 <= 0;
  640. j3 <= 1; j2 <= 2; j1 <= 1; j0 <= 2;
  641. end
  642. n3: begin
  643. c1 = 0; c2 = 0; state1 <= 10'b0000000000; state2 <= 8'b00000000;
  644. c10 <= 0; c11 <= 0; c20 <= 0; c21 <= 0;
  645. j3 <= j3 + 1; j2 <= j2 + 2; j1 <= j1 + 1; j0 <= j0 + 2;
  646. end
  647. endcase
  648. end
  649.  
  650. if (d13 == n0 && d12 == n0) // Timeout Ends //
  651. bb <= 1;
  652.  
  653. end
  654.  
  655. endmodule
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666. set_location_assignment PIN_L1 -to clk
  667.  
  668. set_location_assignment PIN_R17 -to r[9]
  669. set_location_assignment PIN_R18 -to r[8]
  670. set_location_assignment PIN_U18 -to r[7]
  671. set_location_assignment PIN_Y18 -to r[6]
  672. set_location_assignment PIN_V19 -to r[5]
  673. set_location_assignment PIN_T18 -to r[4]
  674. set_location_assignment PIN_Y19 -to r[3]
  675. set_location_assignment PIN_U19 -to r[2]
  676. set_location_assignment PIN_R19 -to r[1]
  677. set_location_assignment PIN_R20 -to r[0]
  678.  
  679. set_location_assignment PIN_Y21 -to g[7]
  680. set_location_assignment PIN_Y22 -to g[6]
  681. set_location_assignment PIN_W21 -to g[5]
  682. set_location_assignment PIN_W22 -to g[4]
  683. set_location_assignment PIN_V21 -to g[3]
  684. set_location_assignment PIN_V22 -to g[2]
  685. set_location_assignment PIN_U21 -to g[1]
  686. set_location_assignment PIN_U22 -to g[0]
  687.  
  688. set_location_assignment PIN_L2 -to sw[9]
  689. set_location_assignment PIN_M1 -to sw[8]
  690. set_location_assignment PIN_M2 -to sw[7]
  691. set_location_assignment PIN_U11 -to sw[6]
  692. set_location_assignment PIN_U12 -to sw[5]
  693. set_location_assignment PIN_W12 -to sw[4]
  694. set_location_assignment PIN_V12 -to sw[3]
  695. set_location_assignment PIN_M22 -to sw[2]
  696. set_location_assignment PIN_L21 -to sw[1]
  697. set_location_assignment PIN_L22 -to sw[0]
  698.  
  699. set_location_assignment PIN_T21 -to k[3]
  700. set_location_assignment PIN_T22 -to k[2]
  701. set_location_assignment PIN_R21 -to k[1]
  702. set_location_assignment PIN_R22 -to k[0]
  703.  
  704. set_location_assignment PIN_E2 -to hex0[0]
  705. set_location_assignment PIN_F1 -to hex0[1]
  706. set_location_assignment PIN_F2 -to hex0[2]
  707. set_location_assignment PIN_H1 -to hex0[3]
  708. set_location_assignment PIN_H2 -to hex0[4]
  709. set_location_assignment PIN_J1 -to hex0[5]
  710. set_location_assignment PIN_J2 -to hex0[6]
  711. set_location_assignment PIN_D1 -to hex1[0]
  712. set_location_assignment PIN_D2 -to hex1[1]
  713. set_location_assignment PIN_G3 -to hex1[2]
  714. set_location_assignment PIN_H4 -to hex1[3]
  715. set_location_assignment PIN_H5 -to hex1[4]
  716. set_location_assignment PIN_H6 -to hex1[5]
  717. set_location_assignment PIN_E1 -to hex1[6]
  718. set_location_assignment PIN_D3 -to hex2[0]
  719. set_location_assignment PIN_E4 -to hex2[1]
  720. set_location_assignment PIN_E3 -to hex2[2]
  721. set_location_assignment PIN_C1 -to hex2[3]
  722. set_location_assignment PIN_C2 -to hex2[4]
  723. set_location_assignment PIN_G6 -to hex2[5]
  724. set_location_assignment PIN_G5 -to hex2[6]
  725. set_location_assignment PIN_D4 -to hex3[0]
  726. set_location_assignment PIN_F3 -to hex3[1]
  727. set_location_assignment PIN_L8 -to hex3[2]
  728. set_location_assignment PIN_J4 -to hex3[3]
  729. set_location_assignment PIN_D6 -to hex3[4]
  730. set_location_assignment PIN_D5 -to hex3[5]
  731. set_location_assignment PIN_F4 -to hex3[6]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement