Last change
on this file since 134 was
113,
checked in by rosiere, 15 years ago
|
1) Add modelsim simulation systemC
2) Modelsim cosimulation systemC / VHDL is not finish !!!! (cf execute_queue and write_unit)
3) Add multi architecture
5) Add template for comparator, multiplier and divider
6) Change Message
Warning) Various test macro have change, many selftest can't compile
|
-
Property svn:keywords set to
Id
|
File size:
840 bytes
|
Rev | Line | |
---|
[113] | 1 | #ifdef VHDL |
---|
| 2 | |
---|
| 3 | /* |
---|
| 4 | * $Id: Vhdl_set_debug.cpp 113 2009-04-14 18:39:12Z rosiere $ |
---|
| 5 | * |
---|
| 6 | * [ Description ] |
---|
| 7 | * |
---|
| 8 | */ |
---|
| 9 | |
---|
| 10 | #include "Behavioural/include/Vhdl.h" |
---|
| 11 | #include "Common/include/Tabulation.h" |
---|
| 12 | #include <sstream> |
---|
| 13 | |
---|
| 14 | namespace morpheo { |
---|
| 15 | namespace behavioural { |
---|
| 16 | |
---|
| 17 | #undef FUNCTION |
---|
| 18 | #define FUNCTION "Vhdl::set_debug" |
---|
| 19 | void Vhdl::set_debug (std::string condition, |
---|
| 20 | std::string text, |
---|
| 21 | vhdl_severity_t severity) |
---|
| 22 | { |
---|
| 23 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 24 | |
---|
| 25 | std::string msg = "assert not ("+condition+") report \""+MSG_VHDL+" "+text+"\" severity "+toString(severity)+";"; |
---|
| 26 | |
---|
| 27 | test_architecture(); |
---|
| 28 | |
---|
| 29 | set_list(_architecture[_name_architecture]._list_debug, msg); |
---|
| 30 | |
---|
| 31 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
| 32 | }; |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | }; // end namespace behavioural |
---|
| 36 | }; // end namespace morpheo |
---|
| 37 | |
---|
| 38 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.