Debian Codegraph @

tests/inputs/specman_e.e

raw
1 this text is ignored
2 http://www.asic-world.com/code/specman_examples/mem_op_monitor.e
3 <'
4 struct mem_op_monitor {
5 mem_object : mem_base_object;
6 mem_scoreboard : mem_scoreboard;
7 -- event clk is fall('memory_tb.clk') @sim;
8
9 output_monitor()@clk is {
10 while (TRUE) {
11 /*
12 wait cycle;
13 if (('memory_tb.chip_en' == 1) && ('memory_tb.read_write' == 0)) {
14 */
15 outf("Output_monitor : Detected memory read access-> Address : %x Data : %x\n", 'memory_tb.address','memory_tb.data_out');
16 // mem_object.addr = 'memory_tb.address';
17 mem_object.data = 'memory_tb.data_out'; -- more comment
18 mem_scoreboard.post_output(mem_object);
19 };
20 };
21 };
22 };
23 '>
24 more text that should
25 be ignored
26 <'
27 a = 5 // this is more code
28 '>