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

6 years agore-format wire_def to make it easier to auto-generate
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 05:17:59 +0000 (05:17 +0000)]
re-format wire_def to make it easier to auto-generate

6 years agono longer use *interface_def, spi and jtag remove Bit#(1), is this ok?
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 05:11:25 +0000 (05:11 +0000)]
no longer use *interface_def, spi and jtag remove Bit#(1), is this ok?

6 years agouse auto-generate on interface definitions
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 05:07:01 +0000 (05:07 +0000)]
use auto-generate on interface definitions

6 years agoconsistent naming on io interface
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 05:04:15 +0000 (05:04 +0000)]
consistent naming on io interface

6 years agoupdate pwm to consistent naming convention
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 04:51:59 +0000 (04:51 +0000)]
update pwm to consistent naming convention

6 years agorename twi to consistent naming convention
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 04:49:52 +0000 (04:49 +0000)]
rename twi to consistent naming convention

6 years agocell mux naming convention (forgot to save, whoops)
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 04:39:49 +0000 (04:39 +0000)]
cell mux naming convention (forgot to save, whoops)

6 years agouart naming convention consistency
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 04:39:23 +0000 (04:39 +0000)]
uart naming convention consistency

6 years agono longer need MuxInterface class with consistent naming scheme
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 04:17:18 +0000 (04:17 +0000)]
no longer need MuxInterface class with consistent naming scheme

6 years agorename cell mux to consistent naming scheme
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 04:11:59 +0000 (04:11 +0000)]
rename cell mux to consistent naming scheme

6 years agorename spi to consistent name format
Luke Kenneth Casson Leighton [Thu, 22 Mar 2018 03:48:36 +0000 (03:48 +0000)]
rename spi to consistent name format

6 years agoinvert uart rx/tx generation to match wiredefs and interfacedef
Luke Kenneth Casson Leighton [Wed, 21 Mar 2018 14:11:33 +0000 (14:11 +0000)]
invert uart rx/tx generation to match wiredefs and interfacedef

6 years agopartial conversion to use ifacedef
Luke Kenneth Casson Leighton [Wed, 21 Mar 2018 13:29:38 +0000 (13:29 +0000)]
partial conversion to use ifacedef

6 years agomake mux_interface a Pin/Interface... getting complicated
Luke Kenneth Casson Leighton [Wed, 21 Mar 2018 06:29:44 +0000 (06:29 +0000)]
make mux_interface a Pin/Interface... getting complicated

6 years agoupdated yml files for bitbucket bot
Neel [Wed, 21 Mar 2018 05:11:24 +0000 (10:41 +0530)]
updated yml files for bitbucket bot

6 years agofixed indentation issue while generating wire definitions for TWI
Neel [Wed, 21 Mar 2018 05:03:33 +0000 (10:33 +0530)]
fixed indentation issue while generating wire definitions for TWI

6 years agoadd first auto-generated interface_def (io_interface_def)
Luke Kenneth Casson Leighton [Tue, 20 Mar 2018 21:54:28 +0000 (21:54 +0000)]
add first auto-generated interface_def (io_interface_def)

6 years agouse ifacefmt function name consistently
Luke Kenneth Casson Leighton [Tue, 20 Mar 2018 21:10:28 +0000 (21:10 +0000)]
use ifacefmt function name consistently

6 years agorename interface format fn
Luke Kenneth Casson Leighton [Tue, 20 Mar 2018 21:03:37 +0000 (21:03 +0000)]
rename interface format fn

6 years agouse with to open file
Luke Kenneth Casson Leighton [Tue, 20 Mar 2018 17:43:17 +0000 (17:43 +0000)]
use with to open file

6 years agouse with statement on bsv_file
Luke Kenneth Casson Leighton [Tue, 20 Mar 2018 17:39:44 +0000 (17:39 +0000)]
use with statement on bsv_file

