Python to generate model.xml from Verilog Signed-off-by: David Shah <davey1576@gmail.com>
diff --git a/adder.v b/adder.v new file mode 100644 index 0000000..a454237 --- /dev/null +++ b/adder.v
@@ -0,0 +1,3 @@ +module adder(input a, b, ci, output y, co); +assign {co, y} = a + b + ci; +endmodule
diff --git a/dff.v b/dff.v new file mode 100644 index 0000000..edebdfc --- /dev/null +++ b/dff.v
@@ -0,0 +1,9 @@ +module dff(input clk, rst, d, output q); + +always @(posedge clk) + if (rst == 1'b1) + q <= 1'b0; + else + q <= d; + +endmodule