URL
https://opencores.org/ocsvn/ssbcc/ssbcc/trunk
[/] [ssbcc/] [trunk/] [core/] [9x8/] [macros/] [outstrobe.py] - Diff between revs 3 and 5
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 3 |
Rev 5 |
Line 19... |
Line 19... |
if not ad.IsOutstrobe(argument[0]['value']):
|
if not ad.IsOutstrobe(argument[0]['value']):
|
raise asmDef.AsmException('Symbol "%s" is not a strobe-only output port at %s' % (argument[0]['value'],argument[0]['loc']));
|
raise asmDef.AsmException('Symbol "%s" is not a strobe-only output port at %s' % (argument[0]['value'],argument[0]['loc']));
|
name = argument[0]['value'];
|
name = argument[0]['value'];
|
ad.EmitPush(fp,ad.OutportAddress(name) & 0xFF,name);
|
ad.EmitPush(fp,ad.OutportAddress(name) & 0xFF,name);
|
ad.EmitOpcode(fp,ad.InstructionOpcode('outport'),'outport');
|
ad.EmitOpcode(fp,ad.InstructionOpcode('outport'),'outport');
|
|
|
ad.EmitFunction['.outstrobe'] = emitFunction;
|
ad.EmitFunction['.outstrobe'] = emitFunction;
|
|
|
No newline at end of file
|
No newline at end of file
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.