👾 Fixed grant latch and misplaced ifdef

This commit is contained in:
Florian Zaruba 2017-04-27 13:56:12 +02:00
parent 1dc1695a43
commit 639e8bea50
2 changed files with 3 additions and 2 deletions

View file

@ -106,8 +106,7 @@ module fifo #(
assert property(
@(posedge clk_i) (rst_ni && empty_o |-> ~pop_i))
else $error ("Trying to pop data although the FIFO is empty.");
end
`endif
`endif
end
endmodule

View file

@ -82,6 +82,8 @@ module mem_arbiter #(
data_i = '{default: 0};
push_i = 1'b0;
for (int i = 0; i < NR_PORTS; i++)
data_gnt_o[i] = 1'b0;
// only go for a new request if we can wait for the valid
if (~full_o) begin
for (int i = 0; i < NR_PORTS; i++) begin