From: Luke Kenneth Casson Leighton Date: Sat, 26 Sep 2020 11:17:04 +0000 (+0100) Subject: only enable pads connections for ls180 for now X-Git-Tag: 24jan2021_ls180~322 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f64053730759dec9d89b3c506a143bd205da2ec8;p=soc.git only enable pads connections for ls180 for now --- diff --git a/src/soc/litex/florent/libresoc/core.py b/src/soc/litex/florent/libresoc/core.py index 21bded3f..c5a6cbd1 100644 --- a/src/soc/litex/florent/libresoc/core.py +++ b/src/soc/litex/florent/libresoc/core.py @@ -204,23 +204,24 @@ class LibreSoC(CPU): if jtag_en: self.cpu_params.update(make_wb_bus("jtag_wb", jtag_wb, simple=True)) - # urr yuk. have to expose iopads / pins from core to litex - # then back again. cut _some_ of that out by connecting - self.cpuresources = (make_uart('serial', 0), - make_gpio('gpio', 0, 16)) - self.padresources = (make_uart('serial', 0), - make_gpio('gpio', 0, 16)) - self.cpu_cm = ConstraintManager(self.cpuresources, []) - self.pad_cm = ConstraintManager(self.cpuresources, []) - self.cpupads = {'serial': self.cpu_cm.request('serial', 0), - 'gpio': self.cpu_cm.request('gpio', 0)} - self.iopads = {'serial': self.pad_cm.request('serial', 0), - 'gpio': self.pad_cm.request('gpio', 0)} - - p = Pins() - for pin in list(p): - make_jtag_ioconn(self.cpu_params, pin, self.cpupads, - self.iopads) + if variant == 'ls180': + # urr yuk. have to expose iopads / pins from core to litex + # then back again. cut _some_ of that out by connecting + self.cpuresources = (make_uart('serial', 0), + make_gpio('gpio', 0, 16)) + self.padresources = (make_uart('serial', 0), + make_gpio('gpio', 0, 16)) + self.cpu_cm = ConstraintManager(self.cpuresources, []) + self.pad_cm = ConstraintManager(self.cpuresources, []) + self.cpupads = {'serial': self.cpu_cm.request('serial', 0), + 'gpio': self.cpu_cm.request('gpio', 0)} + self.iopads = {'serial': self.pad_cm.request('serial', 0), + 'gpio': self.pad_cm.request('gpio', 0)} + + p = Pins() + for pin in list(p): + make_jtag_ioconn(self.cpu_params, pin, self.cpupads, + self.iopads) # add verilog sources self.add_sources(platform)