3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-20 02:00:23 +00:00

presentation progress

This commit is contained in:
Clifford Wolf 2014-02-02 17:57:14 +01:00
parent aa732b0c73
commit 6983d3f10b
10 changed files with 80 additions and 0 deletions

1
manual/PRESENTATION_ExSyn/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
*.dot

View 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'

View 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

View file

@ -0,0 +1,3 @@
read_verilog proc_00.v
hierarchy -check -top test
proc;;

View 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

View file

@ -0,0 +1,3 @@
read_verilog proc_01.v
hierarchy -check -top test
proc;;

View 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

View file

@ -0,0 +1,3 @@
read_verilog proc_02.v
hierarchy -check -top test
proc;;