[libre-riscv-dev] Some recent documenting of work performed for tape-out
[libre-riscv-dev.git] / b9 / 8be2490e3018ad12c487017ad4922a90e41587
1 Return-path: <libre-riscv-dev-bounces@lists.libre-riscv.org>
2 Envelope-to: publicinbox@libre-riscv.org
3 Delivery-date: Wed, 20 May 2020 17:44:14 +0100
4 Received: from localhost ([::1] helo=libre-riscv.org)
5 by libre-soc.org with esmtp (Exim 4.89)
6 (envelope-from <libre-riscv-dev-bounces@lists.libre-riscv.org>)
7 id 1jbRpF-0006Xx-PA; Wed, 20 May 2020 17:44:13 +0100
8 Received: from vps2.stafverhaegen.be ([85.10.201.15])
9 by libre-soc.org with esmtp (Exim 4.89)
10 (envelope-from <staf@fibraservi.eu>) id 1jbRpE-0006Xr-Kq
11 for libre-riscv-dev@lists.libre-riscv.org; Wed, 20 May 2020 17:44:12 +0100
12 Received: from hpdc7800 (hpdc7800 [10.0.0.1])
13 by vps2.stafverhaegen.be (Postfix) with ESMTP id 0AE5611C0459
14 for <libre-riscv-dev@lists.libre-riscv.org>;
15 Wed, 20 May 2020 18:44:12 +0200 (CEST)
16 Message-ID: <803285a5aa4bed5be9c8d4bc5855f49174742f33.camel@fibraservi.eu>
17 From: Staf Verhaegen <staf@fibraservi.eu>
18 To: libre-riscv-dev@lists.libre-riscv.org
19 Date: Wed, 20 May 2020 18:44:06 +0200
20 In-Reply-To: <CAPweEDx5zV3K3y=gjpArhpZ5VrKYL01=938EYA4xd0PjROqppg@mail.gmail.com>
21 References: <CAPweEDw862-S1=Au1YbsKNy0629pa56eShp+2o_Avd96Auz8mw@mail.gmail.com>
22 <9191058ea0912f2b508a6f73ea567e5f@f-cpu.org>
23 <CAPweEDzdkhVJuJ3_UqZTbd7i7vXJ5iiu3qz+LUBsFRJrzCcEmQ@mail.gmail.com>
24 <63e8b9ce54648590e2a6fc51bc2110dde7585f5e.camel@fibraservi.eu>
25 <CAPweEDx5zV3K3y=gjpArhpZ5VrKYL01=938EYA4xd0PjROqppg@mail.gmail.com>
26 Organization: FibraServi bvba
27 X-Mailer: Evolution 3.28.5 (3.28.5-8.el7)
28 Mime-Version: 1.0
29 X-Content-Filtered-By: Mailman/MimeDel 2.1.23
30 Subject: Re: [libre-riscv-dev] Debug port (was Re: minimum viable ASIC)
31 X-BeenThere: libre-riscv-dev@lists.libre-riscv.org
32 X-Mailman-Version: 2.1.23
33 Precedence: list
34 List-Id: Libre-RISCV General Development
35 <libre-riscv-dev.lists.libre-riscv.org>
36 List-Unsubscribe: <http://lists.libre-riscv.org/mailman/options/libre-riscv-dev>,
37 <mailto:libre-riscv-dev-request@lists.libre-riscv.org?subject=unsubscribe>
38 List-Archive: <http://lists.libre-riscv.org/pipermail/libre-riscv-dev/>
39 List-Post: <mailto:libre-riscv-dev@lists.libre-riscv.org>
40 List-Help: <mailto:libre-riscv-dev-request@lists.libre-riscv.org?subject=help>
41 List-Subscribe: <http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev>,
42 <mailto:libre-riscv-dev-request@lists.libre-riscv.org?subject=subscribe>
43 Reply-To: Libre-RISCV General Development
44 <libre-riscv-dev@lists.libre-riscv.org>
45 Content-Type: multipart/mixed; boundary="===============1767639589163176008=="
46 Errors-To: libre-riscv-dev-bounces@lists.libre-riscv.org
47 Sender: "libre-riscv-dev" <libre-riscv-dev-bounces@lists.libre-riscv.org>
48
49
50 --===============1767639589163176008==
51 Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature";
52 boundary="=-F9+HOglBJ3aN2btywKaK"
53
54
55 --=-F9+HOglBJ3aN2btywKaK
56 Content-Type: text/plain; charset="UTF-8"
57 Content-Transfer-Encoding: quoted-printable
58
59 Luke Kenneth Casson Leighton schreef op vr 08-05-2020 om 23:19 [+0100]:
60 > ---crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma6=
61 8
62 >=20
63 > On Fri, May 8, 2020 at 6:23 PM Staf Verhaegen <staf@fibraservi.eu> wrote:
64 >=20
65 > ah. as a software engineer, the practice of using wildcard imports isan =
66 extremely bad one. i strongly advocate *not* getting into thehabit of doin=
67 g "from nmigen import *" everywhere - it will make yourlife - and other use=
68 rs lives - absolute hell when it comes to tryingto track and debug code.
69 > minerva has a JTAG interface as well. i corrected the practice ofusing "=
70 import *" in this one
71
72 Would 'import nmigen as nm' work for you?I did not touch code for a few mon=
73 ths and in the mean time I do use a more PEP compliant code style. But I am=
74 annoyed by the individual list of things to import. For nmigen or Hurrican=
75 e there is typically a few lines of these includes. When I change for examp=
76 le a Pad to a Rectilinear I may have to update the import list. I don't see=
77 value add of this and it annoys me a lot.So I am thinking of switching to =
78 'import Hurricane as hur' and 'import nmigen as nm'To me the only valid rea=
79 son for not using wild cards is that a later wild card import may replace s=
80 omething you did import before; this is avoided by namespacing the import w=
81 ith 'import ... as ...'.
82 > it looks like the minerva team got a long way with that. alsoprovided a =
83 wishbone master interface:
84 > https://git.libre-soc.org/?p=3Dsoc.git;a=3Dblob;f=3Dsrc/soc/minerva/units=
85 /debug/wbmaster.py;h=3Ddb02af95b4eb3ef8ac25b348f3abaa2bcbe7d96f;hb=3Da54adc=
86 b65bad37b398b11e33a824c7d08c5fe509
87
88 That code seems to focus on the debugging protocol over the JTAG interface =
89 the lower level part seems to be missing.In debug/top.py:...
90 # FIXME: figure out where JTAGTap is
91 # from jtagtap import JTAGTap
92
93
94 class JTAGTap:
95 def __init__(self):
96 raise NotImplementedError(
97 "jtagtap package not found: figure out where JTAGTap is")
98 ...
99
100 My JTAG interface does actually the low level part, the protocol has to be =
101 done by the user on top of it. I do think I have a flexible way of adding e=
102 xtra shift registers and jtag commands. I also do provide boundary scan for=
103 the IO pins which should make PCB testing much easier (BTW, this was actua=
104 lly the original use case for JTAG).
105 greets,Staf.
106
107
108
109 --=-F9+HOglBJ3aN2btywKaK--
110
111
112
113 --===============1767639589163176008==
114 Content-Type: text/plain; charset="utf-8"
115 MIME-Version: 1.0
116 Content-Transfer-Encoding: base64
117 Content-Disposition: inline
118
119 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlicmUtcmlz
120 Y3YtZGV2IG1haWxpbmcgbGlzdApsaWJyZS1yaXNjdi1kZXZAbGlzdHMubGlicmUtcmlzY3Yub3Jn
121 Cmh0dHA6Ly9saXN0cy5saWJyZS1yaXNjdi5vcmcvbWFpbG1hbi9saXN0aW5mby9saWJyZS1yaXNj
122 di1kZXYK
123
124 --===============1767639589163176008==--
125
126
127