pinmux.git
5 years agocreate a val0 which is set to 0 to get round compilation error
Luke Kenneth Casson Leighton [Sun, 1 Jul 2018 23:31:47 +0000 (00:31 +0100)]
create a val0 which is set to 0 to get round compilation error

5 years agohack for the outputs, get rid of _out for non-inouts
Luke Kenneth Casson Leighton [Sun, 1 Jul 2018 23:28:43 +0000 (00:28 +0100)]
hack for the outputs, get rid of _out for non-inouts

5 years agopick up function keys different way
Luke Kenneth Casson Leighton [Sun, 1 Jul 2018 23:22:23 +0000 (00:22 +0100)]
pick up function keys different way

5 years agoremove typo X
Luke Kenneth Casson Leighton [Fri, 29 Jun 2018 15:06:56 +0000 (16:06 +0100)]
remove typo X

5 years agoupdate microtest baseline bsv
Luke Kenneth Casson Leighton [Fri, 29 Jun 2018 08:09:42 +0000 (09:09 +0100)]
update microtest baseline bsv

5 years agoset output-only via GPIO direction
Luke Kenneth Casson Leighton [Fri, 29 Jun 2018 08:09:30 +0000 (09:09 +0100)]
set output-only via GPIO direction

5 years agoadd a check to the spec generator, list pins not found
Luke Kenneth Casson Leighton [Thu, 28 Jun 2018 12:10:43 +0000 (13:10 +0100)]
add a check to the spec generator, list pins not found

5 years agoremove print statements
Luke Kenneth Casson Leighton [Wed, 27 Jun 2018 10:32:39 +0000 (11:32 +0100)]
remove print statements

5 years agofix bug in dedicated cell type detection
Luke Kenneth Casson Leighton [Tue, 26 Jun 2018 14:15:57 +0000 (15:15 +0100)]
fix bug in dedicated cell type detection

5 years agoadd comment to mkmux function
Luke Kenneth Casson Leighton [Tue, 26 Jun 2018 06:44:50 +0000 (07:44 +0100)]
add comment to mkmux function

5 years agopep8 cleanup
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 22:24:26 +0000 (23:24 +0100)]
pep8 cleanup

5 years agoadd comments for priority muxer inputs
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 16:11:10 +0000 (17:11 +0100)]
add comments for priority muxer inputs

5 years agowhoops got comments wrong way round
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 16:05:12 +0000 (17:05 +0100)]
whoops got comments wrong way round

5 years agoadd in some comments
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 15:21:03 +0000 (16:21 +0100)]
add in some comments

5 years agoadd in some comments
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 15:20:30 +0000 (16:20 +0100)]
add in some comments

5 years agoadd in some comments
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 14:46:54 +0000 (15:46 +0100)]
add in some comments

5 years agoupdate test file to match auto-generated
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 14:13:43 +0000 (15:13 +0100)]
update test file to match auto-generated

5 years agosplit out iocells to separate interface, just makes more sense
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 14:13:13 +0000 (15:13 +0100)]
split out iocells to separate interface, just makes more sense

5 years agorename ioN_inputval to ioN_cell_in
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 13:50:42 +0000 (14:50 +0100)]
rename ioN_inputval to ioN_cell_in

5 years agoremove GenericIOType and FunctionType for now
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 13:14:27 +0000 (14:14 +0100)]
remove GenericIOType and FunctionType for now

5 years agochange enabled mode, to look lke test output
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 11:27:16 +0000 (12:27 +0100)]
change enabled mode, to look lke test output

5 years agochange order of declarations, to look like output
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 11:26:54 +0000 (12:26 +0100)]
change order of declarations, to look like output

5 years agoreformat declarations to look like test file, bit hacky...
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 11:14:28 +0000 (12:14 +0100)]
reformat declarations to look like test file, bit hacky...

5 years agosplit mux-generation into separate function, use it for both out and outen
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 10:53:29 +0000 (11:53 +0100)]
split mux-generation into separate function, use it for both out and outen

5 years agocorrect test file
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 10:51:07 +0000 (11:51 +0100)]
correct test file

5 years agocell mux bitwidth 2
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 10:20:10 +0000 (11:20 +0100)]
cell mux bitwidth 2

5 years agopep8 cleanup
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 09:17:44 +0000 (10:17 +0100)]
pep8 cleanup

5 years agouse tabs not spaces
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 09:15:48 +0000 (10:15 +0100)]
use tabs not spaces

5 years ago2 wires per cell muxer
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 09:13:53 +0000 (10:13 +0100)]
2 wires per cell muxer

5 years agoextend mux entries in test file to cover up to 1<<cell_bitwidth
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 09:04:35 +0000 (10:04 +0100)]
extend mux entries in test file to cover up to 1<<cell_bitwidth

5 years agodo full cell mux range otherwise spurious outputs occur
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 08:56:11 +0000 (09:56 +0100)]
do full cell mux range otherwise spurious outputs occur

5 years agomove cell_bit_width function
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 08:45:07 +0000 (09:45 +0100)]
move cell_bit_width function

5 years agoadd comment insertion thing into muxer output
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 08:27:18 +0000 (09:27 +0100)]
add comment insertion thing into muxer output

5 years agoclarify out-mux formatting
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 08:12:57 +0000 (09:12 +0100)]
clarify out-mux formatting

5 years agoremove debug print
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 08:04:19 +0000 (09:04 +0100)]
remove debug print

5 years agocorrections to hand-coded file
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 07:53:59 +0000 (08:53 +0100)]
corrections to hand-coded file

5 years agowhoops counting cell bit width, maths wrong
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 07:53:13 +0000 (08:53 +0100)]
whoops counting cell bit width, maths wrong

5 years agospelling corrections
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 07:41:21 +0000 (08:41 +0100)]
spelling corrections

5 years agorename twi0 and uart0 single functions
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 07:32:37 +0000 (08:32 +0100)]
rename twi0 and uart0 single functions

5 years agoremoving GenericIOType, sorting out function names
Luke Kenneth Casson Leighton [Mon, 25 Jun 2018 07:31:43 +0000 (08:31 +0100)]
removing GenericIOType, sorting out function names

5 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

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

5 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

5 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!

5 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

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

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

5 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

5 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

5 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

5 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

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

5 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

5 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

5 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

5 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

5 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

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

5 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!

5 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

5 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

5 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

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

5 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

5 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

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

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

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

5 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

5 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

5 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

5 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

5 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

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

6 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

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

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

6 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

6 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

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

6 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

6 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

6 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

6 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

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

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

6 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

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

6 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

6 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

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

6 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

6 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

6 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

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

6 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

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

6 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

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