From bf3c09a58bff76d3147b4b12402af5df1d0f16bf Mon Sep 17 00:00:00 2001 From: megacz Date: Fri, 27 Feb 2009 23:17:17 -0800 Subject: [PATCH] switch host->fpga communication from 8-bit words to 6-bit words --- ships/Debug.ship | 4 ++-- src/edu/berkeley/fleet/fpga/Client.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ships/Debug.ship b/ships/Debug.ship index 739fb80..0fbb9e0 100644 --- a/ships/Debug.ship +++ b/ships/Debug.ship @@ -125,9 +125,9 @@ public void service() { // host -> fpga data_to_fleet_read_enable <= 0; if (!data_to_fleet_empty && `out_empty && !data_to_fleet_read_enable) begin - out_d <= { out_d[41:0], data_to_fleet[7:0] }; + out_d <= { out_d[43:0], data_to_fleet[5:0] }; data_to_fleet_read_enable <= 1; - if (count_in==7) begin + if (count_in==9) begin count_in <= 0; `fill_out end else begin diff --git a/src/edu/berkeley/fleet/fpga/Client.java b/src/edu/berkeley/fleet/fpga/Client.java index fb65e43..0048fa2 100644 --- a/src/edu/berkeley/fleet/fpga/Client.java +++ b/src/edu/berkeley/fleet/fpga/Client.java @@ -108,8 +108,8 @@ public class Client extends FleetProcess { out = fpga.PACKET_SIGNAL.setval(out, 0); out = fpga.PACKET_DEST.setval(out, ((FpgaPath)dispatchFrom.getPath(d, null)).toLong()); synchronized(this) { - for(int i=7; i>=0; i--) - dos.write(BitManipulations.getIntField(i*8+7, i*8, out)); + for(int i=9; i>=0; i--) + dos.write(BitManipulations.getIntField(i*6+7, i*6, out)); } } catch (Exception e) { throw new RuntimeException(e); -- 1.7.10.4