mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-18 11:58:32 +00:00
cxxrtl: failing test: unconnected blackbox outputs don't compile.
This commit is contained in:
parent
b056e8c0ba
commit
dc69365258
2 changed files with 28 additions and 0 deletions
|
@ -11,3 +11,7 @@ run_subtest () {
|
||||||
|
|
||||||
run_subtest value
|
run_subtest value
|
||||||
run_subtest value_fuzz
|
run_subtest value_fuzz
|
||||||
|
|
||||||
|
# Compile-only test.
|
||||||
|
../../yosys -p "read_verilog test_unconnected_output.v; proc; clean; write_cxxrtl cxxrtl-test-unconnected_output.cc"
|
||||||
|
${CC:-gcc} -std=c++11 -c -o cxxrtl-test-unconnected_output -I../../backends/cxxrtl/runtime cxxrtl-test-unconnected_output.cc
|
||||||
|
|
24
tests/cxxrtl/test_unconnected_output.v
Normal file
24
tests/cxxrtl/test_unconnected_output.v
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
(* cxxrtl_blackbox *)
|
||||||
|
module blackbox(...);
|
||||||
|
(* cxxrtl_edge = "p" *)
|
||||||
|
input clk;
|
||||||
|
|
||||||
|
(* cxxrtl_sync *)
|
||||||
|
output [7:0] out1;
|
||||||
|
|
||||||
|
(* cxxrtl_sync *)
|
||||||
|
output [7:0] out2;
|
||||||
|
endmodule
|
||||||
|
|
||||||
|
module unconnected_output(
|
||||||
|
input clk,
|
||||||
|
in,
|
||||||
|
output out
|
||||||
|
);
|
||||||
|
blackbox bb (
|
||||||
|
.clock (clock),
|
||||||
|
.in (in),
|
||||||
|
.out1 (out),
|
||||||
|
.out2 (/* unconnected */),
|
||||||
|
);
|
||||||
|
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue