OpenCores
URL https://opencores.org/ocsvn/ssbcc/ssbcc/trunk

Subversion Repositories ssbcc

[/] [ssbcc/] [trunk/] [example/] [led/] [led.9x8] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 sinclairrf
################################################################################
2
#
3
# Copyright 2012, Sinclair R.F., Inc.
4
#
5
################################################################################
6
 
7
USER_HEADER
8
 
9
Illustration of an SSBCC.9x8 machine to blink an LED.
10
 
11
o_led is the output LED state.
12
 
13
This module was computer generated.  Bugs should be fixed in the source modules
14
for this computer generated code, not in this module.
15
 
16
END_USER_HEADER
17
 
18
#
19
# 9-bit opcodes and 8-bit data
20
#
21
 
22
ARCHITECTURE core/9x8 Verilog
23
 
24
#
25
# Define the memory widths and the structure of the associated ROMs and RAMs.
26
#
27
 
28
INSTRUCTION             2048
29
RETURN_STACK            32
30
DATA_STACK              32
31
 
32
#
33
# Define the I/O ports.
34
# Note:  "o_led" will be a single-bit output from the processor.  This will be
35
#        the lsb of the 8-bit value copied from the stack to the port.
36
# Note:  "C_LED" will be the constant port number used to access the LED port
37
#        inside the Forth code.
38
#
39
 
40
PORTCOMMENT LED on/off signal
41
OUTPORT 1-bit o_led O_LED
42
 
43
#
44
# Run the assembler for the embedded code.
45
#
46
 
47
ASSEMBLY led.s

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.