mirror of https://github.com/YosysHQ/yosys.git
Set `port_id` for Verific PortBus wires
This commit is contained in:
parent
37875fdedf
commit
25aafab86b
|
|
@ -1576,6 +1576,7 @@ void VerificImporter::import_netlist(RTLIL::Design *design, Netlist *nl, std::ma
|
||||||
SetIter si ;
|
SetIter si ;
|
||||||
Port *port ;
|
Port *port ;
|
||||||
FOREACH_PORT_OF_PORTBUS(portbus, si, port) {
|
FOREACH_PORT_OF_PORTBUS(portbus, si, port) {
|
||||||
|
wire->port_id = nl->IndexOf(port) + 1;
|
||||||
import_attributes(wire->attributes, port->GetNet(), nl, portbus->Size());
|
import_attributes(wire->attributes, port->GetNet(), nl, portbus->Size());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
verific -sv <<EOT
|
||||||
|
module simple (
|
||||||
|
input [3:0] I2,
|
||||||
|
input [3:0] I1,
|
||||||
|
output [3:0] result
|
||||||
|
);
|
||||||
|
assign result = I2 & I1;
|
||||||
|
endmodule
|
||||||
|
EOT
|
||||||
|
verific -import simple
|
||||||
|
|
||||||
|
write_verilog verilog_port_bus_order.out
|
||||||
|
!grep -qF 'simple(I2, I1, result)' verilog_port_bus_order.out
|
||||||
Loading…
Reference in New Issue