From 62c42b644082a22f8ca4ed5e7c0177599321f5ad Mon Sep 17 00:00:00 2001 From: Tomek Malesinski Date: Sat, 23 Aug 2008 00:22:27 +0200 Subject: [PATCH] Make load_out independent of dma_pf_width --- antic.v | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/antic.v b/antic.v index 0433da2..f71b688 100644 --- a/antic.v +++ b/antic.v @@ -30,7 +30,7 @@ module antic_ms_hcount_seq(clk_i, ms_hcount, wire [7:0] ir; wire shift_reg_shift; reg load_pf, load_char; - reg load_out; + wire load_out; wire out_reg_shift; reg load_pf_0, load_char_0; @@ -136,18 +136,7 @@ module antic_ms_hcount_seq(clk_i, ms_hcount, endcase end - always @ (dma_block or dma_pf_width or ms_hcount or pf_byte_mod) begin - load_out = 0; - if (dma_block) - case (dma_pf_width) - 1: load_out = ((ms_hcount & pf_byte_mod) == (12 & pf_byte_mod)) && - (ms_hcount >= 32 + 12 && ms_hcount < 160 + 12); - 2: load_out = ((ms_hcount & pf_byte_mod) == (12 & pf_byte_mod)) && - (ms_hcount >= 16 + 12 && ms_hcount < 176 + 12); - 3: load_out = ((ms_hcount & pf_byte_mod) == (12 & pf_byte_mod)) && - (ms_hcount >= 12 && ms_hcount < 192 + 12); - endcase - end + assign load_out = ((ms_hcount[3:0] & pf_byte_mod) == (4'd12 & pf_byte_mod)); always @ (posedge clk_i) begin load_pf <= load_pf_0; -- 2.11.4.GIT