pinmux.git
6 years agoautopep8 whitespace cleanup
Luke Kenneth Casson Leighton [Fri, 30 Mar 2018 13:46:03 +0000 (14:46 +0100)]
autopep8 whitespace cleanup

6 years agoadd some documentation to the spec modules
Luke Kenneth Casson Leighton [Fri, 30 Mar 2018 13:45:18 +0000 (14:45 +0100)]
add some documentation to the spec modules

6 years agoupdate minitest spec
Luke Kenneth Casson Leighton [Fri, 30 Mar 2018 13:05:50 +0000 (14:05 +0100)]
update minitest spec

6 years agorework spec generation functions
Luke Kenneth Casson Leighton [Fri, 30 Mar 2018 13:04:18 +0000 (14:04 +0100)]
rework spec generation functions

6 years agorefactoring pin function name generators
Luke Kenneth Casson Leighton [Fri, 30 Mar 2018 12:26:05 +0000 (13:26 +0100)]
refactoring pin function name generators

6 years agofix UARTQ0 spec
Luke Kenneth Casson Leighton [Fri, 30 Mar 2018 10:00:01 +0000 (11:00 +0100)]
fix UARTQ0 spec

6 years agorename m_class spec jtag and ulpi numbers
Luke Kenneth Casson Leighton [Fri, 30 Mar 2018 09:58:45 +0000 (10:58 +0100)]
rename m_class spec jtag and ulpi numbers

6 years agorename m_class spec uart numbers
Luke Kenneth Casson Leighton [Fri, 30 Mar 2018 09:42:12 +0000 (10:42 +0100)]
rename m_class spec uart numbers

6 years agorename m_class spec spi numbers
Luke Kenneth Casson Leighton [Fri, 30 Mar 2018 09:37:13 +0000 (10:37 +0100)]
rename m_class spec spi numbers

6 years agorename m_class spec sd numbers
Luke Kenneth Casson Leighton [Fri, 30 Mar 2018 09:36:30 +0000 (10:36 +0100)]
rename m_class spec sd numbers

6 years agorenumber interfaces start from zero
Luke Kenneth Casson Leighton [Fri, 30 Mar 2018 09:34:17 +0000 (10:34 +0100)]
renumber interfaces start from zero

6 years agoremove debug print statements
Luke Kenneth Casson Leighton [Fri, 30 Mar 2018 09:25:12 +0000 (10:25 +0100)]
remove debug print statements

6 years agoadjust minitest layout
Luke Kenneth Casson Leighton [Fri, 30 Mar 2018 09:24:31 +0000 (10:24 +0100)]
adjust minitest layout

6 years agoadd mini spec for test purposes
Luke Kenneth Casson Leighton [Fri, 30 Mar 2018 09:10:15 +0000 (10:10 +0100)]
add mini spec for test purposes

6 years agocheck pin position overwriting
Luke Kenneth Casson Leighton [Fri, 30 Mar 2018 09:10:00 +0000 (10:10 +0100)]
check pin position overwriting

6 years agowhoops not commented out properly
Luke Kenneth Casson Leighton [Fri, 30 Mar 2018 09:03:16 +0000 (10:03 +0100)]
whoops not commented out properly

6 years agoremove print statement
Luke Kenneth Casson Leighton [Fri, 30 Mar 2018 06:58:31 +0000 (07:58 +0100)]
remove print statement

6 years agopep8 whitespace cleanup
Luke Kenneth Casson Leighton [Fri, 30 Mar 2018 06:57:01 +0000 (07:57 +0100)]
pep8 whitespace cleanup

6 years agoautopep8 being a bit over-zealous...
Luke Kenneth Casson Leighton [Fri, 30 Mar 2018 06:56:40 +0000 (07:56 +0100)]
autopep8 being a bit over-zealous...

6 years agoexplain flexspec, its extra functions to be added basically
Luke Kenneth Casson Leighton [Fri, 30 Mar 2018 06:50:58 +0000 (07:50 +0100)]
explain flexspec, its extra functions to be added basically

6 years agoautopep8 whitespace cleanup
Luke Kenneth Casson Leighton [Fri, 30 Mar 2018 06:42:36 +0000 (07:42 +0100)]
autopep8 whitespace cleanup

6 years agomove spec functions into Pinouts class
Luke Kenneth Casson Leighton [Fri, 30 Mar 2018 06:41:20 +0000 (07:41 +0100)]
move spec functions into Pinouts class

6 years agobug in m_class spec, flexbus pins being overwritten
Luke Kenneth Casson Leighton [Fri, 30 Mar 2018 06:21:34 +0000 (07:21 +0100)]
bug in m_class spec, flexbus pins being overwritten

6 years agorename functions with single instances
Luke Kenneth Casson Leighton [Fri, 30 Mar 2018 06:21:07 +0000 (07:21 +0100)]
rename functions with single instances

6 years agoadd a "single" mode to Interfaces, stops number being inserted gpioa{0}_a0
Luke Kenneth Casson Leighton [Fri, 30 Mar 2018 06:04:27 +0000 (07:04 +0100)]
add a "single" mode to Interfaces, stops number being inserted gpioa{0}_a0
is now gpioa_a0

6 years agoupdated bluespec search paths
Neel [Thu, 29 Mar 2018 15:51:50 +0000 (21:21 +0530)]
updated bluespec search paths

6 years agobitspec if now of type "Bit#(?)" or GenericIOType
Neel [Thu, 29 Mar 2018 15:51:29 +0000 (21:21 +0530)]
bitspec if now of type "Bit#(?)" or GenericIOType

6 years agocell interface is now a single output method of GenericIOType instead of multiple...
Neel [Thu, 29 Mar 2018 15:50:54 +0000 (21:20 +0530)]
cell interface is now a single output method of GenericIOType instead of multiple different methods.

6 years agocreating a single rule to assign function inputs from IOs based on mux lines
Neel [Thu, 29 Mar 2018 15:49:49 +0000 (21:19 +0530)]
creating a single rule to assign function inputs from IOs based on mux lines

6 years agoadding test on migen pinmux
Luke Kenneth Casson Leighton [Thu, 29 Mar 2018 13:59:22 +0000 (14:59 +0100)]
adding test on migen pinmux

6 years agowrite out pinspec to pinspec.txt
Luke Kenneth Casson Leighton [Thu, 29 Mar 2018 13:20:28 +0000 (14:20 +0100)]
write out pinspec to pinspec.txt

6 years agoadd pinbank starting points and sizes
Luke Kenneth Casson Leighton [Thu, 29 Mar 2018 13:18:51 +0000 (14:18 +0100)]
add pinbank starting points and sizes

6 years agoadd migen safe input mux
Luke Kenneth Casson Leighton [Thu, 29 Mar 2018 13:08:13 +0000 (14:08 +0100)]
add migen safe input mux

6 years agowhitespace python3 cleanup
Luke Kenneth Casson Leighton [Thu, 29 Mar 2018 08:33:21 +0000 (09:33 +0100)]
whitespace python3 cleanup

6 years agowhoops need __contains__ due to pep8 replacement in for has_key
Luke Kenneth Casson Leighton [Thu, 29 Mar 2018 08:33:05 +0000 (09:33 +0100)]
whoops need __contains__ due to pep8 replacement in for has_key

6 years agostronger autopep8 whitespace cleanup
Luke Kenneth Casson Leighton [Thu, 29 Mar 2018 08:23:51 +0000 (09:23 +0100)]
stronger autopep8 whitespace cleanup

6 years agoadd fixed pins generation
Luke Kenneth Casson Leighton [Thu, 29 Mar 2018 08:20:32 +0000 (09:20 +0100)]
add fixed pins generation

