From: adam Date: Mon, 27 Oct 2008 07:44:19 +0000 (+0100) Subject: split Fpga.java into two implementations, large and small X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=19783dc74da56fbe4cd5b9369ef710670dbd3c9f;p=fleet.git split Fpga.java into two implementations, large and small --- diff --git a/src/edu/berkeley/fleet/fpga/Fpga.java b/src/edu/berkeley/fleet/fpga/Fpga.java index 491ca45..5e5c434 100644 --- a/src/edu/berkeley/fleet/fpga/Fpga.java +++ b/src/edu/berkeley/fleet/fpga/Fpga.java @@ -65,25 +65,33 @@ public class Fpga extends FleetTwoFleet { this.top = top; debugShip = createShip("Debug", "debug"); + boolean small = false; + createShip("Memory", "memory1"); - //createShip("Memory", "memory2"); - //createShip("Memory", "memory3"); - for(int i=0; i<5; i++) - createShip("Alu", "alu"+i); + if (small) { + createShip("Fifo", "fifo"); + createShip("Alu", "alu"); + } else { + //createShip("Memory", "memory2"); + //createShip("Memory", "memory3"); + + for(int i=0; i<5; i++) + createShip("Alu", "alu"+i); - for(int i=0; i<2; i++) - createShip("Fifo", "fifo"+i); + for(int i=0; i<2; i++) + createShip("Fifo", "fifo"+i); - for(int i=0; i<13; i++) - createShip("Counter", "counter"+i); + for(int i=0; i<13; i++) + createShip("Counter", "counter"+i); - createShip("CarrySaveAdder", "csa1"); - createShip("Rotator", "rotator"); - createShip("Lut3", "lut"); + createShip("CarrySaveAdder", "csa1"); + createShip("Rotator", "rotator"); + createShip("Lut3", "lut"); + //createShip("DDR2", "ddr2"); + } createShip("DRAM", "dram"); - //createShip("DDR2", "ddr2"); createShip("Video", "video"); //Module.SourcePort debug_in = top.createWireSourcePort("debug_in", WIDTH_PACKET);