Skip to content

Commit 61b053e

Browse files
committed
testrun monday
1 parent cfe578d commit 61b053e

39 files changed

+125
-41
lines changed

Chapter_03_Verilog/c03_lecture.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ Port list and port declaration can be brought together in modern verilog.
104104

105105
// introduces a comment.
106106

107-
### Example: A linear shiftregister
107+
### Example: A linear feedback shiftregister
108108
::: columns
109109

110110
:::: column
111111

112112
```Verilog
113-
module LSFR (
113+
module LFSR (
114114
115115
input wire load,
116116
input wire loadIt,

Chapter_03_Verilog/c03_training_advanced.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@ toc: true
1515

1616
# Chapter 3 - Verilog - TRAINING - Advanced
1717

18-
## LSFR - Linear Feedback Shift Register
18+
## LFSR - Linear Feedback Shift Register
1919

20-
This Trainnig makes use of the Verilog code of the Linear Feedback Shift Register (LSFR) from the lecture slides.
20+
This Trainnig makes use of the Verilog code of the Linear Feedback Shift Register (LFSR) from the lecture slides.
2121

22-
### LSFR as example
22+
### LFSR as example
2323

2424
##### Task: Create directory and Verilog file
2525

26-
- Create a new directory for the LSFR example (in your Documents dir?)
27-
- Create a new file ```lsfr.v``` inside that directory
28-
- Copy the Verilog code from the lecture slides into the file ```lsfr.v```
26+
- Create a new directory for the LFSR example (in your Documents dir?)
27+
- Create a new file ```lfsr.v``` inside that directory
28+
- Copy the Verilog code from the lecture slides into the file ```lfsr.v```
2929

3030
### Analyse parts of the Verilog source
3131

3232
##### Task: Identify parts in the code
3333

34-
Find combinational and synchronous parts of the LSFR in
34+
Find combinational and synchronous parts of the LFSR in
3535

3636
- the Verilog code
3737
- the Schematic drawing (from the lecture slides)
@@ -54,14 +54,14 @@ Generate
5454
- Schematic graphic file
5555
- JSON Netlist
5656

57-
from the LSFR Verilog code
57+
from the LFSR Verilog code
5858

5959
### yosys file
6060

6161
##### Task: Create a yosys config file .ys
6262

63-
- Create a new and empty lsfr.ys file inside your lsfr directory, next to the Verilog file
64-
- Modify and use the lsfr.ys with yosys to generate the schenatic and the JSON netlist of the LSFR in one go.
63+
- Create a new and empty lfsr.ys file inside your lfsr directory, next to the Verilog file
64+
- Modify and use the lfsr.ys with yosys to generate the schenatic and the JSON netlist of the LFSR in one go.
6565

6666

6767

Chapter_04_OpenROAD_first_run/c04_training_advanced.md

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,26 @@ toc: true
1717

1818
## Build an external example
1919

20-
### EDA tools
21-
* One of the options of chapter 0 (preparations) is needed.
22-
* Navigate to the ```/flow``` folder
20+
### "masked AES" from the HEP Alliance
2321

24-
### Clone the design "masked AES" from the HEP Alliance
22+
##### Task: Clone the design
2523

26-
Clone the masked AES design from Github.
27-
Use the tutorial from the HEP Alliance Repository:
24+
- Clone the masked AES design from Github.
25+
- Use the tutorial from the HEP Alliance Repository:
2826

2927
https://github.com/HEP-Alliance/masked-aes-tapeout
3028

31-
In a nutshell (clone via https):
29+
- In a nutshell (clone via https):
3230
```
3331
git clone https://github.com/HEP-Alliance/masked-aes-tapeout.git <ORFS-Root>/flow/designs/ihp-sg13g2/masked_aes
3432
```
3533

36-
### Enable the design in the Makefile
37-
* Edit the Makefile:
34+
### Makefile
35+
36+
##### Task: Enable the design
37+
38+
- Navigate to the ```/flow``` folder
39+
- Edit the Makefile:
3840
* Uncomment the line with your choosen DESIGN_CONFIG from ihp-sg13g2.
3941
In this case the cloned masked_aes:
4042

@@ -51,16 +53,35 @@ git clone https://github.com/HEP-Alliance/masked-aes-tapeout.git <ORFS-Root>/flo
5153

5254
* The line with the default design does not need to be commented. This only applies when no previous line with DESIGN_CONFIG is set.
5355

56+
### Run
57+
58+
##### Task: Run ORFS with the design
5459

55-
### Run the flowscript
56-
* Run ```make``` from inside the ```/flow``` folder.
60+
- Run ```make``` from inside the ```/flow``` folder.
5761

5862
### Success
59-
* The choosen design should finish after a while and a lot of console output with a table (time/memory) like this:
63+
64+
- The choosen design should finish after a while and a lot of console output with a table (time/memory) like this:
6065
```
6166
Log Elapsed seconds Peak Memory/MB
6267
6368
```
6469

6570
CONGRATS! Your design got build to a GDS!
6671

72+
## Examine the results
73+
74+
### The flow steps
75+
76+
##### Task: Match the shell output
77+
78+
- Scroll the shell output from the command to the (successfull) end,
79+
- Identify the flow steps in the shell output
80+
- Try to match your findings to the flow steps and flow components from chapter 2
81+
- Can you identify single open-source tools in the output of the flow? Name the ones you identified.
82+
83+
### The GDS
84+
85+
##### Task: Examine the GDS
86+
87+
- See the GDS with the command ```make gui_final```

Chapter_04_OpenROAD_first_run/c04_training_bonus.md

Lines changed: 53 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,33 +15,75 @@ toc: true
1515

1616
# Chapter 04 - OpenROAD first run - TRAINING - Bonus
1717

18-
## 1. Build the IBEX RISC-V design
18+
## IBEX RISC-V design
1919

20-
Build another example from the flow script designs:
20+
### Another example from ORFS
21+
22+
##### Task: Build another example from the flow script designs:
2123
- The IBEX RISC-V example.
2224
- Modify and follow the steps from the common training for this task.
2325

2426
## 2. Integrate a new design into OpenROAD flowscripts
2527

2628
In this training session you will integrate a new design for using it with OpenROAD flowscripts.
29+
2730
You can either:
28-
* Have your own design ready.
29-
* Take an opensource design from someone else.
31+
32+
- Have your own design ready.
33+
- Take an opensource design from someone else.
3034

3135
### Pick a design to integrate
3236

33-
* LSFR from earlier?
34-
* Pre-selected TinyTapeOut designs?
37+
##### Task: Choose a design
38+
39+
- LFSR from earlier?
40+
- TinyTapeOut design? (See earlier Bonus Training)
41+
- Write a new Verilog file with your own design idea.
42+
43+
### Create a new design in ORFS
44+
45+
##### Task: Insert a new design
46+
47+
- In the ```flow/designs/src``` directory: create new design
48+
- Create or copy Verilog to there
49+
- In the ```flow/designs/ihp-sg13g2``` directory: create a new design(same name as in src)
50+
- Create or copy the ```config.mk``` and ```constraints.sdc``` from the gdc example to there
51+
- Modify both files to match the Verilog src file and top module.
3552

36-
### Run the flowscript
37-
Todo.
53+
### Makefile
54+
55+
##### Task: Enable the design
56+
57+
- Navigate to the ```/flow``` folder
58+
- Edit the Makefile:
59+
* Uncomment the line with your choosen DESIGN_CONFIG from ihp-sg13g2.
60+
In this case you must create a new line
61+
62+
```
63+
DESIGN_CONFIG=./designs/ihp-sg13g2/<your design>/config.mk
64+
```
65+
66+
* Re-comment the previous uncommented line with DESIGN_CONFIG.
67+
For example the gcd on SKY130 design:
68+
69+
```
70+
# DESIGN_CONFIG=./designs/asap7/gcd/config.mk
71+
```
72+
73+
* The line with the default design does not need to be commented. This only applies when no previous line with DESIGN_CONFIG is set.
74+
75+
### Run
76+
77+
##### Task: Run ORFS with the design
78+
79+
- Run ```make``` from inside the ```/flow``` folder.
3880

3981
### Success
40-
Todo.
41-
* The choosen design should finish after a while and a lot of console output with a table (time/memory) like this:
82+
83+
- The choosen design should finish after a while and a lot of console output with a table (time/memory) like this:
4284
```
4385
Log Elapsed seconds Peak Memory/MB
4486
4587
```
4688

47-
CONGRATS! Your first(?) design got build to a GDS!
89+
CONGRATS! Your design got build to a GDS!

Chapter_04_OpenROAD_first_run/c04_training_common.md

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ toc: true
1717

1818
## Start the first run
1919

20-
### EDA tools
21-
* One of the options of chapter 0 (preparations) is needed.
22-
* Navigate to the ```/flow``` folder
20+
### Makefile
21+
22+
##### Task: Enable the design in the Makefile
2323

24-
### Enable the design in the Makefile
24+
* Navigate to the ```/flow``` folder
2525
* Edit the Makefile:
2626
* Uncomment the line with your choosen DESIGN_CONFIG from ihp-sg13g2.
2727
For example the gcd design:
@@ -40,7 +40,10 @@ toc: true
4040
* The line with the default design does not need to be commented. This only applies when no previous line with DESIGN_CONFIG is set.
4141

4242

43-
### Run the flowscript
43+
### Run
44+
45+
##### Task: Run ORFS with the design
46+
4447
* Run ```make``` from inside the ```/flow``` folder.
4548

4649
### Success
@@ -71,4 +74,22 @@ Log Elapsed seconds Peak Memory/MB
7174
Total 96 899
7275
```
7376

74-
CONGRATS! Your first(?) design got build to a GDS!
77+
CONGRATS! Your first(?) design got build to a GDS!
78+
79+
## Examine the results
80+
81+
### The flow steps
82+
83+
##### Task: Match the shell output
84+
85+
- Scroll the shell output from the command to the (successfull) end,
86+
- Identify the flow steps in the shell output
87+
- Try to match your findings to the flow steps and flow components from chapter 2
88+
- Can you identify single open-source tools in the output of the flow? Name the ones you identified.
89+
90+
### The GDS
91+
92+
##### Task: Examine the GDS
93+
94+
- See the GDS with the command ```make gui_final```
95+

build/all_slides.pdf

65.7 KB
Binary file not shown.

build/c00_preparations.pdf

0 Bytes
Binary file not shown.

build/c01_lecture.pdf

0 Bytes
Binary file not shown.

build/c01_questions.pdf

0 Bytes
Binary file not shown.

build/c01_training_advanced.pdf

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)