pinmux.git
6 years agofix pwm compile
Luke Kenneth Casson Leighton [Tue, 17 Jul 2018 12:33:06 +0000 (13:33 +0100)]
fix pwm compile

6 years agoadd i2c in connection
Luke Kenneth Casson Leighton [Tue, 17 Jul 2018 11:51:21 +0000 (12:51 +0100)]
add i2c in connection

6 years agoadd i2c0 and correct errors
Luke Kenneth Casson Leighton [Tue, 17 Jul 2018 11:45:27 +0000 (12:45 +0100)]
add i2c0 and correct errors

6 years agoslow_peripherals.bsv
Neel [Tue, 17 Jul 2018 11:19:18 +0000 (16:49 +0530)]
slow_peripherals.bsv

6 years agoadd rs232 uart
Luke Kenneth Casson Leighton [Tue, 17 Jul 2018 10:53:43 +0000 (11:53 +0100)]
add rs232 uart

6 years agofix compile errors
Luke Kenneth Casson Leighton [Tue, 17 Jul 2018 10:49:10 +0000 (11:49 +0100)]
fix compile errors

6 years agoadd code to get slow_peripherals to compile
Luke Kenneth Casson Leighton [Tue, 17 Jul 2018 09:53:09 +0000 (10:53 +0100)]
add code to get slow_peripherals to compile

6 years agoMerge branch 'master' of libre-riscv.org:/pinmux
rishucoding [Tue, 17 Jul 2018 09:58:12 +0000 (15:28 +0530)]
Merge branch 'master' of libre-riscv.org:/pinmux

6 years agoreplacing remaining pwmnum
rishucoding [Tue, 17 Jul 2018 09:57:56 +0000 (15:27 +0530)]
replacing remaining pwmnum

6 years agorevert back to PWMWIDTH from pwmnum in pwm.bsv
rishucoding [Tue, 17 Jul 2018 09:52:41 +0000 (15:22 +0530)]
revert back to PWMWIDTH from pwmnum in pwm.bsv

6 years agoadd code to get slow_peripherals to compile
Luke Kenneth Casson Leighton [Tue, 17 Jul 2018 09:49:28 +0000 (10:49 +0100)]
add code to get slow_peripherals to compile

6 years agotemplate for slow-peripherals done. need automation. gpio config is decouple from...
Neel [Tue, 17 Jul 2018 09:10:45 +0000 (14:40 +0530)]
template for slow-peripherals done. need automation. gpio config is decouple from func as well.

6 years agoadd instance
Luke Kenneth Casson Leighton [Tue, 17 Jul 2018 07:54:57 +0000 (08:54 +0100)]
add instance

6 years agoattempting pwm compile
Luke Kenneth Casson Leighton [Tue, 17 Jul 2018 06:04:25 +0000 (07:04 +0100)]
attempting pwm compile

6 years agoadd pwm test Makefile
Luke Kenneth Casson Leighton [Tue, 17 Jul 2018 05:49:03 +0000 (06:49 +0100)]
add pwm test Makefile

6 years agoadd extra instance params PADDR Reg_width
Luke Kenneth Casson Leighton [Tue, 17 Jul 2018 05:45:06 +0000 (06:45 +0100)]
add extra instance params PADDR Reg_width

6 years agocorrection in awaddr in mux.bsv
rishucoding [Tue, 17 Jul 2018 05:54:43 +0000 (11:24 +0530)]
correction in awaddr in mux.bsv

6 years agoMerge branch 'master' of libre-riscv.org:/pinmux
rishucoding [Tue, 17 Jul 2018 05:51:45 +0000 (11:21 +0530)]
Merge branch 'master' of libre-riscv.org:/pinmux

6 years agoadded comments in mux.bsv
rishucoding [Tue, 17 Jul 2018 05:50:49 +0000 (11:20 +0530)]
added comments in mux.bsv

6 years agoremove PWMWIDTH define
Luke Kenneth Casson Leighton [Tue, 17 Jul 2018 05:35:44 +0000 (06:35 +0100)]
remove PWMWIDTH define

6 years agowhitespace cleanup
Luke Kenneth Casson Leighton [Tue, 17 Jul 2018 05:21:24 +0000 (06:21 +0100)]
whitespace cleanup

