We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I use cocotb 1.6.2 to test the Bus.driver()
module dut( input [7:0] data_in_data0, input [7:0] data_in_data1, output logic [7:0] data_out_data0, output logic [7:0] data_out_data1 ); always_comb begin data_out_data0=data_in_data1; data_out_data1=data_in_data0; end endmodule
class dataPkg(object): def __init__(self,data0,data1) -> None: self.data0=data0 self.data1=data1 @cocotb.test() async def testDemo(dut): dataIn=Bus(dut,"data_in",["data0","data1"]) await Timer(1,'ms') dataIn.drive(dataPkg(5,6)) await Timer(1,'ms')
the data_in_data0 and data_in_data1 are not assigned by 5 and 6.the Bus.drive() not work
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I use cocotb 1.6.2 to test the Bus.driver()
the data_in_data0 and data_in_data1 are not assigned by 5 and 6.the Bus.drive() not work
The text was updated successfully, but these errors were encountered: