| Summary: | pinmux default mux values | ||
|---|---|---|---|
| Product: | Libre-SOC's first SoC | Reporter: | Luke Kenneth Casson Leighton <lkcl> |
| Component: | Specification | Assignee: | Luke Kenneth Casson Leighton <lkcl> |
| Status: | IN_PROGRESS --- | ||
| Severity: | enhancement | CC: | libre-soc-bugs |
| Priority: | --- | ||
| Version: | unspecified | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| NLnet milestone: | --- | total budget (EUR) for completion of task and all subtasks: | 0 |
| budget (EUR) for this task, excluding subtasks' budget: | 0 | parent task for budget allocation: | |
| child tasks for budget allocation: | The table of payments (in EUR) for this task; TOML format: | ||
| Bug Depends on: | |||
| Bug Blocks: | 8 | ||
|
Description
Luke Kenneth Casson Leighton
2018-07-30 13:24:56 BST
src/bsv/peripheral_gen/gpio.py:
def mkslow_peripheral(self, size=0):
print "gpioslow", self.peripheral, dir(self.peripheral)
size = len(self.peripheral.pinspecs)
dflt = "%s" % ("0"*size*2) # XX TODO: read default from config
return "MUX#(%d) mux{0} <- mkmux(`b%s);\n" % (size, dflt)+ \
"GPIO#(%d) gpio{0} <- mkgpio();" % size
src/spec/microtest.py:
config = {'muxdefaults': {'A': '001010' # binary (2-bit)?
}
}
ps = PinSpec(pinbanks, fixedpins, function_names, config)
maybe there are better ways to spec this, e.g. pass in a dictionary of muxer defaults {"A": {0: 0b01, 5: 0b10 } } which are turned into the binary string, later?
|