diff options
author | Clifford Wolf <clifford@clifford.at> | 2017-05-12 14:13:33 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2017-05-12 14:13:33 +0200 |
commit | bd4ed19887dbf373ccb03815457b883a7289418a (patch) | |
tree | 682f98c32f3ea8160b59511195e2639887e383b5 /backends/simplec/test00_uut.v | |
parent | 241dc7dfb4084134ed1e8d5d995cce60764b3dfc (diff) | |
download | yosys-bd4ed19887dbf373ccb03815457b883a7289418a.tar.gz yosys-bd4ed19887dbf373ccb03815457b883a7289418a.tar.bz2 yosys-bd4ed19887dbf373ccb03815457b883a7289418a.zip |
Add first draft of simple C back-end
Diffstat (limited to 'backends/simplec/test00_uut.v')
-rw-r--r-- | backends/simplec/test00_uut.v | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/backends/simplec/test00_uut.v b/backends/simplec/test00_uut.v new file mode 100644 index 000000000..fd634cf82 --- /dev/null +++ b/backends/simplec/test00_uut.v @@ -0,0 +1,14 @@ +module test(input [31:0] a, b, c, output [31:0] x, y, z); + unit_x unit_x_inst (.a(a), .b(b), .c(c), .x(x)); + unit_y unit_y_inst (.a(a), .b(b), .c(c), .y(y)); + assign z = a ^ b ^ c; +endmodule + +module unit_x(input [31:0] a, b, c, output [31:0] x); + assign x = (a & b) | c; +endmodule + +module unit_y(input [31:0] a, b, c, output [31:0] y); + assign y = a & (b | c); +endmodule + |