- public Fpga() throws Exception { this(new Module("main")); }
- public Fpga(Module top) throws Exception {
- this.top = top;
- debugShip = createShip("Debug");
-
- boolean small = true;
- //boolean small = false;
-
- if (small) {
- for(int i=0; i<2; i++) createShip("Alu");
- for(int i=0; i<1; i++) createShip("Memory");
- for(int i=0; i<2; i++) createShip("Fifo");
- createShip("Counter");
- createShip("CarrySaveAdder");
- createShip("Rotator");
- createShip("Lut3");
- createShip("Timer");
- createShip("DDR2");
- createShip("Dvi");
- createShip("ZBT");
-
- } else {
-
- for(int i=0; i<3; i++) createShip("Memory");
- for(int i=0; i<3; i++) createShip("Alu");
- for(int i=0; i<2; i++) createShip("Fifo");
- for(int i=0; i<11; i++) createShip("Counter");
-
- /*
- for(int i=0; i<3; i++) createShip("Memory");
- for(int i=0; i<3; i++) createShip("Alu");
- for(int i=0; i<2; i++) createShip("Fifo");
- for(int i=0; i<14; i++) createShip("Counter");
-
- // "really big" configuration: 138 docks
- for(int i=0; i<4; i++) createShip("Alu");
- */
-
- //createShip("CarrySaveAdder");
- //createShip("Rotator");
- //createShip("Lut3");
-
- createShip("Timer");
- createShip("DDR2");
- createShip("Dvi");
- createShip("ZBT");
- }
+ protected Fpga() throws IOException {
+ this.top = new Module("main");
+ this.debugShip = createShip("Debug");
+ }