X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ships%2FMemory.ship;h=2d1d6f15dbe6abc7fe5b7e02c51d47ebcdfdf943;hb=aee85d3dd0435554e14e03b97f268752843a441f;hp=dabd06b140462035082f21f184f4bdcd8965fdbe;hpb=975cc53ac1e9da871d960f029e759ed05387df6c;p=fleet.git diff --git a/ships/Memory.ship b/ships/Memory.ship index dabd06b..2d1d6f1 100644 --- a/ships/Memory.ship +++ b/ships/Memory.ship @@ -150,16 +150,15 @@ sequence guarantee problem mentioned in the previous paragraph. assign out_d_ = { out_w, out1 }; - // I use "blocking assignment" here in order to facilitate BRAM inferencea + // I use "blocking assignment" here in order to facilitate BRAM inference always @(posedge clk) begin write_flag = 0; - if (!rst) begin + if (rst) begin `reset cursor = 0; counter = 0; end else begin - `flush `cleanup if (counter!=0) begin