6 years agoadd TODO assert for now
Luke Kenneth Casson Leighton [Wed, 28 Mar 2018 15:47:30 +0000 (16:47 +0100)]
add TODO assert for now

6 years agosort out pwm naming scheme
Luke Kenneth Casson Leighton [Wed, 28 Mar 2018 15:38:54 +0000 (16:38 +0100)]
sort out pwm naming scheme

6 years agofix pinmerge issue, merge pingroup
Luke Kenneth Casson Leighton [Wed, 28 Mar 2018 15:12:35 +0000 (16:12 +0100)]
fix pinmerge issue, merge pingroup

6 years agofix incompatibility between spec gen and pinmux code-gen
Luke Kenneth Casson Leighton [Wed, 28 Mar 2018 14:42:48 +0000 (15:42 +0100)]
fix incompatibility between spec gen and pinmux code-gen

6 years agoremove manual dictionary, use interface txt file definitions
Luke Kenneth Casson Leighton [Wed, 28 Mar 2018 14:16:06 +0000 (15:16 +0100)]
remove manual dictionary, use interface txt file definitions

6 years agobig autopep8 whitespace cleanup, not run before on pinmux spec code
Luke Kenneth Casson Leighton [Tue, 27 Mar 2018 14:56:41 +0000 (15:56 +0100)]
big autopep8 whitespace cleanup, not run before on pinmux spec code

6 years agofirst effort at generating pinmap.txt
Luke Kenneth Casson Leighton [Tue, 27 Mar 2018 14:53:51 +0000 (15:53 +0100)]
first effort at generating pinmap.txt

6 years agowhoops forgot to initialise pinspec variable in __main__
Luke Kenneth Casson Leighton [Tue, 27 Mar 2018 14:38:43 +0000 (15:38 +0100)]
whoops forgot to initialise pinspec variable in __main__

6 years agosplit out interface printing functions to separate module
Luke Kenneth Casson Leighton [Tue, 27 Mar 2018 07:17:25 +0000 (08:17 +0100)]
split out interface printing functions to separate module

6 years agorename EINT, add underscore for consistency
Luke Kenneth Casson Leighton [Tue, 27 Mar 2018 07:14:40 +0000 (08:14 +0100)]
rename EINT, add underscore for consistency

6 years agoreduce I2S to 5-pin width
Luke Kenneth Casson Leighton [Tue, 27 Mar 2018 07:09:12 +0000 (08:09 +0100)]
reduce I2S to 5-pin width

6 years agoadd inout spec
Luke Kenneth Casson Leighton [Tue, 27 Mar 2018 07:08:37 +0000 (08:08 +0100)]
add inout spec

6 years agobegin generating spec files consistently: codes a bit of a mess
Luke Kenneth Casson Leighton [Tue, 27 Mar 2018 06:41:15 +0000 (07:41 +0100)]
begin generating spec files consistently: codes a bit of a mess

6 years agoadd help message for spec
Luke Kenneth Casson Leighton [Tue, 27 Mar 2018 05:42:20 +0000 (06:42 +0100)]
add help message for spec

6 years agogot fed up of doing functions used class instead for Pinouts
Luke Kenneth Casson Leighton [Sun, 25 Mar 2018 11:49:40 +0000 (12:49 +0100)]
got fed up of doing functions used class instead for Pinouts

6 years agowrite out interfaces.txt first version
Luke Kenneth Casson Leighton [Sat, 24 Mar 2018 00:45:34 +0000 (00:45 +0000)]
write out interfaces.txt first version

6 years agoadd spec generation
Luke Kenneth Casson Leighton [Fri, 23 Mar 2018 23:07:13 +0000 (23:07 +0000)]
add spec generation

6 years agoadd pinspec generator
Luke Kenneth Casson Leighton [Fri, 23 Mar 2018 22:55:56 +0000 (22:55 +0000)]
add pinspec generator

6 years agopep8, whitespace cleanup
Luke Kenneth Casson Leighton [Fri, 23 Mar 2018 16:55:04 +0000 (16:55 +0000)]
pep8, whitespace cleanup

