mirror of
https://github.com/aolofsson/oh.git
synced 2025-01-17 20:02:53 +08:00
Making index explicit
-the AW use here was just obfuscation, the numbers are hard coded by definition
This commit is contained in:
parent
d369b509b2
commit
9991558039
@ -47,17 +47,17 @@ module emesh2packet(/*AUTOARG*/
|
||||
generate
|
||||
if(AW==64)
|
||||
begin : packet64
|
||||
assign packet_out[39:8] = dstaddr_out[AW/2-1:0];
|
||||
assign packet_out[71:40] = data_out[AW/2-1:0];
|
||||
assign packet_out[103:72] = srcaddr_out[AW/2-1:0];
|
||||
assign packet_out[135:104] = srcaddr_out[AW-1:AW/2];
|
||||
assign packet_out[167:136] = dstaddr_out[AW-1:AW/2];
|
||||
assign packet_out[39:8] = dstaddr_out[31:0];
|
||||
assign packet_out[71:40] = data_out[31:0];
|
||||
assign packet_out[103:72] = srcaddr_out[31:0];
|
||||
assign packet_out[135:104] = srcaddr_out[63:32];
|
||||
assign packet_out[167:136] = dstaddr_out[63:32];
|
||||
end
|
||||
else
|
||||
begin : packet32
|
||||
assign packet_out[39:8] = dstaddr_out[AW-1:0];
|
||||
assign packet_out[71:40] = data_out[AW-1:0];
|
||||
assign packet_out[103:72] = srcaddr_out[AW-1:0];
|
||||
assign packet_out[39:8] = dstaddr_out[31:0];
|
||||
assign packet_out[71:40] = data_out[31:0];
|
||||
assign packet_out[103:72] = srcaddr_out[31:0];
|
||||
end
|
||||
endgenerate
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user