soc.git
4 years agotry making CR bitrange 32..63 not 0..31
Luke Kenneth Casson Leighton [Tue, 7 Apr 2020 18:46:03 +0000 (19:46 +0100)]
try making CR bitrange 32..63 not 0..31

4 years agonote that CR must be offset by 32
Luke Kenneth Casson Leighton [Tue, 7 Apr 2020 18:27:15 +0000 (19:27 +0100)]
note that CR must be offset by 32

4 years agosubmodule update
Luke Kenneth Casson Leighton [Tue, 7 Apr 2020 18:25:49 +0000 (19:25 +0100)]
submodule update

4 years agoadd "undefined" to namespace
Luke Kenneth Casson Leighton [Tue, 7 Apr 2020 18:13:38 +0000 (19:13 +0100)]
add "undefined" to namespace

4 years agoCR test "working" (for a given value of "success")
Luke Kenneth Casson Leighton [Tue, 7 Apr 2020 18:11:36 +0000 (19:11 +0100)]
CR test "working" (for a given value of "success")

4 years agoadd in special regs to be passed out of function (as return results)
Luke Kenneth Casson Leighton [Tue, 7 Apr 2020 16:49:46 +0000 (17:49 +0100)]
add in special regs to be passed out of function (as return results)

4 years agoattempting to add mtcrf test, requires bringing CR and other regs into ops
Luke Kenneth Casson Leighton [Tue, 7 Apr 2020 16:27:41 +0000 (17:27 +0100)]
attempting to add mtcrf test, requires bringing CR and other regs into ops

4 years agowhoops off-by-one in slice ranges
Luke Kenneth Casson Leighton [Tue, 7 Apr 2020 16:12:08 +0000 (17:12 +0100)]
whoops off-by-one in slice ranges

4 years agoupdate submodules
Luke Kenneth Casson Leighton [Tue, 7 Apr 2020 16:01:06 +0000 (17:01 +0100)]
update submodules

4 years agoop_fields is passed over (and excludes register names)
Luke Kenneth Casson Leighton [Tue, 7 Apr 2020 15:54:50 +0000 (16:54 +0100)]
op_fields is passed over (and excludes register names)

4 years agoadd CR and add field-selectable versions of CR0-7
Luke Kenneth Casson Leighton [Tue, 7 Apr 2020 14:37:35 +0000 (15:37 +0100)]
add CR and add field-selectable versions of CR0-7

4 years agocomment not to do bit-inversion here
Luke Kenneth Casson Leighton [Tue, 7 Apr 2020 14:37:11 +0000 (15:37 +0100)]
comment not to do bit-inversion here

4 years agoadd setitem/getitem to FieldSelectableInt, and mod operator
Luke Kenneth Casson Leighton [Tue, 7 Apr 2020 14:35:30 +0000 (15:35 +0100)]
add setitem/getitem to FieldSelectableInt, and mod operator

4 years agoallow FieldSelectableInt to initialise from list or tuple
Luke Kenneth Casson Leighton [Tue, 7 Apr 2020 14:30:26 +0000 (15:30 +0100)]
allow FieldSelectableInt to initialise from list or tuple

4 years agoadd FieldSelectableInt which allows re-targetting of fields
Luke Kenneth Casson Leighton [Tue, 7 Apr 2020 14:26:52 +0000 (15:26 +0100)]
add FieldSelectableInt which allows re-targetting of fields

4 years agowhew finally located opcodes for managing CRs
Luke Kenneth Casson Leighton [Tue, 7 Apr 2020 11:09:19 +0000 (12:09 +0100)]
whew finally located opcodes for managing CRs

4 years agofix apt cache
Jacob Lifshay [Tue, 7 Apr 2020 00:15:31 +0000 (17:15 -0700)]
fix apt cache

4 years agoupdate libreriscv submodule
Jacob Lifshay [Mon, 6 Apr 2020 23:58:25 +0000 (16:58 -0700)]
update libreriscv submodule

4 years agoMerge branch 'master' of ssh://git.libre-riscv.org:922/soc
Jacob Lifshay [Mon, 6 Apr 2020 23:56:31 +0000 (16:56 -0700)]
Merge branch 'master' of ssh://git.libre-riscv.org:922/soc

4 years agoadd extra info on SPRs
Luke Kenneth Casson Leighton [Mon, 6 Apr 2020 21:08:35 +0000 (22:08 +0100)]
add extra info on SPRs