6 years agomove more modules to src/bsv directory
Luke Kenneth Casson Leighton [Fri, 23 Mar 2018 16:47:37 +0000 (16:47 +0000)]
move more modules to src/bsv directory

6 years agomove pinmux generator function to src/bsv directory
Luke Kenneth Casson Leighton [Fri, 23 Mar 2018 16:45:30 +0000 (16:45 +0000)]
move pinmux generator function to src/bsv directory

6 years agomove pinmux generator function to src/bsv directory
Luke Kenneth Casson Leighton [Fri, 23 Mar 2018 16:43:44 +0000 (16:43 +0000)]
move pinmux generator function to src/bsv directory

6 years agowhitespace cleanup
Luke Kenneth Casson Leighton [Fri, 23 Mar 2018 14:26:56 +0000 (14:26 +0000)]
whitespace cleanup

6 years agoupdate Makefile add test directory parameter
Luke Kenneth Casson Leighton [Fri, 23 Mar 2018 14:23:31 +0000 (14:23 +0000)]
update Makefile add test directory parameter

6 years agomove interface and pinmux definition to test directory
Luke Kenneth Casson Leighton [Fri, 23 Mar 2018 14:20:15 +0000 (14:20 +0000)]
move interface and pinmux definition to test directory

6 years agoadd help message and options to specify source path
Luke Kenneth Casson Leighton [Fri, 23 Mar 2018 14:10:06 +0000 (14:10 +0000)]
add help message and options to specify source path

6 years agoadd path argument to pinmuxgen function
Luke Kenneth Casson Leighton [Fri, 23 Mar 2018 13:54:14 +0000 (13:54 +0000)]
add path argument to pinmuxgen function

6 years agoindent and functionify pinmux generator
Luke Kenneth Casson Leighton [Fri, 23 Mar 2018 13:34:35 +0000 (13:34 +0000)]
indent and functionify pinmux generator

6 years agoadd path option to parse function
Luke Kenneth Casson Leighton [Fri, 23 Mar 2018 13:33:54 +0000 (13:33 +0000)]
add path option to parse function

6 years agoclass restructure parsing
Luke Kenneth Casson Leighton [Fri, 23 Mar 2018 05:57:14 +0000 (05:57 +0000)]
class restructure parsing

6 years agoremove if brackets
Luke Kenneth Casson Leighton [Fri, 23 Mar 2018 05:44:53 +0000 (05:44 +0000)]
remove if brackets

6 years agoremove if brackets
Luke Kenneth Casson Leighton [Fri, 23 Mar 2018 05:44:25 +0000 (05:44 +0000)]
remove if brackets

6 years agoslight style-alteration on pinmap.txt parsing
Luke Kenneth Casson Leighton [Fri, 23 Mar 2018 05:34:10 +0000 (05:34 +0000)]
slight style-alteration on pinmap.txt parsing

6 years agoslight logic change which seems to work on generating mux selector
Luke Kenneth Casson Leighton [Fri, 23 Mar 2018 05:20:20 +0000 (05:20 +0000)]
slight logic change which seems to work on generating mux selector

6 years agouse assert not if/print/exit
Luke Kenneth Casson Leighton [Fri, 23 Mar 2018 05:11:58 +0000 (05:11 +0000)]
use assert not if/print/exit

6 years agopycodestyle warned variable name l was ambiguous
Luke Kenneth Casson Leighton [Fri, 23 Mar 2018 05:05:56 +0000 (05:05 +0000)]
pycodestyle warned variable name l was ambiguous

6 years agowhitespace cleanup
Luke Kenneth Casson Leighton [Fri, 23 Mar 2018 05:04:59 +0000 (05:04 +0000)]
whitespace cleanup

6 years agonot a fan of brackets on if statements... :)
Luke Kenneth Casson Leighton [Fri, 23 Mar 2018 04:51:49 +0000 (04:51 +0000)]
not a fan of brackets on if statements... :)

