Skip to content
Snippets Groups Projects
Commit 88c1ec9f authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Cosmetic: Simplified ASSERT condition. Simplified range definition for burstsize.

parent 9ae14503
Branches
No related tags found
No related merge requests found
...@@ -158,7 +158,7 @@ ARCHITECTURE rtl OF reorder_sequencer IS ...@@ -158,7 +158,7 @@ ARCHITECTURE rtl OF reorder_sequencer IS
page_cnt : NATURAL RANGE 0 TO g_reorder_seq.nof_blocks; -- Counter that counts the number of write accesses to determine the page-swap. page_cnt : NATURAL RANGE 0 TO g_reorder_seq.nof_blocks; -- Counter that counts the number of write accesses to determine the page-swap.
first_write : STD_LOGIC; first_write : STD_LOGIC;
start_addr : NATURAL RANGE 0 TO c_mem_size-1; start_addr : NATURAL RANGE 0 TO c_mem_size-1;
burstsize : NATURAL RANGE 0 TO sel_a_b(c_wr_chunksize > c_rd_chunksize, c_wr_chunksize, c_rd_chunksize); burstsize : NATURAL RANGE 0 TO largest(c_wr_chunksize, c_rd_chunksize);
state : state_type; -- The state machine. state : state_type; -- The state machine.
END RECORD; END RECORD;
...@@ -169,7 +169,7 @@ BEGIN ...@@ -169,7 +169,7 @@ BEGIN
--------------------------------------------------------------- ---------------------------------------------------------------
-- CHECK IF PROVIDED GENERICS ARE ALLOWED. -- CHECK IF PROVIDED GENERICS ARE ALLOWED.
--------------------------------------------------------------- ---------------------------------------------------------------
ASSERT NOT(g_reorder_seq.wr_chunksize /= (g_reorder_seq.rd_nof_chunks*g_reorder_seq.rd_chunksize) AND rising_edge(dp_clk)) REPORT "Total write configuration is different from total read configuration!!!" SEVERITY FAILURE; ASSERT g_reorder_seq.wr_chunksize = g_reorder_seq.rd_nof_chunks*g_reorder_seq.rd_chunksize REPORT "Total write configuration is different from total read configuration!!!" SEVERITY FAILURE;
p_comb : PROCESS(r, dp_rst, done) p_comb : PROCESS(r, dp_rst, done)
VARIABLE v : reg_type; VARIABLE v : reg_type;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment