177 lines
5.0 KiB
Plaintext
177 lines
5.0 KiB
Plaintext
|
/*
|
||
|
WARNING: Do NOT edit the input and output ports in this file in a text
|
||
|
editor if you plan to continue editing the block that represents it in
|
||
|
the Block Editor! File corruption is VERY likely to occur.
|
||
|
*/
|
||
|
/*
|
||
|
Copyright (C) 1991-2007 Altera Corporation
|
||
|
Your use of Altera Corporation's design tools, logic functions
|
||
|
and other software and tools, and its AMPP partner logic
|
||
|
functions, and any output files from any of the foregoing
|
||
|
(including device programming or simulation files), and any
|
||
|
associated documentation or information are expressly subject
|
||
|
to the terms and conditions of the Altera Program License
|
||
|
Subscription Agreement, Altera MegaCore Function License
|
||
|
Agreement, or other applicable license agreement, including,
|
||
|
without limitation, that your use is for the sole purpose of
|
||
|
programming logic devices manufactured by Altera and sold by
|
||
|
Altera or its authorized distributors. Please refer to the
|
||
|
applicable agreement for further details.
|
||
|
*/
|
||
|
(header "symbol" (version "1.1"))
|
||
|
(symbol
|
||
|
(rect 64 64 224 384)
|
||
|
(text "controller" (rect 5 0 49 12)(font "Arial" ))
|
||
|
(text "inst" (rect 8 304 25 316)(font "Arial" ))
|
||
|
(port
|
||
|
(pt 0 32)
|
||
|
(input)
|
||
|
(text "clk" (rect 0 0 14 12)(font "Arial" ))
|
||
|
(text "clk" (rect 21 27 35 39)(font "Arial" ))
|
||
|
(line (pt 0 32)(pt 16 32)(line_width 1))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 48)
|
||
|
(input)
|
||
|
(text "reset_n" (rect 0 0 36 12)(font "Arial" ))
|
||
|
(text "reset_n" (rect 21 43 57 55)(font "Arial" ))
|
||
|
(line (pt 0 48)(pt 16 48)(line_width 1))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 64)
|
||
|
(input)
|
||
|
(text "op[5..0]" (rect 0 0 37 12)(font "Arial" ))
|
||
|
(text "op[5..0]" (rect 21 59 58 71)(font "Arial" ))
|
||
|
(line (pt 0 64)(pt 16 64)(line_width 3))
|
||
|
)
|
||
|
(port
|
||
|
(pt 0 80)
|
||
|
(input)
|
||
|
(text "opx[5..0]" (rect 0 0 43 12)(font "Arial" ))
|
||
|
(text "opx[5..0]" (rect 21 75 64 87)(font "Arial" ))
|
||
|
(line (pt 0 80)(pt 16 80)(line_width 3))
|
||
|
)
|
||
|
(port
|
||
|
(pt 160 32)
|
||
|
(output)
|
||
|
(text "branch_op" (rect 0 0 50 12)(font "Arial" ))
|
||
|
(text "branch_op" (rect 89 27 139 39)(font "Arial" ))
|
||
|
(line (pt 160 32)(pt 144 32)(line_width 1))
|
||
|
)
|
||
|
(port
|
||
|
(pt 160 48)
|
||
|
(output)
|
||
|
(text "imm_signed" (rect 0 0 59 12)(font "Arial" ))
|
||
|
(text "imm_signed" (rect 80 43 139 55)(font "Arial" ))
|
||
|
(line (pt 160 48)(pt 144 48)(line_width 1))
|
||
|
)
|
||
|
(port
|
||
|
(pt 160 64)
|
||
|
(output)
|
||
|
(text "ir_en" (rect 0 0 23 12)(font "Arial" ))
|
||
|
(text "ir_en" (rect 116 59 139 71)(font "Arial" ))
|
||
|
(line (pt 160 64)(pt 144 64)(line_width 1))
|
||
|
)
|
||
|
(port
|
||
|
(pt 160 80)
|
||
|
(output)
|
||
|
(text "pc_add_imm" (rect 0 0 62 12)(font "Arial" ))
|
||
|
(text "pc_add_imm" (rect 77 75 139 87)(font "Arial" ))
|
||
|
(line (pt 160 80)(pt 144 80)(line_width 1))
|
||
|
)
|
||
|
(port
|
||
|
(pt 160 96)
|
||
|
(output)
|
||
|
(text "pc_en" (rect 0 0 29 12)(font "Arial" ))
|
||
|
(text "pc_en" (rect 110 91 139 103)(font "Arial" ))
|
||
|
(line (pt 160 96)(pt 144 96)(line_width 1))
|
||
|
)
|
||
|
(port
|
||
|
(pt 160 112)
|
||
|
(output)
|
||
|
(text "pc_sel_a" (rect 0 0 43 12)(font "Arial" ))
|
||
|
(text "pc_sel_a" (rect 96 107 139 119)(font "Arial" ))
|
||
|
(line (pt 160 112)(pt 144 112)(line_width 1))
|
||
|
)
|
||
|
(port
|
||
|
(pt 160 128)
|
||
|
(output)
|
||
|
(text "pc_sel_imm" (rect 0 0 59 12)(font "Arial" ))
|
||
|
(text "pc_sel_imm" (rect 80 123 139 135)(font "Arial" ))
|
||
|
(line (pt 160 128)(pt 144 128)(line_width 1))
|
||
|
)
|
||
|
(port
|
||
|
(pt 160 144)
|
||
|
(output)
|
||
|
(text "rf_wren" (rect 0 0 36 12)(font "Arial" ))
|
||
|
(text "rf_wren" (rect 103 139 139 151)(font "Arial" ))
|
||
|
(line (pt 160 144)(pt 144 144)(line_width 1))
|
||
|
)
|
||
|
(port
|
||
|
(pt 160 160)
|
||
|
(output)
|
||
|
(text "sel_addr" (rect 0 0 41 12)(font "Arial" ))
|
||
|
(text "sel_addr" (rect 98 155 139 167)(font "Arial" ))
|
||
|
(line (pt 160 160)(pt 144 160)(line_width 1))
|
||
|
)
|
||
|
(port
|
||
|
(pt 160 176)
|
||
|
(output)
|
||
|
(text "sel_b" (rect 0 0 25 12)(font "Arial" ))
|
||
|
(text "sel_b" (rect 114 171 139 183)(font "Arial" ))
|
||
|
(line (pt 160 176)(pt 144 176)(line_width 1))
|
||
|
)
|
||
|
(port
|
||
|
(pt 160 192)
|
||
|
(output)
|
||
|
(text "sel_mem" (rect 0 0 44 12)(font "Arial" ))
|
||
|
(text "sel_mem" (rect 95 187 139 199)(font "Arial" ))
|
||
|
(line (pt 160 192)(pt 144 192)(line_width 1))
|
||
|
)
|
||
|
(port
|
||
|
(pt 160 208)
|
||
|
(output)
|
||
|
(text "sel_pc" (rect 0 0 31 12)(font "Arial" ))
|
||
|
(text "sel_pc" (rect 108 203 139 215)(font "Arial" ))
|
||
|
(line (pt 160 208)(pt 144 208)(line_width 1))
|
||
|
)
|
||
|
(port
|
||
|
(pt 160 224)
|
||
|
(output)
|
||
|
(text "sel_ra" (rect 0 0 29 12)(font "Arial" ))
|
||
|
(text "sel_ra" (rect 110 219 139 231)(font "Arial" ))
|
||
|
(line (pt 160 224)(pt 144 224)(line_width 1))
|
||
|
)
|
||
|
(port
|
||
|
(pt 160 240)
|
||
|
(output)
|
||
|
(text "sel_rC" (rect 0 0 31 12)(font "Arial" ))
|
||
|
(text "sel_rC" (rect 108 235 139 247)(font "Arial" ))
|
||
|
(line (pt 160 240)(pt 144 240)(line_width 1))
|
||
|
)
|
||
|
(port
|
||
|
(pt 160 272)
|
||
|
(output)
|
||
|
(text "write" (rect 0 0 22 12)(font "Arial" ))
|
||
|
(text "write" (rect 117 267 139 279)(font "Arial" ))
|
||
|
(line (pt 160 272)(pt 144 272)(line_width 1))
|
||
|
)
|
||
|
(port
|
||
|
(pt 160 288)
|
||
|
(output)
|
||
|
(text "op_alu[5..0]" (rect 0 0 57 12)(font "Arial" ))
|
||
|
(text "op_alu[5..0]" (rect 82 283 139 295)(font "Arial" ))
|
||
|
(line (pt 160 288)(pt 144 288)(line_width 3))
|
||
|
)
|
||
|
(port
|
||
|
(pt 160 256)
|
||
|
(output)
|
||
|
(text "read" (rect 110 248 135 262)(font "Arial" (font_size 8)))
|
||
|
(text "read" (rect 118 248 139 260)(font "Arial" ))
|
||
|
(line (pt 160 256)(pt 144 256)(line_width 1))
|
||
|
)
|
||
|
(drawing
|
||
|
(rectangle (rect 16 16 144 304)(line_width 1))
|
||
|
)
|
||
|
)
|