pinmux.git
7 years agocorrect microtest spec, single interface must take out numbering
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 07:13:07 +0000 (08:13 +0100)]
correct microtest spec, single interface must take out numbering

7 years agostart removing GenericIOType
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 07:11:34 +0000 (08:11 +0100)]
start removing GenericIOType

7 years agochange hand-edited bsv to bsv comments
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 07:04:04 +0000 (08:04 +0100)]
change hand-edited bsv to bsv comments

7 years agowhoops use bsv comments not python comments!
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 07:03:49 +0000 (08:03 +0100)]
whoops use bsv comments not python comments!

7 years agochange ioN_cell to methods, stop using GenericIOType
Luke Kenneth Casson Leighton [Sun, 24 Jun 2018 14:36:34 +0000 (15:36 +0100)]
change ioN_cell to methods, stop using GenericIOType

7 years agoadd cell outen wires
Luke Kenneth Casson Leighton [Sun, 24 Jun 2018 13:24:11 +0000 (14:24 +0100)]
add cell outen wires

7 years agoadd comments
Luke Kenneth Casson Leighton [Sun, 24 Jun 2018 12:58:02 +0000 (13:58 +0100)]
add comments

7 years agoadd preliminary mux-out wire
Luke Kenneth Casson Leighton [Sun, 24 Jun 2018 12:28:41 +0000 (13:28 +0100)]
add preliminary mux-out wire

7 years agoadd auto-generated test pinmux.bsv, to be edited and modified
Luke Kenneth Casson Leighton [Sun, 24 Jun 2018 12:19:32 +0000 (13:19 +0100)]
add auto-generated test pinmux.bsv, to be edited and modified

7 years agowhoops accidentally removed all parameters not just pad-characteristics
Luke Kenneth Casson Leighton [Sun, 24 Jun 2018 11:10:10 +0000 (12:10 +0100)]
whoops accidentally removed all parameters not just pad-characteristics

7 years agoreduce microtest further in size
Luke Kenneth Casson Leighton [Sun, 24 Jun 2018 11:09:20 +0000 (12:09 +0100)]
reduce microtest further in size

7 years agorename minitest to microtest
Luke Kenneth Casson Leighton [Sun, 24 Jun 2018 11:06:38 +0000 (12:06 +0100)]
rename minitest to microtest

7 years agoremove pullup and other pad characteristics as theyre handled by the GPIO mod
Luke Kenneth Casson Leighton [Sun, 24 Jun 2018 11:00:21 +0000 (12:00 +0100)]
remove pullup and other pad characteristics as theyre handled by the GPIO mod

7 years agoremove None from format functions
Luke Kenneth Casson Leighton [Wed, 20 Jun 2018 16:00:10 +0000 (17:00 +0100)]
remove None from format functions

7 years agoadd new types FunctionType and PadCharacteristicsType
Luke Kenneth Casson Leighton [Wed, 20 Jun 2018 12:17:39 +0000 (13:17 +0100)]
add new types FunctionType and PadCharacteristicsType

7 years agoseparate pin banks by name
Luke Kenneth Casson Leighton [Wed, 20 Jun 2018 09:06:33 +0000 (10:06 +0100)]
separate pin banks by name

7 years agouse getifacetype to identify generation of xxxx_io objects
Luke Kenneth Casson Leighton [Wed, 13 Jun 2018 13:03:12 +0000 (14:03 +0100)]
use getifacetype to identify generation of xxxx_io objects

7 years agoRevert "input cell-types now output 0 on output as well.\"
Luke Kenneth Casson Leighton [Wed, 13 Jun 2018 12:23:34 +0000 (13:23 +0100)]
Revert "input cell-types now output 0 on output as well.\"

This reverts commit 197f0c589dce79e1c8e91c5df47903aae397afbf.

7 years agoinput cell-types now output 0 on output as well.\
Luke Kenneth Casson Leighton [Wed, 13 Jun 2018 12:15:46 +0000 (13:15 +0100)]
input cell-types now output 0 on output as well.\
not a good idea to output an input!

7 years agotest pinmap.txt file was not uniformly 4 entries long in each case
Luke Kenneth Casson Leighton [Wed, 13 Jun 2018 11:57:37 +0000 (12:57 +0100)]
test pinmap.txt file was not uniformly 4 entries long in each case