6 years agocontinue adding pwmnum argument
Luke Kenneth Casson Leighton [Tue, 17 Jul 2018 05:19:53 +0000 (06:19 +0100)]
continue adding pwmnum argument

6 years agowhitespace cleanup
Luke Kenneth Casson Leighton [Tue, 17 Jul 2018 05:19:37 +0000 (06:19 +0100)]
whitespace cleanup

6 years agowhitespace cleanup
Luke Kenneth Casson Leighton [Tue, 17 Jul 2018 05:05:36 +0000 (06:05 +0100)]
whitespace cleanup

6 years agowhitespace cleanup
Luke Kenneth Casson Leighton [Tue, 17 Jul 2018 05:00:13 +0000 (06:00 +0100)]
whitespace cleanup

6 years agoadd pwmnum as parameter
Luke Kenneth Casson Leighton [Tue, 17 Jul 2018 04:58:24 +0000 (05:58 +0100)]
add pwmnum as parameter

6 years agoneed pwm.bsv peripheral, to be modified to take a parameter of num of pwms
Luke Kenneth Casson Leighton [Tue, 17 Jul 2018 04:53:06 +0000 (05:53 +0100)]
need pwm.bsv peripheral, to be modified to take a parameter of num of pwms

6 years agoadded template for slow peripherals
rishucoding [Tue, 17 Jul 2018 04:22:18 +0000 (09:52 +0530)]
added template for slow peripherals

6 years agogenerate instance defines, fix lots of random typos
Neel [Mon, 16 Jul 2018 13:18:25 +0000 (18:48 +0530)]
generate instance defines, fix lots of random typos

6 years agogetting bsv compile working
Neel [Mon, 16 Jul 2018 13:01:46 +0000 (18:31 +0530)]
getting bsv compile working

6 years agostop myhdl being necessary
Neel [Mon, 16 Jul 2018 12:49:25 +0000 (18:19 +0530)]
stop myhdl being necessary

6 years agopep8 whitespace cleanup
Luke Kenneth Casson Leighton [Mon, 16 Jul 2018 11:14:19 +0000 (12:14 +0100)]
pep8 whitespace cleanup

6 years agoauto-generate bus.bsv with new GPIO/MUX configs
Luke Kenneth Casson Leighton [Mon, 16 Jul 2018 11:13:38 +0000 (12:13 +0100)]
auto-generate bus.bsv with new GPIO/MUX configs

6 years agostart integrating gpio / mux bus generation
Luke Kenneth Casson Leighton [Mon, 16 Jul 2018 10:47:08 +0000 (11:47 +0100)]
start integrating gpio / mux bus generation

6 years agowhoops must delete type field before passing to bsv Pin class
Luke Kenneth Casson Leighton [Mon, 16 Jul 2018 10:43:09 +0000 (11:43 +0100)]
whoops must delete type field before passing to bsv Pin class

6 years agoboth instances of mux and gpio should be in the same module and interface definition
Neel [Mon, 16 Jul 2018 10:25:06 +0000 (15:55 +0530)]
both instances of mux and gpio should be in the same module and interface definition

6 years agoconvert mux to interface style same as gpio
Luke Kenneth Casson Leighton [Mon, 16 Jul 2018 09:48:37 +0000 (10:48 +0100)]
convert mux to interface style same as gpio

6 years agoparametrized the config interfaces to better usability
Neel [Mon, 16 Jul 2018 09:22:49 +0000 (14:52 +0530)]
parametrized the config interfaces to better usability

6 years agosplit instance from gpio
Luke Kenneth Casson Leighton [Mon, 16 Jul 2018 09:03:00 +0000 (10:03 +0100)]
split instance from gpio

6 years agoparameterized modules for mux and gpio
Neel [Mon, 16 Jul 2018 08:45:42 +0000 (14:15 +0530)]
parameterized modules for mux and gpio

6 years agomakefile for gpio and removing dependent files in gpio
Neel [Mon, 16 Jul 2018 06:51:20 +0000 (12:21 +0530)]
makefile for gpio and removing dependent files in gpio

6 years agoadding initial draft of gpio
Neel [Mon, 16 Jul 2018 06:44:09 +0000 (12:14 +0530)]
adding initial draft of gpio

6 years agomyhdl experimentation
Luke Kenneth Casson Leighton [Sun, 15 Jul 2018 06:38:20 +0000 (07:38 +0100)]
myhdl experimentation

6 years agopep8 cleanu
Luke Kenneth Casson Leighton [Tue, 10 Jul 2018 06:51:16 +0000 (07:51 +0100)]
pep8 cleanu

6 years agohack up a python module for myhdl
Luke Kenneth Casson Leighton [Tue, 10 Jul 2018 06:48:54 +0000 (07:48 +0100)]
hack up a python module for myhdl

6 years agorename myhdlgen import
Luke Kenneth Casson Leighton [Tue, 10 Jul 2018 05:54:34 +0000 (06:54 +0100)]
rename myhdlgen import

6 years agomove myhdl to myhdlgen directory
Luke Kenneth Casson Leighton [Tue, 10 Jul 2018 05:48:45 +0000 (06:48 +0100)]
move myhdl to myhdlgen directory

6 years agostart adding myhdl IO class
Luke Kenneth Casson Leighton [Tue, 10 Jul 2018 05:48:07 +0000 (06:48 +0100)]
start adding myhdl IO class

6 years agowhitespace pep8 cleanup
Luke Kenneth Casson Leighton [Tue, 10 Jul 2018 04:46:31 +0000 (05:46 +0100)]
whitespace pep8 cleanup

6 years agowhitespace pep8 cleanup
Luke Kenneth Casson Leighton [Tue, 10 Jul 2018 04:45:23 +0000 (05:45 +0100)]
whitespace pep8 cleanup

6 years agoadding code in cut/paste style from bsv to get class structures ready
Luke Kenneth Casson Leighton [Tue, 10 Jul 2018 04:42:41 +0000 (05:42 +0100)]
adding code in cut/paste style from bsv to get class structures ready
for myhdl

6 years agomove cell bit width function to Parse class
Luke Kenneth Casson Leighton [Tue, 10 Jul 2018 04:30:02 +0000 (05:30 +0100)]
move cell bit width function to Parse class

6 years agoshuffle interface-reading code around to create InterfacesBase class
Luke Kenneth Casson Leighton [Tue, 10 Jul 2018 04:10:23 +0000 (05:10 +0100)]
shuffle interface-reading code around to create InterfacesBase class
(use for myhdl as well)

6 years agoadd testbench argument, switch off for muxer conversion
Luke Kenneth Casson Leighton [Mon, 9 Jul 2018 11:51:19 +0000 (12:51 +0100)]
add testbench argument, switch off for muxer conversion

6 years agoMerge branch 'master' of libre-riscv.org:/pinmux
rishucoding [Mon, 9 Jul 2018 10:50:07 +0000 (16:20 +0530)]
Merge branch 'master' of libre-riscv.org:/pinmux

6 years agocorrection in TestFailure log message
rishucoding [Mon, 9 Jul 2018 10:48:58 +0000 (16:18 +0530)]
correction in TestFailure log message

6 years agoclass objects can contain signals at the top level
Luke Kenneth Casson Leighton [Mon, 9 Jul 2018 04:46:13 +0000 (05:46 +0100)]
class objects can contain signals at the top level

6 years agoauto-generate top-level module which accepts multiple class objects
Luke Kenneth Casson Leighton [Mon, 9 Jul 2018 04:32:57 +0000 (05:32 +0100)]
auto-generate top-level module which accepts multiple class objects

6 years agomodify test2 to take one argument: array of inputs
Luke Kenneth Casson Leighton [Mon, 9 Jul 2018 02:13:39 +0000 (03:13 +0100)]
modify test2 to take one argument: array of inputs

6 years agoadd test module which is dynamically created
Luke Kenneth Casson Leighton [Mon, 9 Jul 2018 02:04:30 +0000 (03:04 +0100)]
add test module which is dynamically created

6 years agopep8 whitespace cleanup
Luke Kenneth Casson Leighton [Fri, 6 Jul 2018 20:37:56 +0000 (21:37 +0100)]
pep8 whitespace cleanup