6 years agoadd linebreak on long line
Luke Kenneth Casson Leighton [Tue, 20 Mar 2018 17:38:21 +0000 (17:38 +0000)]
add linebreak on long line

6 years agoadd format function
Luke Kenneth Casson Leighton [Tue, 20 Mar 2018 17:35:09 +0000 (17:35 +0000)]
add format function

6 years agowhitespace cleanup (autopep8)
Luke Kenneth Casson Leighton [Tue, 20 Mar 2018 17:18:12 +0000 (17:18 +0000)]
whitespace cleanup (autopep8)

6 years agoremove hard-coded interface definitions
Luke Kenneth Casson Leighton [Tue, 20 Mar 2018 17:17:53 +0000 (17:17 +0000)]
remove hard-coded interface definitions

6 years agoadd io_interface spec, fix bug where \n was in spec
Luke Kenneth Casson Leighton [Tue, 20 Mar 2018 17:09:01 +0000 (17:09 +0000)]
add io_interface spec, fix bug where \n was in spec

6 years agoadd uart interface
Luke Kenneth Casson Leighton [Tue, 20 Mar 2018 16:58:09 +0000 (16:58 +0000)]
add uart interface

6 years agoadd spi interface
Luke Kenneth Casson Leighton [Tue, 20 Mar 2018 16:57:10 +0000 (16:57 +0000)]
add spi interface

6 years agoadd scl interface spec
Luke Kenneth Casson Leighton [Tue, 20 Mar 2018 16:55:06 +0000 (16:55 +0000)]
add scl interface spec

6 years agowhitespace cleanup (autopep8)
Luke Kenneth Casson Leighton [Tue, 20 Mar 2018 16:51:24 +0000 (16:51 +0000)]
whitespace cleanup (autopep8)

6 years agowhitespace cleanup
Luke Kenneth Casson Leighton [Tue, 20 Mar 2018 16:51:00 +0000 (16:51 +0000)]
whitespace cleanup

6 years agodocument Pin class
Luke Kenneth Casson Leighton [Tue, 20 Mar 2018 16:50:34 +0000 (16:50 +0000)]
document Pin class

6 years agoadd sdcard spec-generator
Luke Kenneth Casson Leighton [Tue, 20 Mar 2018 16:47:16 +0000 (16:47 +0000)]
add sdcard spec-generator

6 years agoadd jtag interface, remove inout param
Luke Kenneth Casson Leighton [Tue, 20 Mar 2018 16:37:36 +0000 (16:37 +0000)]
add jtag interface, remove inout param

6 years agoadd Interface class
Luke Kenneth Casson Leighton [Tue, 20 Mar 2018 16:27:53 +0000 (16:27 +0000)]
add Interface class

6 years agoadd io option to Pin
Luke Kenneth Casson Leighton [Tue, 20 Mar 2018 16:12:36 +0000 (16:12 +0000)]
add io option to Pin

6 years agoadd basic test routine for Pin class
Luke Kenneth Casson Leighton [Tue, 20 Mar 2018 16:08:50 +0000 (16:08 +0000)]
add basic test routine for Pin class

6 years agoadd pin class for auto-generating interface lines
Luke Kenneth Casson Leighton [Tue, 20 Mar 2018 15:55:30 +0000 (15:55 +0000)]
add pin class for auto-generating interface lines

6 years agowhitespace cleanup
Luke Kenneth Casson Leighton [Tue, 20 Mar 2018 11:48:28 +0000 (11:48 +0000)]
whitespace cleanup

6 years agoadding AXI4Lite transactor for now.
Neel [Tue, 20 Mar 2018 09:56:52 +0000 (15:26 +0530)]
adding AXI4Lite transactor for now.

Need to add TileLink support as well later.

6 years agoswitching to python2 and added pep8 auto-sorter to make.
Neel [Tue, 20 Mar 2018 07:32:02 +0000 (13:02 +0530)]
switching to python2 and added pep8 auto-sorter to make.