4 years agoupdate submodule
Luke Kenneth Casson Leighton [Mon, 6 Apr 2020 21:03:30 +0000 (22:03 +0100)]
update submodule

4 years agoadd list of SPRs needed
Luke Kenneth Casson Leighton [Mon, 6 Apr 2020 21:03:21 +0000 (22:03 +0100)]
add list of SPRs needed

4 years agoMerge branch 'fix-tests'
Jacob Lifshay [Mon, 6 Apr 2020 19:00:27 +0000 (12:00 -0700)]
Merge branch 'fix-tests'

4 years agoConvert instruction info from tuple to namedtuple
Michael Nolan [Mon, 6 Apr 2020 13:26:02 +0000 (09:26 -0400)]
Convert instruction info from tuple to namedtuple

4 years agoAdd test for addpcis
Michael Nolan [Mon, 6 Apr 2020 13:15:33 +0000 (09:15 -0400)]
Add test for addpcis

4 years agoBegin adding PC to caller.py
Michael Nolan [Mon, 6 Apr 2020 13:15:08 +0000 (09:15 -0400)]
Begin adding PC to caller.py

4 years agoFix broken tests from parser update
Michael Nolan [Mon, 6 Apr 2020 13:14:39 +0000 (09:14 -0400)]
Fix broken tests from parser update

4 years agoAuto insert instruction fields into the namespace
Michael Nolan [Sun, 5 Apr 2020 23:28:12 +0000 (19:28 -0400)]
Auto insert instruction fields into the namespace

4 years agowhoops swap regs and form
Luke Kenneth Casson Leighton [Mon, 6 Apr 2020 12:56:33 +0000 (13:56 +0100)]
whoops swap regs and form

4 years agosplit regs by comma into list
Luke Kenneth Casson Leighton [Mon, 6 Apr 2020 12:56:20 +0000 (13:56 +0100)]
split regs by comma into list

4 years agowhoops missing final newline, needed for parser to end
Luke Kenneth Casson Leighton [Mon, 6 Apr 2020 12:48:26 +0000 (13:48 +0100)]
whoops missing final newline, needed for parser to end

4 years agoskip blank lines between cases
Luke Kenneth Casson Leighton [Mon, 6 Apr 2020 12:45:25 +0000 (13:45 +0100)]
skip blank lines between cases

4 years agoadd annoying case-hack filter
Luke Kenneth Casson Leighton [Mon, 6 Apr 2020 12:33:56 +0000 (13:33 +0100)]
add annoying case-hack filter

4 years agoadd individual field-detection where field spec is "d0,d1,d2"
Luke Kenneth Casson Leighton [Mon, 6 Apr 2020 11:15:28 +0000 (12:15 +0100)]
add individual field-detection where field spec is "d0,d1,d2"

4 years agoadd apt-cache dir
Jacob Lifshay [Mon, 6 Apr 2020 02:08:22 +0000 (19:08 -0700)]
add apt-cache dir

4 years agofix apt cache
Jacob Lifshay [Mon, 6 Apr 2020 02:01:40 +0000 (19:01 -0700)]
fix apt cache

4 years agoadd pip and apt to gitlab cache
Jacob Lifshay [Mon, 6 Apr 2020 01:53:14 +0000 (18:53 -0700)]
add pip and apt to gitlab cache

4 years agoall tests pass!
Jacob Lifshay [Mon, 6 Apr 2020 01:20:20 +0000 (18:20 -0700)]
all tests pass!

4 years agoadd symbiyosys to ci
Jacob Lifshay [Mon, 6 Apr 2020 01:02:34 +0000 (18:02 -0700)]
add symbiyosys to ci

4 years agoadd git submodules to CI
Jacob Lifshay [Mon, 6 Apr 2020 00:39:30 +0000 (17:39 -0700)]
add git submodules to CI

4 years agoadd missing packages
Jacob Lifshay [Mon, 6 Apr 2020 00:26:04 +0000 (17:26 -0700)]
add missing packages

4 years agoalmost all tests work
Jacob Lifshay [Mon, 6 Apr 2020 00:12:20 +0000 (17:12 -0700)]
almost all tests work

4 years agoadd .gitlab-ci.yml
Jacob Lifshay [Sun, 5 Apr 2020 22:44:49 +0000 (15:44 -0700)]
add .gitlab-ci.yml

4 years agouse fields.txt as the local file name and add to gitignore
Jacob Lifshay [Sun, 5 Apr 2020 22:21:23 +0000 (15:21 -0700)]
use fields.txt as the local file name and add to gitignore

