Controller issue with core development
Posted: Wed Nov 24, 2021 5:02 pm
Hi,
I wonder if anyone has had a similar issue. I've put together a simple arcade core - I'm going to start publishing the step in videos coming up - anyway I'm putting the controller inputs into my core as so (Verilog):
.BUTTONS(~{m_coin, m_start, m_bomb, m_fire, m_right, m_left, m_down, m_up}),
This is the standard setup for the controls as far as I see.
Now if I pull from those controls in that order it works ok. However in my instantiated module, if I change the order like this:
.D({IN0[7:6],in_coin,in_fire,in_right,in_down,in_left,in_up}),
My core doesn't like it and is creating a permanent interrupt on the CPU. Why on earth would the order matter like this?
Has anyone else come across this issue at all?
Thanks.
I wonder if anyone has had a similar issue. I've put together a simple arcade core - I'm going to start publishing the step in videos coming up - anyway I'm putting the controller inputs into my core as so (Verilog):
.BUTTONS(~{m_coin, m_start, m_bomb, m_fire, m_right, m_left, m_down, m_up}),
This is the standard setup for the controls as far as I see.
Now if I pull from those controls in that order it works ok. However in my instantiated module, if I change the order like this:
.D({IN0[7:6],in_coin,in_fire,in_right,in_down,in_left,in_up}),
My core doesn't like it and is creating a permanent interrupt on the CPU. Why on earth would the order matter like this?
Has anyone else come across this issue at all?
Thanks.