URL
https://opencores.org/ocsvn/ssbcc/ssbcc/trunk
[/] [ssbcc/] [trunk/] [core/] [9x8/] [ssbccGenVerilog.py] - Diff between revs 9 and 11
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 9 |
Rev 11 |
Line 50... |
Line 50... |
waveform viewers
|
waveform viewers
|
display_trace when the trace or monitor_stack peripherals are included
|
display_trace when the trace or monitor_stack peripherals are included
|
"""
|
"""
|
if 'display_opcode' in config.functions:
|
if 'display_opcode' in config.functions:
|
displayOpcodePath = os.path.join(config.Get('corepath'),'display_opcode.v');
|
displayOpcodePath = os.path.join(config.Get('corepath'),'display_opcode.v');
|
fpDisplayOpcode = open(displayOpcodePath,'r');
|
fpDisplayOpcode = open(displayOpcodePath,'rt');
|
if not fpDisplayOpcode:
|
if not fpDisplayOpcode:
|
raise Exception('Program Bug -- "%s" not found' % displayOpcodePath);
|
raise Exception('Program Bug -- "%s" not found' % displayOpcodePath);
|
body = fpDisplayOpcode.read();
|
body = fpDisplayOpcode.read();
|
fpDisplayOpcode.close();
|
fpDisplayOpcode.close();
|
fp.write(body);
|
fp.write(body);
|
Line 71... |
Line 71... |
end
|
end
|
endfunction
|
endfunction
|
""");
|
""");
|
if 'display_trace' in config.functions:
|
if 'display_trace' in config.functions:
|
displayTracePath = os.path.join(config.Get('corepath'),'display_trace.v');
|
displayTracePath = os.path.join(config.Get('corepath'),'display_trace.v');
|
fpDisplayTrace = open(displayTracePath,'r');
|
fpDisplayTrace = open(displayTracePath,'rt');
|
if not fpDisplayTrace:
|
if not fpDisplayTrace:
|
raise Exception('Program Bug -- "%s" not found' % displayTracePath);
|
raise Exception('Program Bug -- "%s" not found' % displayTracePath);
|
body = fpDisplayTrace.read();
|
body = fpDisplayTrace.read();
|
fpDisplayTrace.close();
|
fpDisplayTrace.close();
|
fp.write(body);
|
fp.write(body);
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.