F
fpgawizz
Guest
I have a design where i have data coming in from a serial port, i am
sampling it and then writing to an external SRAM. Everything is fine until
now. I have an FSM that does this process for me.
I also have another input which when asserted should make my circuit check
if the data i wrote to the SRAM is correct. like a simple read and compare
against expected value. I am also writing the values to an internal block
ram for use in comparison later. The issue here is I have a process
statement that has my FSM which goes from address 0 to N to write my seial
data to SRAM. If I have another process statement to execute the read and
compare, I wont be able to use the signals i have for address since they
are used in the serial receive process statement.
Also i dont want to put this logic inside the serial process statement coz
it would make it complicated.
How do i have a second process statement and yet avoid multisource errors
on my address out lines?
Signal "N"(8 bits) maps to "addr_in"(8 bits). addr_in is the inout of my
memory controller state machine. I increment N and write the data coming
in to the SRAM. I want to manipulate N again when the read and execute
operation is asserted. Any ideas how i can achieve this?
thanks
sampling it and then writing to an external SRAM. Everything is fine until
now. I have an FSM that does this process for me.
I also have another input which when asserted should make my circuit check
if the data i wrote to the SRAM is correct. like a simple read and compare
against expected value. I am also writing the values to an internal block
ram for use in comparison later. The issue here is I have a process
statement that has my FSM which goes from address 0 to N to write my seial
data to SRAM. If I have another process statement to execute the read and
compare, I wont be able to use the signals i have for address since they
are used in the serial receive process statement.
Also i dont want to put this logic inside the serial process statement coz
it would make it complicated.
How do i have a second process statement and yet avoid multisource errors
on my address out lines?
Signal "N"(8 bits) maps to "addr_in"(8 bits). addr_in is the inout of my
memory controller state machine. I increment N and write the data coming
in to the SRAM. I want to manipulate N again when the read and execute
operation is asserted. Any ideas how i can achieve this?
thanks