From 2b761ec2d0b85424f13236160e4d83eaabc6e472 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 15 Oct 2020 14:35:31 +0100 Subject: [PATCH] add links to nmigen tutorial page --- 3d_gpu/tutorial.mdwn | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/3d_gpu/tutorial.mdwn b/3d_gpu/tutorial.mdwn index bfa65a425..ed691fe5c 100644 --- a/3d_gpu/tutorial.mdwn +++ b/3d_gpu/tutorial.mdwn @@ -31,7 +31,11 @@ Sorry, ubuntu, macosx and windows lovers: start by installing debian either in a # Python -First: learn python. python3 to be precise. Start by learning the basic data types: string, int, float then dict, list and tuple. Then move on to functions, then classes, exceptions and the "with" statement. Along the way you will pick up imports. Do not use "import *" it will cause you a world of pain. +First: learn python. python3 to be precise. Start by learning the basic +data types: string, int, float then dict, list and tuple. Then move +on to functions, then classes, exceptions and the "with" statement. +Along the way you will pick up imports. Do not use "import \*" it will +cause you and everyone else who tries to read your code a world of pain. # Git @@ -88,6 +92,7 @@ Nmigen works by creating an in-memory "Abstract Syntax Tree" which is handed to So you write code in python, using the nmigen library of classes and helper routines, to construct an AST which *represents* the actual hardware. Yosys takes care of the level *below* nmigen, and is just a tool. Install nmigen (and yosys) by following [[HDL_workflow]] then follow the excellent tutorial by Robert +and also look up the resources here Pay particular attention to the bits in HDL workflow about using yosys "show" command. This is essential because the nmigen code gets turned into gates, and yosys show will bring up a graph that allows you to see that. It's also very useful to run the "proc" and "opt" command followed by -- 2.30.2