loom
50 строк · 1.2 Кб
1/*
2MIT License
3
4Copyright (c) 2019 МГТУ им. Н.Э. Баумана, кафедра ИУ-6, Михаил Фетисов,
5
6https://bmstu.codes/lsx/simodo
7*/
8
9#include "SystemVerilogOperationCode.h"
10
11namespace sv
12{
13std::u16string getSblOperationCodeName(SystemVerilogOperationCode op) noexcept
14{
15std::u16string str;
16
17switch(op)
18{
19case SystemVerilogOperationCode::None:
20str = u"None";
21break;
22case SystemVerilogOperationCode::PushConst:
23str = u"PushConst";
24break;
25case SystemVerilogOperationCode::Equal:
26str = u"Equal";
27break;
28case SystemVerilogOperationCode::NotEqual:
29str = u"NotEqual";
30break;
31case SystemVerilogOperationCode::Less:
32str = u"Less";
33break;
34case SystemVerilogOperationCode::LessOrEqual:
35str = u"LessOrEqual";
36break;
37case SystemVerilogOperationCode::More:
38str = u"More";
39break;
40case SystemVerilogOperationCode::MoreOrEqual:
41str = u"MoreOrEqual";
42break;
43default:
44str = u"***";
45break;
46}
47
48return str;
49}
50}