7 years agooutput zero where there is a blank entry in the pinmux
Luke Kenneth Casson Leighton [Wed, 13 Jun 2018 11:53:30 +0000 (12:53 +0100)]
output zero where there is a blank entry in the pinmux

7 years agotest/pinmux.txt was previously hand-edited, not in machine-readable form,\
Luke Kenneth Casson Leighton [Wed, 13 Jun 2018 11:32:39 +0000 (12:32 +0100)]
test/pinmux.txt was previously hand-edited, not in machine-readable form,\
needed updating since splitting now done by tabs

7 years agoskip blank-string entries
Luke Kenneth Casson Leighton [Wed, 13 Jun 2018 11:31:37 +0000 (12:31 +0100)]
skip blank-string entries

7 years agocell[0] is a string not an int
Luke Kenneth Casson Leighton [Wed, 13 Jun 2018 10:54:02 +0000 (11:54 +0100)]
cell[0] is a string not an int

7 years agoremove newline from line before splitting with tabs
Luke Kenneth Casson Leighton [Wed, 13 Jun 2018 10:52:52 +0000 (11:52 +0100)]
remove newline from line before splitting with tabs

7 years agopep8 whitespace cleanup
Luke Kenneth Casson Leighton [Tue, 12 Jun 2018 13:38:22 +0000 (14:38 +0100)]
pep8 whitespace cleanup

7 years agoadding docstring to translate function
rishucoding [Tue, 12 Jun 2018 09:50:56 +0000 (15:20 +0530)]
adding docstring to translate function

7 years agoadding comment to cellnumber function
rishucoding [Tue, 12 Jun 2018 09:34:30 +0000 (15:04 +0530)]
adding comment to cellnumber function

7 years agoreplace split from whitespace to tabspace
rishucoding [Tue, 12 Jun 2018 09:27:44 +0000 (14:57 +0530)]
replace split from whitespace to tabspace

7 years agoreplace split from whitespace to tabspace
rishucoding [Tue, 12 Jun 2018 09:27:17 +0000 (14:57 +0530)]
replace split from whitespace to tabspace

7 years agoadd comment for init fn
Luke Kenneth Casson Leighton [Thu, 31 May 2018 15:48:15 +0000 (16:48 +0100)]
add comment for init fn

7 years agouse cell idx to generate comment into pinmux, matches pinmap.txt
Luke Kenneth Casson Leighton [Thu, 31 May 2018 15:45:11 +0000 (16:45 +0100)]
use cell idx to generate comment into pinmux, matches pinmap.txt

7 years agooutput comment so as to be able to track down output
Luke Kenneth Casson Leighton [Thu, 31 May 2018 15:28:37 +0000 (16:28 +0100)]
output comment so as to be able to track down output

7 years agoautopep8 cleanup
Luke Kenneth Casson Leighton [Thu, 31 May 2018 15:10:42 +0000 (16:10 +0100)]
autopep8 cleanup

7 years agomake mdwn path if it doesnt exist
Luke Kenneth Casson Leighton [Thu, 24 May 2018 08:57:11 +0000 (09:57 +0100)]
make mdwn path if it doesnt exist

7 years agocorrect Makefile path
Luke Kenneth Casson Leighton [Wed, 23 May 2018 10:18:48 +0000 (11:18 +0100)]
correct Makefile path

7 years agomicrotest experimenting
Luke Kenneth Casson Leighton [Fri, 27 Apr 2018 10:15:20 +0000 (11:15 +0100)]
microtest experimenting

7 years agoeven remove gpio, microtest still too big
Luke Kenneth Casson Leighton [Fri, 27 Apr 2018 09:07:30 +0000 (10:07 +0100)]
even remove gpio, microtest still too big

7 years agoadd microtest, minitest still too big
Luke Kenneth Casson Leighton [Fri, 27 Apr 2018 09:06:29 +0000 (10:06 +0100)]
add microtest, minitest still too big

7 years agoclean up Makefile
Luke Kenneth Casson Leighton [Fri, 27 Apr 2018 09:06:13 +0000 (10:06 +0100)]
clean up Makefile

7 years agoadd Makefile/lib auto-generator
Luke Kenneth Casson Leighton [Fri, 27 Apr 2018 08:33:11 +0000 (09:33 +0100)]
add Makefile/lib auto-generator