4 years agoRevert "rename fields.text to use standard .txt file extension and add to gitignore"
Jacob Lifshay [Sun, 5 Apr 2020 21:59:55 +0000 (14:59 -0700)]
Revert "rename fields.text to use standard .txt file extension and add to gitignore"

server doesn't work with .txt files

This reverts commit 334c2ed237e3cb5fe66a782afaa2354d577841ba.

4 years agorename fields.text to use standard .txt file extension and add to gitignore
Jacob Lifshay [Sun, 5 Apr 2020 21:52:41 +0000 (14:52 -0700)]
rename fields.text to use standard .txt file extension and add to gitignore

4 years agoput regs through to ISACaller
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 20:51:16 +0000 (21:51 +0100)]
put regs through to ISACaller

4 years agoupdate submodule
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 20:15:42 +0000 (21:15 +0100)]
update submodule

4 years agoupdate submodule
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 20:12:55 +0000 (21:12 +0100)]
update submodule

4 years agogot fed up of hard-coded names, allow pywriter.py to take arguments
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 20:12:38 +0000 (21:12 +0100)]
got fed up of hard-coded names, allow pywriter.py to take arguments

4 years agoadd comment about form / op_fields
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 20:03:07 +0000 (21:03 +0100)]
add comment about form / op_fields

4 years agounpack tuple with new op_fields
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 19:55:21 +0000 (20:55 +0100)]
unpack tuple with new op_fields

4 years agoadd Form name parsing
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 19:45:25 +0000 (20:45 +0100)]
add Form name parsing

4 years agoAutogenerate all.py
Michael Nolan [Sun, 5 Apr 2020 19:41:23 +0000 (15:41 -0400)]
Autogenerate all.py

4 years agoHandle new changes in pseudocode parser
Michael Nolan [Sun, 5 Apr 2020 19:26:20 +0000 (15:26 -0400)]
Handle new changes in pseudocode parser

4 years agoHandle opcodes returning EXTS() results
Michael Nolan [Sun, 5 Apr 2020 19:25:51 +0000 (15:25 -0400)]
Handle opcodes returning EXTS() results

4 years agoFix bug 281
Michael Nolan [Sun, 5 Apr 2020 19:17:58 +0000 (15:17 -0400)]
Fix bug 281

4 years agoeffort to get base class instructions automatically
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 19:14:35 +0000 (20:14 +0100)]
effort to get base class instructions automatically

4 years agoAdd in _reg and immediate support
Michael Nolan [Sun, 5 Apr 2020 19:11:49 +0000 (15:11 -0400)]
Add in _reg and immediate support

4 years agoFix issue with memory load/store byte order
Michael Nolan [Sun, 5 Apr 2020 19:11:27 +0000 (15:11 -0400)]
Fix issue with memory load/store byte order

4 years agoFix not being able to use all instructions in ISA class
Michael Nolan [Sun, 5 Apr 2020 19:10:43 +0000 (15:10 -0400)]
Fix not being able to use all instructions in ISA class

4 years agoremove ISACaller as base class, do in soc.decoder.isa.ISA
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 19:04:54 +0000 (20:04 +0100)]
remove ISACaller as base class, do in soc.decoder.isa.ISA

4 years agoget hex to recognise capitals
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 19:03:14 +0000 (20:03 +0100)]
get hex to recognise capitals

4 years agosubmodule update
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 18:59:34 +0000 (19:59 +0100)]
submodule update

4 years agoadd printout of instruction Form
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 18:59:25 +0000 (19:59 +0100)]
add printout of instruction Form

4 years agodrop instr info into uniquely-named dict
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 18:54:30 +0000 (19:54 +0100)]
drop instr info into uniquely-named dict

4 years agoRevert "Implement bug 278, comment 1 - better version of EXTS"
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 18:42:06 +0000 (19:42 +0100)]
Revert "Implement bug 278, comment 1 - better version of EXTS"

This reverts commit b5e4e847c2841189386da3509949d9206de92f8b.

4 years agoImplement bug 278, comment 1 - better version of EXTS
Michael Nolan [Sun, 5 Apr 2020 18:31:48 +0000 (14:31 -0400)]
Implement bug 278, comment 1 - better version of EXTS

4 years agoMove combination class out of __init__
Michael Nolan [Sun, 5 Apr 2020 18:25:13 +0000 (14:25 -0400)]
Move combination class out of __init__

4 years agoadd HEX to parser
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 18:16:18 +0000 (19:16 +0100)]
add HEX to parser