6 years agoouten is 0 when iopad is supplying input
rishucoding [Fri, 6 Jul 2018 16:46:16 +0000 (22:16 +0530)]
outen is 0 when iopad is supplying input

6 years agoadding cocotb test for multi pin single FN_out
rishucoding [Fri, 6 Jul 2018 16:37:42 +0000 (22:07 +0530)]
adding cocotb test for multi pin single FN_out

6 years agowhoops.... restoring to commit c4f99657f70
rishucoding [Fri, 6 Jul 2018 16:33:21 +0000 (22:03 +0530)]
whoops.... restoring to commit c4f99657f70

6 years agoMerge branch 'master' of libre-riscv.org:/pinmux
rishucoding [Fri, 6 Jul 2018 14:00:01 +0000 (19:30 +0530)]
Merge branch 'master' of libre-riscv.org:/pinmux

6 years agoadding cocotb test for multi pin single FN_out
rishucoding [Fri, 6 Jul 2018 13:58:17 +0000 (19:28 +0530)]
adding cocotb test for multi pin single FN_out

6 years agoadd myhdl experiments
Luke Kenneth Casson Leighton [Fri, 6 Jul 2018 02:39:12 +0000 (03:39 +0100)]
add myhdl experiments

6 years agoadd class experiment
Luke Kenneth Casson Leighton [Thu, 5 Jul 2018 01:12:02 +0000 (02:12 +0100)]
add class experiment

6 years agomake arguments to pmux4 a list, as an experiment (worked)
Luke Kenneth Casson Leighton [Wed, 4 Jul 2018 22:33:21 +0000 (23:33 +0100)]
make arguments to pmux4 a list, as an experiment (worked)

6 years agotest priority mux4
Luke Kenneth Casson Leighton [Wed, 4 Jul 2018 22:08:32 +0000 (23:08 +0100)]
test priority mux4

6 years agoalter muxer, no clock-dependency, add priority muxer to be tested
Luke Kenneth Casson Leighton [Wed, 4 Jul 2018 19:33:34 +0000 (20:33 +0100)]
alter muxer, no clock-dependency, add priority muxer to be tested

6 years ago add explanation in PinGen class
Luke Kenneth Casson Leighton [Wed, 4 Jul 2018 15:22:02 +0000 (16:22 +0100)]
 add explanation in PinGen class

6 years agoremove extraneous clock cycle
Luke Kenneth Casson Leighton [Wed, 4 Jul 2018 13:36:38 +0000 (14:36 +0100)]
remove extraneous clock cycle

6 years agowhitespace pep8 cleanup
Luke Kenneth Casson Leighton [Wed, 4 Jul 2018 13:36:22 +0000 (14:36 +0100)]
whitespace pep8 cleanup

6 years agoadd multi-input mux test
Luke Kenneth Casson Leighton [Wed, 4 Jul 2018 13:35:02 +0000 (14:35 +0100)]
add multi-input mux test

6 years agoadd new multi-input test
Luke Kenneth Casson Leighton [Wed, 4 Jul 2018 13:12:02 +0000 (14:12 +0100)]
add new multi-input test

6 years agoupdate test pinmux.bsv
Luke Kenneth Casson Leighton [Wed, 4 Jul 2018 13:05:34 +0000 (14:05 +0100)]
update test pinmux.bsv

6 years agoadd 2nd copy of i2c_sda to microtest,\
Luke Kenneth Casson Leighton [Wed, 4 Jul 2018 13:03:47 +0000 (14:03 +0100)]
add 2nd copy of i2c_sda to microtest,\
to do multi-in test

6 years agoremove unnecessary clock cycle
Luke Kenneth Casson Leighton [Wed, 4 Jul 2018 12:55:11 +0000 (13:55 +0100)]
remove unnecessary clock cycle

6 years agoremove tristate tests
Luke Kenneth Casson Leighton [Wed, 4 Jul 2018 11:00:39 +0000 (12:00 +0100)]
remove tristate tests