6 years agoautopep8, whitespace
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 19:12:04 +0000 (19:12 +0000)]
autopep8, whitespace

6 years agowhitespace, autopep8
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 18:46:44 +0000 (18:46 +0000)]
whitespace, autopep8

6 years agosignal name for pwm0 is pwm, so variables should change to pwm0_pwm and likewise
Neel [Thu, 22 Mar 2018 16:23:34 +0000 (21:53 +0530)]
signal name for pwm0 is pwm, so variables should change to pwm0_pwm and likewise

6 years agosignal name for spi is "ss" and not "nss"
Neel [Thu, 22 Mar 2018 16:22:48 +0000 (21:52 +0530)]
signal name for spi is "ss" and not "nss"

6 years agoremove muxwire from generator, call from interface_decl instead
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 11:57:25 +0000 (11:57 +0000)]
remove muxwire from generator, call from interface_decl instead

6 years agoremove unneeded generic_io import
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 11:47:20 +0000 (11:47 +0000)]
remove unneeded generic_io import

6 years agomake interface_decl usage generic
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 11:38:15 +0000 (11:38 +0000)]
make interface_decl usage generic

6 years agoattempt to add io_interface to iface automatically
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 11:27:49 +0000 (11:27 +0000)]
attempt to add io_interface to iface automatically

6 years agoconvert to classes (or functions)
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 11:12:41 +0000 (11:12 +0000)]
convert to classes (or functions)

6 years agoadd gitignore for vi swap and pyc files
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 10:57:22 +0000 (10:57 +0000)]
add gitignore for vi swap and pyc files

6 years agoadd gitignore for vi swap and pyc files
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 10:57:06 +0000 (10:57 +0000)]
add gitignore for vi swap and pyc files

6 years agowhitespace, autopep8
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 10:55:40 +0000 (10:55 +0000)]
whitespace, autopep8

6 years agoremove unneeded code
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 10:30:21 +0000 (10:30 +0000)]
remove unneeded code

6 years agoimport * baaad!
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 10:26:06 +0000 (10:26 +0000)]
import * baaad!

6 years agoremove N_UART, N_SPI etc.
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 10:15:47 +0000 (10:15 +0000)]
remove N_UART, N_SPI etc.

6 years agoremove hard-coded additions of interfaces, use Interfaces class
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 10:15:11 +0000 (10:15 +0000)]
remove hard-coded additions of interfaces, use Interfaces class

6 years agocorrections to inferface reader, add unit tests
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 09:43:22 +0000 (09:43 +0000)]
corrections to inferface reader, add unit tests

6 years agoadd interface reader
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 09:35:35 +0000 (09:35 +0000)]
add interface reader

6 years agosplit interface name out as a prefix
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 09:02:20 +0000 (09:02 +0000)]
split interface name out as a prefix

6 years agouse auto-generated wiredefs
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 07:05:53 +0000 (07:05 +0000)]
use auto-generated wiredefs

6 years agoadd wiredef auto-generation
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 06:37:07 +0000 (06:37 +0000)]
add wiredef auto-generation

6 years agomore alteration of wire_defs to make auto-generation easier
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 06:36:47 +0000 (06:36 +0000)]
more alteration of wire_defs to make auto-generation easier

6 years agowire_def whitespace cleanup
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 05:51:23 +0000 (05:51 +0000)]
wire_def whitespace cleanup

6 years agoRevert "more alteration of wire_defs to make auto-generation easier"
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 05:46:58 +0000 (05:46 +0000)]
Revert "more alteration of wire_defs to make auto-generation easier"

This reverts commit c5846936454d7d0e45aa39a4f16064797908e348.

(actually not easier)

6 years agomore alteration of wire_defs to make auto-generation easier
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 05:39:09 +0000 (05:39 +0000)]
more alteration of wire_defs to make auto-generation easier