BartlebyScrivener
Member level 5
I have several modules coming together to make a network. At the lowest level I have a buffer giving an output
[63:0] bufferDataOut
which is passed, along with 4 other instantiated buffers to a router module using a for loop and
bufferDataOut[j]
to an array [63:0] bufferDataOut [0:4]
which goes through a switch to create
[63:0] routerDataOut [0:4]
I want to send this, along with other routers, to a network module, using a for loop to instantiate, to fit in an array
[63:0] networkData [0:4] [0:Number of Routers]
any ideas how I would do this please?
I tried using networkData in a loop in the port space when instantiating but it throws up errors when trying to simulate claiming the Array ranges [0:number of routers] & [0:4] have different lengths.
So I tried using networkData[0:4] in the loop in the port space and when trying to compile this throws up the error near "[": syntax error, unexpected '[', expecting ')'
So I tried using networkData[0:4] in the loop in the port space and this throws the error Illegal output or inout port connection for "port 'routerDataOut'" when trying to simulate.
Any help is greatly appreciated!
[63:0] bufferDataOut
which is passed, along with 4 other instantiated buffers to a router module using a for loop and
bufferDataOut[j]
to an array [63:0] bufferDataOut [0:4]
which goes through a switch to create
[63:0] routerDataOut [0:4]
I want to send this, along with other routers, to a network module, using a for loop to instantiate, to fit in an array
[63:0] networkData [0:4] [0:Number of Routers]
any ideas how I would do this please?
I tried using networkData in a loop in the port space when instantiating but it throws up errors when trying to simulate claiming the Array ranges [0:number of routers] & [0:4] have different lengths.
So I tried using networkData[0:4] in the loop in the port space and when trying to compile this throws up the error near "[": syntax error, unexpected '[', expecting ')'
So I tried using networkData[0:4] in the loop in the port space and this throws the error Illegal output or inout port connection for "port 'routerDataOut'" when trying to simulate.
Any help is greatly appreciated!