MCPcopy Create free account
hub / github.com/XpuOS/xsched / VpiQueue

Method VpiQueue

platforms/vpi/hal/src/vpi_queue.cpp:12–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10using namespace xsched::protocol;
11
12VpiQueue::VpiQueue(VPIStream stream): kStream(stream)
13{
14 // TODO: distinguish device type and id
15 device_ = MakeDevice(kDeviceTypeASIC, XDeviceId(0));
16 // make sure no tasks are running on the stream
17 VPI_ASSERT(Driver::StreamSync(kStream));
18}
19
20void VpiQueue::Launch(std::shared_ptr<preempt::HwCommand> hw_cmd)
21{

Callers

nothing calls this directly

Calls 1

MakeDeviceFunction · 0.85

Tested by

no test coverage detected