mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-20 02:00:23 +00:00
presentation progress
This commit is contained in:
parent
aa732b0c73
commit
6983d3f10b
10 changed files with 80 additions and 0 deletions
1
manual/PRESENTATION_ExSyn/.gitignore
vendored
Normal file
1
manual/PRESENTATION_ExSyn/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
*.dot
|
12
manual/PRESENTATION_ExSyn/Makefile
Normal file
12
manual/PRESENTATION_ExSyn/Makefile
Normal file
|
@ -0,0 +1,12 @@
|
|||
|
||||
all: proc_00.pdf proc_01.pdf proc_02.pdf
|
||||
|
||||
proc_00.pdf: proc_00.v proc_00.ys
|
||||
../../yosys -p 'script proc_00.ys; show -notitle -prefix proc_00 -format pdf'
|
||||
|
||||
proc_01.pdf: proc_01.v proc_01.ys
|
||||
../../yosys -p 'script proc_01.ys; show -notitle -prefix proc_01 -format pdf'
|
||||
|
||||
proc_02.pdf: proc_02.v proc_02.ys
|
||||
../../yosys -p 'script proc_02.ys; show -notitle -prefix proc_02 -format pdf'
|
||||
|
7
manual/PRESENTATION_ExSyn/proc_00.v
Normal file
7
manual/PRESENTATION_ExSyn/proc_00.v
Normal file
|
@ -0,0 +1,7 @@
|
|||
module test(input D, C, R, output reg Q);
|
||||
always @(posedge C, posedge R)
|
||||
if (R)
|
||||
Q <= 0;
|
||||
else
|
||||
Q <= D;
|
||||
endmodule
|
3
manual/PRESENTATION_ExSyn/proc_00.ys
Normal file
3
manual/PRESENTATION_ExSyn/proc_00.ys
Normal file
|
@ -0,0 +1,3 @@
|
|||
read_verilog proc_00.v
|
||||
hierarchy -check -top test
|
||||
proc;;
|
8
manual/PRESENTATION_ExSyn/proc_01.v
Normal file
8
manual/PRESENTATION_ExSyn/proc_01.v
Normal file
|
@ -0,0 +1,8 @@
|
|||
module test(input D, C, R, RV,
|
||||
output reg Q);
|
||||
always @(posedge C, posedge R)
|
||||
if (R)
|
||||
Q <= RV;
|
||||
else
|
||||
Q <= D;
|
||||
endmodule
|
3
manual/PRESENTATION_ExSyn/proc_01.ys
Normal file
3
manual/PRESENTATION_ExSyn/proc_01.ys
Normal file
|
@ -0,0 +1,3 @@
|
|||
read_verilog proc_01.v
|
||||
hierarchy -check -top test
|
||||
proc;;
|
10
manual/PRESENTATION_ExSyn/proc_02.v
Normal file
10
manual/PRESENTATION_ExSyn/proc_02.v
Normal file
|
@ -0,0 +1,10 @@
|
|||
module test(input A, B, C, D, E,
|
||||
output reg Y);
|
||||
always @* begin
|
||||
Y <= A;
|
||||
if (B)
|
||||
Y <= C;
|
||||
if (D)
|
||||
Y <= E;
|
||||
end
|
||||
endmodule
|
3
manual/PRESENTATION_ExSyn/proc_02.ys
Normal file
3
manual/PRESENTATION_ExSyn/proc_02.ys
Normal file
|
@ -0,0 +1,3 @@
|
|||
read_verilog proc_02.v
|
||||
hierarchy -check -top test
|
||||
proc;;
|
Loading…
Add table
Add a link
Reference in a new issue