Skip to content
Snippets Groups Projects
Commit 90cc3745 authored by David Mapstone's avatar David Mapstone
Browse files

fix: SOC1-153: Fixed signal name bug in address calculator

parent 944f600c
No related branches found
No related tags found
1 merge request!31SOC1-141: Restructured deconstruction buffer to remove registers and do packet...
...@@ -26,11 +26,11 @@ module wrapper_addr_calc #( ...@@ -26,11 +26,11 @@ module wrapper_addr_calc #(
logic [ADDRWIDTH-1:0] block_byte_count; // Number of Bytes taken up by Block logic [ADDRWIDTH-1:0] block_byte_count; // Number of Bytes taken up by Block
logic [ADDRWIDTH:0] end_word_addr; // First Address at start of next region logic [ADDRWIDTH:0] end_word_addr; // First Address at start of next region
logic [ADDRWIDTH:0] block_read_addr_ext; // Relative Address extended by 1 bit logic [ADDRWIDTH:0] block_addr_ext; // Relative Address extended by 1 bit
assign block_byte_count = block_packet_count * PACKETBYTES; assign block_byte_count = block_packet_count * PACKETBYTES;
assign end_word_addr = {1'b1,{(ADDRWIDTH){1'b0}}}; assign end_word_addr = {1'b1,{(ADDRWIDTH){1'b0}}};
assign block_read_addr_ext = end_word_addr - block_byte_count; assign block_addr_ext = end_word_addr - block_byte_count;
assign block_read_addr = block_read_addr_ext[ADDRWIDTH-1:0]; assign block_addr = block_addr_ext[ADDRWIDTH-1:0];
endmodule endmodule
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment