ML509.Large needs six Alus for sorting demo
[fleet.git] / src / edu / berkeley / fleet / fpga / ML509.java
1 package edu.berkeley.fleet.fpga;
2 import edu.berkeley.fleet.fpga.*;
3 import edu.berkeley.fleet.api.*;
4 import java.io.*;
5
6 public abstract class ML509 extends Fpga {
7
8     public ML509() throws IOException {
9         createShip("Timer");
10     }
11
12     public static class Large extends ML509 {
13         public Large() throws IOException {
14             for(int i=0; i<1; i++)  createShip("Memory");
15             for(int i=0; i<6; i++)  createShip("Alu");
16             for(int i=0; i<1; i++)  createShip("Fifo");
17             for(int i=0; i<12; i++) createShip("Counter");
18             createShip("Random");
19             createShip("Button");
20             createShip("DDR2");
21             createShip("Dvi");
22
23             init();
24         }
25     }
26
27     public static class Small extends ML509 {
28         public Small() throws IOException {
29             for(int i=0; i<2; i++) createShip("Alu");
30             for(int i=0; i<1; i++) createShip("Memory");
31             for(int i=0; i<2; i++) createShip("Fifo");
32             createShip("Random");
33             createShip("Counter");
34             //createShip("CarrySaveAdder");
35             createShip("Rotator");
36             createShip("Lut3");
37
38             init();
39         }
40     }
41 }