6 years agonope it really is pad 2 for twi_scl...
Luke Kenneth Casson Leighton [Wed, 4 Jul 2018 09:54:52 +0000 (10:54 +0100)]
nope it really is pad 2 for twi_scl...

6 years agoput twi_scl test back to the right mux value
Luke Kenneth Casson Leighton [Wed, 4 Jul 2018 09:49:44 +0000 (10:49 +0100)]
put twi_scl test back to the right mux value

6 years agocorrection in enable and selection lines for twi_scl
rishucoding [Wed, 4 Jul 2018 07:07:11 +0000 (12:37 +0530)]
correction in enable and selection lines for twi_scl

6 years agoadded docstring for gpio2
rishucoding [Tue, 3 Jul 2018 17:02:00 +0000 (22:32 +0530)]
added docstring for gpio2

6 years agoadded dut._log.info message for twi_sda
rishucoding [Tue, 3 Jul 2018 15:22:46 +0000 (20:52 +0530)]
added dut._log.info message for twi_sda

6 years agomodified passed test dut_log.info
rishucoding [Tue, 3 Jul 2018 15:20:45 +0000 (20:50 +0530)]
modified passed test dut_log.info

6 years agoreorganise tests, split into separate functions
Luke Kenneth Casson Leighton [Tue, 3 Jul 2018 13:39:37 +0000 (14:39 +0100)]
reorganise tests, split into separate functions

6 years agocorrected some of the errors, moved (or added) clock pulses
Luke Kenneth Casson Leighton [Mon, 2 Jul 2018 22:37:49 +0000 (23:37 +0100)]
corrected some of the errors, moved (or added) clock pulses
otherwise simulation doesnt have time to propagate the signals

6 years agoremove spurious timer pulse, add log message, io1_cell is z (tristate). odd
Luke Kenneth Casson Leighton [Mon, 2 Jul 2018 22:32:30 +0000 (23:32 +0100)]
remove spurious timer pulse, add log message, io1_cell is z (tristate). odd

6 years agomove ok log message
Luke Kenneth Casson Leighton [Mon, 2 Jul 2018 22:28:14 +0000 (23:28 +0100)]
move ok log message

6 years agomoving enablers for twi_scl to where twi_scl is set up.
Luke Kenneth Casson Leighton [Mon, 2 Jul 2018 22:22:28 +0000 (23:22 +0100)]
moving enablers for twi_scl to where twi_scl is set up.
this is important because two changes at once might cause
problems

6 years agowrong test changed, uart_tx being set to 1, must test iocell0=1
Luke Kenneth Casson Leighton [Mon, 2 Jul 2018 22:19:02 +0000 (23:19 +0100)]
wrong test changed, uart_tx being set to 1, must test iocell0=1

6 years agopep8 whitespace cleanup
Luke Kenneth Casson Leighton [Mon, 2 Jul 2018 22:15:50 +0000 (23:15 +0100)]
pep8 whitespace cleanup

6 years agofixed bug : iocell_side_io0_cell_out is a reg, initial value is 0
rishucoding [Mon, 2 Jul 2018 21:03:55 +0000 (02:33 +0530)]
fixed bug : iocell_side_io0_cell_out is a reg, initial value is 0

6 years agochanging comment to docstring
rishucoding [Mon, 2 Jul 2018 16:36:24 +0000 (22:06 +0530)]
changing comment to docstring

6 years agoadd spec testing.py
Luke Kenneth Casson Leighton [Mon, 2 Jul 2018 16:26:54 +0000 (17:26 +0100)]
add spec testing.py

6 years agocorrection in test_failure strings
rishucoding [Mon, 2 Jul 2018 13:58:19 +0000 (19:28 +0530)]
correction in test_failure strings

6 years agoAdded test case for twi
rishucoding [Mon, 2 Jul 2018 13:49:39 +0000 (19:19 +0530)]
Added test case for twi

6 years agoAdding comments to interface_decl.py
rishucoding [Mon, 2 Jul 2018 12:07:49 +0000 (17:37 +0530)]
Adding comments to interface_decl.py

6 years agoadd in dummy testing mode
Luke Kenneth Casson Leighton [Mon, 2 Jul 2018 11:20:58 +0000 (12:20 +0100)]
add in dummy testing mode