7i96s custom pinouts
- mwidlok
- Offline
- Junior Member
-
Less
More
- Posts: 38
- Thank you received: 15
05 May 2023 10:21 #270719
by mwidlok
7i96s custom pinouts was created by mwidlok
Hello,
I'm playing around with custom Mesa 7i96s bitfiles that enables different modules in final configuration (less StepGens, more PWMs and encoders in general). While structure of "ModuleID" table in PIN_7I96S_***.vhd files is mostly clear, I have troubles with "PinDesc" table. For example I wanted to mix StepGen outputs with PWM outputs:
That compiles and flashed ok, however "mesaflash --readhmid" says that pinout is different: all SetepGen modules first (I/O 17 to I/O 22) then all PWMGen modules (I/O 23 to I/O 26). Am I missing something here? Or maybe it is not possible to mix modules in PinDesc table? This is also problematic with my next idea - putting another encoder interface to P1 expansion connector.
Thanks in advance, Michael Widlok
I'm playing around with custom Mesa 7i96s bitfiles that enables different modules in final configuration (less StepGens, more PWMs and encoders in general). While structure of "ModuleID" table in PIN_7I96S_***.vhd files is mostly clear, I have troubles with "PinDesc" table. For example I wanted to mix StepGen outputs with PWM outputs:
IOPortTa & x"00" & StepGenTag & StepGenStepPin, -- I/O 17
IOPortTa & x"00" & StepGenTag & StepGenDirPin, -- I/O 18
IOPortTa & x"01" & PWMTag & PWMAOutPin, -- I/O 19
IOPortTa & x"01" & PWMTag & PWMBDirPin, -- I/O 20
IOPortTa & x"01" & StepGenTag & StepGenStepPin, -- I/O 21
IOPortTa & x"01" & StepGenTag & StepGenDirPin, -- I/O 22
IOPortTa & x"02" & PWMTag & PWMAOutPin, -- I/O 23
IOPortTa & x"02" & PWMTag & PWMBDirPin, -- I/O 24
IOPortTa & x"02" & StepGenTag & StepGenStepPin, -- I/O 25
IOPortTa & x"02" & StepGenTag & StepGenDirPin, -- I/O 26
That compiles and flashed ok, however "mesaflash --readhmid" says that pinout is different: all SetepGen modules first (I/O 17 to I/O 22) then all PWMGen modules (I/O 23 to I/O 26). Am I missing something here? Or maybe it is not possible to mix modules in PinDesc table? This is also problematic with my next idea - putting another encoder interface to P1 expansion connector.
Thanks in advance, Michael Widlok
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18541
- Thank you received: 5090
05 May 2023 14:07 #270727
by PCW
Replied by PCW on topic 7i96s custom pinouts
You can mix pins in any order.
Is it possible you did not power cycle or use --reload before --readhmid?
Is it possible you did not power cycle or use --reload before --readhmid?
The following user(s) said Thank You: mwidlok
Please Log in or Create an account to join the conversation.
- mwidlok
- Offline
- Junior Member
-
Less
More
- Posts: 38
- Thank you received: 15
05 May 2023 15:16 #270732
by mwidlok
Replied by mwidlok on topic 7i96s custom pinouts
Thanks, I will double check my files and report here shortly.
I think that I used --reload (or --reset), but now I'm not 100% sure about it.
I think that I used --reload (or --reset), but now I'm not 100% sure about it.
Please Log in or Create an account to join the conversation.
- mwidlok
- Offline
- Junior Member
-
Less
More
- Posts: 38
- Thank you received: 15
05 May 2023 15:51 #270734
by mwidlok
Replied by mwidlok on topic 7i96s custom pinouts
Short answer - it works as You said.
I really don't know what I messed up at first, I thought that I've checked everything. I suspect that my problem might be little experience with Efinix software - I might run compilation/synthesis improperly and new bitfile was not generated.
Anyway, sorry for bothering You.
Michael Widlok
I really don't know what I messed up at first, I thought that I've checked everything. I suspect that my problem might be little experience with Efinix software - I might run compilation/synthesis improperly and new bitfile was not generated.
Anyway, sorry for bothering You.
Michael Widlok
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.068 seconds