7 years agouse bit width consistently for mux cells
Luke Kenneth Casson Leighton [Sat, 14 Apr 2018 11:32:55 +0000 (12:32 +0100)]
use bit width consistently for mux cells

7 years agomust declare mux selection same bitwidth
Luke Kenneth Casson Leighton [Sat, 14 Apr 2018 11:28:03 +0000 (12:28 +0100)]
must declare mux selection same bitwidth

7 years agoput cell width at fixed (max) bits
Luke Kenneth Casson Leighton [Sat, 14 Apr 2018 11:16:19 +0000 (12:16 +0100)]
put cell width at fixed (max) bits

7 years agothe assignment of a wire from an input configured pin must happen through individual...
Neel [Sat, 14 Apr 2018 11:11:00 +0000 (16:41 +0530)]
the assignment of a wire from an input configured pin must happen through individual rules. The pinmuxing table might be defined such a way that input pins pin0 and pin2 drive the same function wrfunc. So pin0 using wrcell0_mux to assign wrfunc and pin2 uses wrcell2_mux to assign the same write again. Within the same rule this will cause a multi-driven issue. BSV takes care of this issue by generating an implicit priority between the rules. If rule-A is written before rule-B, then the effects of rule-B will be shadowed i.e only the output of rule-A will be visible.

7 years agoadd busenable output
Luke Kenneth Casson Leighton [Mon, 9 Apr 2018 14:04:36 +0000 (15:04 +0100)]
add busenable output

7 years agorecord bus/ganged type in tsv spec files
Luke Kenneth Casson Leighton [Mon, 9 Apr 2018 13:24:55 +0000 (14:24 +0100)]
record bus/ganged type in tsv spec files

7 years agoadd documentation on pinfunctions
Luke Kenneth Casson Leighton [Wed, 4 Apr 2018 09:32:39 +0000 (10:32 +0100)]
add documentation on pinfunctions

7 years agoreturn which pins are inout-buses from spec pinfunctions
Luke Kenneth Casson Leighton [Wed, 4 Apr 2018 09:25:55 +0000 (10:25 +0100)]
return which pins are inout-buses from spec pinfunctions

7 years agosplit bsv generator into functions
Luke Kenneth Casson Leighton [Wed, 4 Apr 2018 08:38:54 +0000 (09:38 +0100)]
split bsv generator into functions

7 years agowhitespace pep8 cleanup
Luke Kenneth Casson Leighton [Wed, 4 Apr 2018 08:38:37 +0000 (09:38 +0100)]
whitespace pep8 cleanup

7 years agoselector test goes in opposite direction
Luke Kenneth Casson Leighton [Sat, 31 Mar 2018 14:28:14 +0000 (15:28 +0100)]
selector test goes in opposite direction

7 years agoadd myhdl mux.py experiment
Luke Kenneth Casson Leighton [Sat, 31 Mar 2018 14:12:27 +0000 (15:12 +0100)]
add myhdl mux.py experiment

7 years agoclean up pinspec, remove redundant arguments
Luke Kenneth Casson Leighton [Sat, 31 Mar 2018 08:25:23 +0000 (09:25 +0100)]
clean up pinspec, remove redundant arguments

7 years agobig pep8 whitespace cleanup
Luke Kenneth Casson Leighton [Sat, 31 Mar 2018 08:06:13 +0000 (09:06 +0100)]
big pep8 whitespace cleanup

7 years agoadd base class for scenario and pinspecs
Luke Kenneth Casson Leighton [Sat, 31 Mar 2018 08:02:33 +0000 (09:02 +0100)]
add base class for scenario and pinspecs

7 years agobig python3 interoperability update
Luke Kenneth Casson Leighton [Sat, 31 Mar 2018 07:23:48 +0000 (08:23 +0100)]
big python3 interoperability update

7 years agowrite out to mdwn file instead of stdout
Luke Kenneth Casson Leighton [Sat, 31 Mar 2018 07:02:06 +0000 (08:02 +0100)]
write out to mdwn file instead of stdout

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

7 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

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

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

7 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

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

7 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

7 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

7 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

7 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

7 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

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

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

7 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

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

7 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

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

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

7 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...

7 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

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

7 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

7 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

7 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

7 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

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

7 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

7 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.

7 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

7 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

7 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

7 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

7 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

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

7 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

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

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

7 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

7 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

7 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

7 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

7 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