From: bugzilla-daemon@libre-riscv.org
To: libre-riscv-dev@lists.libre-riscv.org
Subject: [libre-riscv-dev] [Bug 178] first coriolis2 tutorial, workflow and "test project" page
Date: Wed, 11 Mar 2020 15:35:53 +0000
Message-ID: <bug-178-13-9RvwifNmnv@http.bugs.libre-riscv.org/> (raw)
In-Reply-To: <bug-178-13@http.bugs.libre-riscv.org/>
http://bugs.libre-riscv.org/show_bug.cgi?id=178
--- Comment #204 from Luke Kenneth Casson Leighton <lkcl@lkcl.net> ---
(In reply to Jock Tanner from comment #203)
> Can the solution looks like this:
>
> > ('experiment5/alu_heir.py')
> >
> > def create_pads(top_element, pins, file_name):
> > for pin in pins:
> > # some introspective magic
> > # as well as a bunch of guessing
> > pass
> >
> > with open(file_name, "w") as ioring:
> > # a bit of templating magic with jinja2
ermmm ermermerm i like the idea of keeping things in an external file
*thinks*... actually, CSV format would be better, because it's 3 lines of code:
import csv # standard python library
with open(file_path, 'r') as csvfile:
return list(csv.DictReader(csvfile))
remember, we need to minimise the dependencies (see HDL_workflow, and see
discussion we just had!)
in CSV format, it could be:
SIDE,pinname,offset,comment
NORTH,clk,,,
the defaults would be, if there is no offset, to make one. the order of
the pins in the CSV file would define the order in which they appear on
that side.
i think that would work really well. later we can consider actually embedding
the CSV file contents *into* the docstring (or a function) of the actual nmigen
source code.
or something.
if it turns out to be more sophisticated than that, we can revisit this (or use
an alternative format).
basic guiding principle: keep it *real* simple. i won't go into full detail of
the nightmare story of someone doing a less-functional "Model-View-Controller"
replacement of 800 lines of python i did, once. he wrote 16 *THOUSAND* lines
of code - in 5 weeks. for a simple "real-time CPU usage" web app.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev
next prev parent reply index
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bug-178-13@http.bugs.libre-riscv.org/>
2020-03-11 12:35 ` bugzilla-daemon
2020-03-11 12:45 ` bugzilla-daemon
2020-03-11 12:59 ` bugzilla-daemon
2020-03-11 14:51 ` bugzilla-daemon
2020-03-11 15:35 ` bugzilla-daemon [this message]
2020-03-12 11:23 ` bugzilla-daemon
2020-03-12 11:48 ` bugzilla-daemon
2020-03-12 16:15 ` bugzilla-daemon
2020-03-12 17:14 ` bugzilla-daemon
2020-03-12 17:25 ` bugzilla-daemon
2020-03-13 16:21 ` Cole Poirier
2020-03-15 19:57 ` bugzilla-daemon
2020-03-18 14:38 ` bugzilla-daemon
2020-03-18 15:18 ` bugzilla-daemon
2020-03-18 22:47 ` bugzilla-daemon
2020-03-18 23:41 ` bugzilla-daemon
[not found] <bug-178-13@https.bugs.libre-soc.org/>
2020-04-21 21:00 ` bugzilla-daemon
2020-04-21 21:09 ` bugzilla-daemon
2020-04-21 21:15 ` bugzilla-daemon
2020-04-21 21:28 ` bugzilla-daemon
2020-04-21 21:30 ` Luke Kenneth Casson Leighton
2020-04-21 21:35 ` Cole Poirier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-178-13-9RvwifNmnv@http.bugs.libre-riscv.org/ \
--to=bugzilla-daemon@libre-riscv.org \
--cc=libre-riscv-dev@lists.libre-riscv.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Libre RISC-V Mailing list Archives (accessible via public-inbox)
Archives are clonable: git clone --mirror https://inbox.libre-soc.org/libre-riscv-dev
Example config snippet for mirrors
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git