4 years agofix repr (0x prefix) and add repr test for selectable int
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 18:16:05 +0000 (19:16 +0100)]
fix repr (0x prefix) and add repr test for selectable int

4 years agoFix addi instruction, think a commit got lost
Michael Nolan [Sun, 5 Apr 2020 18:00:44 +0000 (14:00 -0400)]
Fix addi instruction, think a commit got lost

4 years agoAdd class for combining multiple instruction classes
Michael Nolan [Sun, 5 Apr 2020 17:59:40 +0000 (13:59 -0400)]
Add class for combining multiple instruction classes

4 years agoupdate submodule
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 16:46:33 +0000 (17:46 +0100)]
update submodule

4 years agoupdate submodule
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 16:43:29 +0000 (17:43 +0100)]
update submodule

4 years agoadd SPR rework from SPR(x) to SPR[x]
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 16:43:14 +0000 (17:43 +0100)]
add SPR rework from SPR(x) to SPR[x]

4 years agoupdate submodule
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 16:40:19 +0000 (17:40 +0100)]
update submodule

4 years agoconstruct switch/case/default from if/elif/elif/else
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 16:40:01 +0000 (17:40 +0100)]
construct switch/case/default from if/elif/elif/else

4 years agoadd start on switch/case/default in parser
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 16:05:43 +0000 (17:05 +0100)]
add start on switch/case/default in parser

4 years agosubmodule update
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 15:12:47 +0000 (16:12 +0100)]
submodule update

4 years agocase and default do not need implicit colon
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 14:56:13 +0000 (15:56 +0100)]
case and default do not need implicit colon

4 years agoadd switch case and default keywords
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 14:32:49 +0000 (15:32 +0100)]
add switch case and default keywords

4 years agoupdate submodule
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 12:22:37 +0000 (13:22 +0100)]
update submodule

4 years agofix issue with subscript uninitialised detection
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 12:07:00 +0000 (13:07 +0100)]
fix issue with subscript uninitialised detection

4 years agoallow [s] * 64 to be detected and turned into a repeat-list pattern
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 11:52:01 +0000 (12:52 +0100)]
allow [s] * 64 to be detected and turned into a repeat-list pattern

4 years agoupdate submodule
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 11:46:48 +0000 (12:46 +0100)]
update submodule

4 years agotest trap, shift and condition
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 11:46:39 +0000 (12:46 +0100)]
test trap, shift and condition

4 years agoadd selectconcat test
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 11:46:24 +0000 (12:46 +0100)]
add selectconcat test

4 years agoupdate submodule
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 11:37:18 +0000 (12:37 +0100)]
update submodule

4 years agoupdate submodule
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 11:04:35 +0000 (12:04 +0100)]
update submodule

4 years agoquick test found missing bracket
Luke Kenneth Casson Leighton [Sun, 5 Apr 2020 11:04:25 +0000 (12:04 +0100)]
quick test found missing bracket

4 years agoadd != operator
Luke Kenneth Casson Leighton [Sat, 4 Apr 2020 21:22:46 +0000 (22:22 +0100)]
add != operator

4 years agoupdate submodule
Luke Kenneth Casson Leighton [Sat, 4 Apr 2020 21:18:23 +0000 (22:18 +0100)]
update submodule

4 years agoupdate submodule
Luke Kenneth Casson Leighton [Sat, 4 Apr 2020 21:15:58 +0000 (22:15 +0100)]
update submodule

4 years agoupdate submodule
Luke Kenneth Casson Leighton [Sat, 4 Apr 2020 21:14:56 +0000 (22:14 +0100)]
update submodule

4 years agoupdate submodule libreriscv
Luke Kenneth Casson Leighton [Sat, 4 Apr 2020 21:13:15 +0000 (22:13 +0100)]
update submodule libreriscv

4 years agoadd <-iea operator
Luke Kenneth Casson Leighton [Sat, 4 Apr 2020 21:13:03 +0000 (22:13 +0100)]
add <-iea operator

4 years agoprint regfile on only 4 lines
Luke Kenneth Casson Leighton [Sat, 4 Apr 2020 21:04:52 +0000 (22:04 +0100)]
print regfile on only 4 lines

4 years agodump regfile nicely
Luke Kenneth Casson Leighton [Sat, 4 Apr 2020 21:02:01 +0000 (22:02 +0100)]
dump regfile nicely

4 years agoadd dump function for regs
Luke Kenneth Casson Leighton [Sat, 4 Apr 2020 21:00:51 +0000 (22:00 +0100)]
add dump function for regs