init.
This commit is contained in:
+64
@@ -0,0 +1,64 @@
|
||||
|
||||
# Created by https://www.gitignore.io/api/alteraquartusii
|
||||
|
||||
### AlteraQuartusII ###
|
||||
##list taken from http://www.alterawiki.com/wiki/Version_Control (01.10.2015)
|
||||
|
||||
######### Quartus II source files
|
||||
|
||||
# project files:
|
||||
### project_name.qpf Quartus II project file
|
||||
### project_name.qsf Quartus constraint file (lists the hardware constraints defined for a project, from the used chip and pinout to timing constraints)
|
||||
### project_name.qws Quartus Window Settings ? (the configuration of the Quartus gui for the project, may be omitted)
|
||||
|
||||
# top level source files:
|
||||
### project_name.bdf Block diagram / Schematic file (top level schematic file, there may be many nested files)
|
||||
### project_name.vhd VHDL file (top level VHDL file)
|
||||
### project_name.v Verilog file (top level Verilog file)
|
||||
|
||||
# component source files:
|
||||
### component_name.bsf Block Symbol file (component symbol file)
|
||||
### component_name.vhd VHDL file (top level VHDL file)
|
||||
### component_name.v Verilog file (top level Verilog file)
|
||||
|
||||
# SOPC builder project source files (SOPC builder creates many VHDL or Verilog files, that you do not need to store)
|
||||
### sopc_project_name.ptf the list and configuration of components selected in the SOPC gui
|
||||
### sopc_project_name.bsf Block Symbol file (SOPC component symbol file, especially if you modified it)
|
||||
|
||||
# Board Description (if you created your own board, the list is incomplete!)
|
||||
### board_name/class.ptf
|
||||
|
||||
# software source files:
|
||||
### tbd
|
||||
|
||||
######## Quartus II binary files
|
||||
|
||||
# hardware binary files
|
||||
### project_name.sof SRAM Object File
|
||||
|
||||
# software binary files
|
||||
### tbd
|
||||
|
||||
/*
|
||||
!/*.gitignore
|
||||
##
|
||||
!*.qpf
|
||||
!*.qsf
|
||||
!*.qws
|
||||
##
|
||||
!*.bdf
|
||||
!*.vhd
|
||||
!*.v
|
||||
##
|
||||
!*.ptf
|
||||
!*.bsf
|
||||
##
|
||||
!**/class.ptf
|
||||
##
|
||||
!*.tbd
|
||||
##
|
||||
!*.sof
|
||||
##
|
||||
## tbd
|
||||
|
||||
!*.tcl
|
||||
+850
@@ -0,0 +1,850 @@
|
||||
/*
|
||||
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-2012 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 "graphic" (version "1.4"))
|
||||
(pin
|
||||
(input)
|
||||
(rect 64 72 232 88)
|
||||
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
|
||||
(text "Enable" (rect 5 0 38 12)(font "Arial" ))
|
||||
(pt 168 8)
|
||||
(drawing
|
||||
(line (pt 84 12)(pt 109 12))
|
||||
(line (pt 84 4)(pt 109 4))
|
||||
(line (pt 113 8)(pt 168 8))
|
||||
(line (pt 84 12)(pt 84 4))
|
||||
(line (pt 109 4)(pt 113 8))
|
||||
(line (pt 109 12)(pt 113 8))
|
||||
)
|
||||
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
|
||||
)
|
||||
(pin
|
||||
(input)
|
||||
(rect 64 88 232 104)
|
||||
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
|
||||
(text "Set" (rect 5 0 21 12)(font "Arial" ))
|
||||
(pt 168 8)
|
||||
(drawing
|
||||
(line (pt 84 12)(pt 109 12))
|
||||
(line (pt 84 4)(pt 109 4))
|
||||
(line (pt 113 8)(pt 168 8))
|
||||
(line (pt 84 12)(pt 84 4))
|
||||
(line (pt 109 4)(pt 113 8))
|
||||
(line (pt 109 12)(pt 113 8))
|
||||
)
|
||||
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
|
||||
)
|
||||
(pin
|
||||
(input)
|
||||
(rect 64 104 232 120)
|
||||
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
|
||||
(text "Data[7..0]" (rect 5 0 54 12)(font "Arial" ))
|
||||
(pt 168 8)
|
||||
(drawing
|
||||
(line (pt 84 12)(pt 109 12))
|
||||
(line (pt 84 4)(pt 109 4))
|
||||
(line (pt 113 8)(pt 168 8))
|
||||
(line (pt 84 12)(pt 84 4))
|
||||
(line (pt 109 4)(pt 113 8))
|
||||
(line (pt 109 12)(pt 113 8))
|
||||
)
|
||||
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
|
||||
)
|
||||
(pin
|
||||
(output)
|
||||
(rect 560 72 736 88)
|
||||
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
||||
(text "Out[7..0]" (rect 90 0 133 12)(font "Arial" ))
|
||||
(pt 0 8)
|
||||
(drawing
|
||||
(line (pt 0 8)(pt 52 8))
|
||||
(line (pt 52 4)(pt 78 4))
|
||||
(line (pt 52 12)(pt 78 12))
|
||||
(line (pt 52 12)(pt 52 4))
|
||||
(line (pt 78 4)(pt 82 8))
|
||||
(line (pt 82 8)(pt 78 12))
|
||||
(line (pt 78 12)(pt 82 8))
|
||||
)
|
||||
)
|
||||
(pin
|
||||
(output)
|
||||
(rect 560 88 736 104)
|
||||
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
||||
(text "savedData[7..0]" (rect 90 0 170 12)(font "Arial" ))
|
||||
(pt 0 8)
|
||||
(drawing
|
||||
(line (pt 0 8)(pt 52 8))
|
||||
(line (pt 52 4)(pt 78 4))
|
||||
(line (pt 52 12)(pt 78 12))
|
||||
(line (pt 52 12)(pt 52 4))
|
||||
(line (pt 78 4)(pt 82 8))
|
||||
(line (pt 82 8)(pt 78 12))
|
||||
(line (pt 78 12)(pt 82 8))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 272 48 424 144)
|
||||
(text "CPU" (rect 5 0 28 14)(font "Arial" (font_size 8)))
|
||||
(text "inst" (rect 8 80 25 92)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "enable" (rect 0 0 37 14)(font "Arial" (font_size 8)))
|
||||
(text "enable" (rect 21 27 58 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 32)(pt 16 32))
|
||||
)
|
||||
(port
|
||||
(pt 0 48)
|
||||
(input)
|
||||
(text "set" (rect 0 0 17 14)(font "Arial" (font_size 8)))
|
||||
(text "set" (rect 21 43 38 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 48)(pt 16 48))
|
||||
)
|
||||
(port
|
||||
(pt 0 64)
|
||||
(input)
|
||||
(text "data" (rect 0 0 24 14)(font "Arial" (font_size 8)))
|
||||
(text "data" (rect 21 59 45 73)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 64)(pt 16 64))
|
||||
)
|
||||
(port
|
||||
(pt 152 32)
|
||||
(output)
|
||||
(text "out" (rect 0 0 17 14)(font "Arial" (font_size 8)))
|
||||
(text "out" (rect 114 27 131 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 152 32)(pt 136 32))
|
||||
)
|
||||
(port
|
||||
(pt 152 48)
|
||||
(output)
|
||||
(text "savedData" (rect 0 0 61 14)(font "Arial" (font_size 8)))
|
||||
(text "savedData" (rect 70 43 131 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 152 48)(pt 136 48))
|
||||
)
|
||||
(drawing
|
||||
(rectangle (rect 16 16 136 80))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 272 144 424 240)
|
||||
(text "CPU" (rect 5 0 28 14)(font "Arial" (font_size 8)))
|
||||
(text "inst1" (rect 8 80 31 92)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "enable" (rect 0 0 37 14)(font "Arial" (font_size 8)))
|
||||
(text "enable" (rect 21 27 58 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 32)(pt 16 32))
|
||||
)
|
||||
(port
|
||||
(pt 0 48)
|
||||
(input)
|
||||
(text "set" (rect 0 0 17 14)(font "Arial" (font_size 8)))
|
||||
(text "set" (rect 21 43 38 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 48)(pt 16 48))
|
||||
)
|
||||
(port
|
||||
(pt 0 64)
|
||||
(input)
|
||||
(text "data" (rect 0 0 24 14)(font "Arial" (font_size 8)))
|
||||
(text "data" (rect 21 59 45 73)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 64)(pt 16 64))
|
||||
)
|
||||
(port
|
||||
(pt 152 32)
|
||||
(output)
|
||||
(text "out" (rect 0 0 17 14)(font "Arial" (font_size 8)))
|
||||
(text "out" (rect 114 27 131 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 152 32)(pt 136 32))
|
||||
)
|
||||
(port
|
||||
(pt 152 48)
|
||||
(output)
|
||||
(text "savedData" (rect 0 0 61 14)(font "Arial" (font_size 8)))
|
||||
(text "savedData" (rect 70 43 131 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 152 48)(pt 136 48))
|
||||
)
|
||||
(drawing
|
||||
(rectangle (rect 16 16 136 80))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 272 240 424 336)
|
||||
(text "CPU" (rect 5 0 28 14)(font "Arial" (font_size 8)))
|
||||
(text "inst2" (rect 8 80 31 92)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "enable" (rect 0 0 37 14)(font "Arial" (font_size 8)))
|
||||
(text "enable" (rect 21 27 58 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 32)(pt 16 32))
|
||||
)
|
||||
(port
|
||||
(pt 0 48)
|
||||
(input)
|
||||
(text "set" (rect 0 0 17 14)(font "Arial" (font_size 8)))
|
||||
(text "set" (rect 21 43 38 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 48)(pt 16 48))
|
||||
)
|
||||
(port
|
||||
(pt 0 64)
|
||||
(input)
|
||||
(text "data" (rect 0 0 24 14)(font "Arial" (font_size 8)))
|
||||
(text "data" (rect 21 59 45 73)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 64)(pt 16 64))
|
||||
)
|
||||
(port
|
||||
(pt 152 32)
|
||||
(output)
|
||||
(text "out" (rect 0 0 17 14)(font "Arial" (font_size 8)))
|
||||
(text "out" (rect 114 27 131 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 152 32)(pt 136 32))
|
||||
)
|
||||
(port
|
||||
(pt 152 48)
|
||||
(output)
|
||||
(text "savedData" (rect 0 0 61 14)(font "Arial" (font_size 8)))
|
||||
(text "savedData" (rect 70 43 131 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 152 48)(pt 136 48))
|
||||
)
|
||||
(drawing
|
||||
(rectangle (rect 16 16 136 80))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 272 336 424 432)
|
||||
(text "CPU" (rect 5 0 28 14)(font "Arial" (font_size 8)))
|
||||
(text "inst3" (rect 8 80 31 92)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "enable" (rect 0 0 37 14)(font "Arial" (font_size 8)))
|
||||
(text "enable" (rect 21 27 58 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 32)(pt 16 32))
|
||||
)
|
||||
(port
|
||||
(pt 0 48)
|
||||
(input)
|
||||
(text "set" (rect 0 0 17 14)(font "Arial" (font_size 8)))
|
||||
(text "set" (rect 21 43 38 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 48)(pt 16 48))
|
||||
)
|
||||
(port
|
||||
(pt 0 64)
|
||||
(input)
|
||||
(text "data" (rect 0 0 24 14)(font "Arial" (font_size 8)))
|
||||
(text "data" (rect 21 59 45 73)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 64)(pt 16 64))
|
||||
)
|
||||
(port
|
||||
(pt 152 32)
|
||||
(output)
|
||||
(text "out" (rect 0 0 17 14)(font "Arial" (font_size 8)))
|
||||
(text "out" (rect 114 27 131 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 152 32)(pt 136 32))
|
||||
)
|
||||
(port
|
||||
(pt 152 48)
|
||||
(output)
|
||||
(text "savedData" (rect 0 0 61 14)(font "Arial" (font_size 8)))
|
||||
(text "savedData" (rect 70 43 131 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 152 48)(pt 136 48))
|
||||
)
|
||||
(drawing
|
||||
(rectangle (rect 16 16 136 80))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 272 432 424 528)
|
||||
(text "CPU" (rect 5 0 28 14)(font "Arial" (font_size 8)))
|
||||
(text "inst4" (rect 8 80 31 92)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "enable" (rect 0 0 37 14)(font "Arial" (font_size 8)))
|
||||
(text "enable" (rect 21 27 58 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 32)(pt 16 32))
|
||||
)
|
||||
(port
|
||||
(pt 0 48)
|
||||
(input)
|
||||
(text "set" (rect 0 0 17 14)(font "Arial" (font_size 8)))
|
||||
(text "set" (rect 21 43 38 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 48)(pt 16 48))
|
||||
)
|
||||
(port
|
||||
(pt 0 64)
|
||||
(input)
|
||||
(text "data" (rect 0 0 24 14)(font "Arial" (font_size 8)))
|
||||
(text "data" (rect 21 59 45 73)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 64)(pt 16 64))
|
||||
)
|
||||
(port
|
||||
(pt 152 32)
|
||||
(output)
|
||||
(text "out" (rect 0 0 17 14)(font "Arial" (font_size 8)))
|
||||
(text "out" (rect 114 27 131 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 152 32)(pt 136 32))
|
||||
)
|
||||
(port
|
||||
(pt 152 48)
|
||||
(output)
|
||||
(text "savedData" (rect 0 0 61 14)(font "Arial" (font_size 8)))
|
||||
(text "savedData" (rect 70 43 131 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 152 48)(pt 136 48))
|
||||
)
|
||||
(drawing
|
||||
(rectangle (rect 16 16 136 80))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 272 528 424 624)
|
||||
(text "CPU" (rect 5 0 28 14)(font "Arial" (font_size 8)))
|
||||
(text "inst5" (rect 8 80 31 92)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "enable" (rect 0 0 37 14)(font "Arial" (font_size 8)))
|
||||
(text "enable" (rect 21 27 58 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 32)(pt 16 32))
|
||||
)
|
||||
(port
|
||||
(pt 0 48)
|
||||
(input)
|
||||
(text "set" (rect 0 0 17 14)(font "Arial" (font_size 8)))
|
||||
(text "set" (rect 21 43 38 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 48)(pt 16 48))
|
||||
)
|
||||
(port
|
||||
(pt 0 64)
|
||||
(input)
|
||||
(text "data" (rect 0 0 24 14)(font "Arial" (font_size 8)))
|
||||
(text "data" (rect 21 59 45 73)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 64)(pt 16 64))
|
||||
)
|
||||
(port
|
||||
(pt 152 32)
|
||||
(output)
|
||||
(text "out" (rect 0 0 17 14)(font "Arial" (font_size 8)))
|
||||
(text "out" (rect 114 27 131 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 152 32)(pt 136 32))
|
||||
)
|
||||
(port
|
||||
(pt 152 48)
|
||||
(output)
|
||||
(text "savedData" (rect 0 0 61 14)(font "Arial" (font_size 8)))
|
||||
(text "savedData" (rect 70 43 131 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 152 48)(pt 136 48))
|
||||
)
|
||||
(drawing
|
||||
(rectangle (rect 16 16 136 80))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 272 624 424 720)
|
||||
(text "CPU" (rect 5 0 28 14)(font "Arial" (font_size 8)))
|
||||
(text "inst6" (rect 8 80 31 92)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "enable" (rect 0 0 37 14)(font "Arial" (font_size 8)))
|
||||
(text "enable" (rect 21 27 58 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 32)(pt 16 32))
|
||||
)
|
||||
(port
|
||||
(pt 0 48)
|
||||
(input)
|
||||
(text "set" (rect 0 0 17 14)(font "Arial" (font_size 8)))
|
||||
(text "set" (rect 21 43 38 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 48)(pt 16 48))
|
||||
)
|
||||
(port
|
||||
(pt 0 64)
|
||||
(input)
|
||||
(text "data" (rect 0 0 24 14)(font "Arial" (font_size 8)))
|
||||
(text "data" (rect 21 59 45 73)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 64)(pt 16 64))
|
||||
)
|
||||
(port
|
||||
(pt 152 32)
|
||||
(output)
|
||||
(text "out" (rect 0 0 17 14)(font "Arial" (font_size 8)))
|
||||
(text "out" (rect 114 27 131 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 152 32)(pt 136 32))
|
||||
)
|
||||
(port
|
||||
(pt 152 48)
|
||||
(output)
|
||||
(text "savedData" (rect 0 0 61 14)(font "Arial" (font_size 8)))
|
||||
(text "savedData" (rect 70 43 131 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 152 48)(pt 136 48))
|
||||
)
|
||||
(drawing
|
||||
(rectangle (rect 16 16 136 80))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 272 720 424 816)
|
||||
(text "CPU" (rect 5 0 28 14)(font "Arial" (font_size 8)))
|
||||
(text "inst7" (rect 8 80 31 92)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "enable" (rect 0 0 37 14)(font "Arial" (font_size 8)))
|
||||
(text "enable" (rect 21 27 58 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 32)(pt 16 32))
|
||||
)
|
||||
(port
|
||||
(pt 0 48)
|
||||
(input)
|
||||
(text "set" (rect 0 0 17 14)(font "Arial" (font_size 8)))
|
||||
(text "set" (rect 21 43 38 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 48)(pt 16 48))
|
||||
)
|
||||
(port
|
||||
(pt 0 64)
|
||||
(input)
|
||||
(text "data" (rect 0 0 24 14)(font "Arial" (font_size 8)))
|
||||
(text "data" (rect 21 59 45 73)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 64)(pt 16 64))
|
||||
)
|
||||
(port
|
||||
(pt 152 32)
|
||||
(output)
|
||||
(text "out" (rect 0 0 17 14)(font "Arial" (font_size 8)))
|
||||
(text "out" (rect 114 27 131 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 152 32)(pt 136 32))
|
||||
)
|
||||
(port
|
||||
(pt 152 48)
|
||||
(output)
|
||||
(text "savedData" (rect 0 0 61 14)(font "Arial" (font_size 8)))
|
||||
(text "savedData" (rect 70 43 131 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 152 48)(pt 136 48))
|
||||
)
|
||||
(drawing
|
||||
(rectangle (rect 16 16 136 80))
|
||||
)
|
||||
)
|
||||
(connector
|
||||
(pt 448 80)
|
||||
(pt 560 80)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(text "Out[1]" (rect 428 160 458 172)(font "Arial" ))
|
||||
(pt 424 176)
|
||||
(pt 448 176)
|
||||
)
|
||||
(connector
|
||||
(text "Out[0]" (rect 438 64 468 76)(font "Arial" ))
|
||||
(pt 424 80)
|
||||
(pt 448 80)
|
||||
)
|
||||
(connector
|
||||
(text "Out[2]" (rect 431 256 461 268)(font "Arial" ))
|
||||
(pt 424 272)
|
||||
(pt 448 272)
|
||||
)
|
||||
(connector
|
||||
(text "Out[3]" (rect 433 352 463 364)(font "Arial" ))
|
||||
(pt 424 368)
|
||||
(pt 448 368)
|
||||
)
|
||||
(connector
|
||||
(text "Out[4]" (rect 436 448 466 460)(font "Arial" ))
|
||||
(pt 424 464)
|
||||
(pt 448 464)
|
||||
)
|
||||
(connector
|
||||
(text "Out[5]" (rect 434 544 464 556)(font "Arial" ))
|
||||
(pt 424 560)
|
||||
(pt 448 560)
|
||||
)
|
||||
(connector
|
||||
(text "Out[6]" (rect 426 640 456 652)(font "Arial" ))
|
||||
(pt 424 656)
|
||||
(pt 448 656)
|
||||
)
|
||||
(connector
|
||||
(text "Out[7]" (rect 436 736 466 748)(font "Arial" ))
|
||||
(pt 424 752)
|
||||
(pt 448 752)
|
||||
)
|
||||
(connector
|
||||
(pt 456 96)
|
||||
(pt 560 96)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 272 752)
|
||||
(pt 264 752)
|
||||
)
|
||||
(connector
|
||||
(pt 272 656)
|
||||
(pt 264 656)
|
||||
)
|
||||
(connector
|
||||
(pt 272 560)
|
||||
(pt 264 560)
|
||||
)
|
||||
(connector
|
||||
(pt 272 464)
|
||||
(pt 264 464)
|
||||
)
|
||||
(connector
|
||||
(pt 272 368)
|
||||
(pt 264 368)
|
||||
)
|
||||
(connector
|
||||
(pt 272 272)
|
||||
(pt 264 272)
|
||||
)
|
||||
(connector
|
||||
(pt 264 176)
|
||||
(pt 272 176)
|
||||
)
|
||||
(connector
|
||||
(pt 256 768)
|
||||
(pt 272 768)
|
||||
)
|
||||
(connector
|
||||
(pt 272 672)
|
||||
(pt 256 672)
|
||||
)
|
||||
(connector
|
||||
(pt 272 576)
|
||||
(pt 256 576)
|
||||
)
|
||||
(connector
|
||||
(pt 272 480)
|
||||
(pt 256 480)
|
||||
)
|
||||
(connector
|
||||
(pt 272 384)
|
||||
(pt 256 384)
|
||||
)
|
||||
(connector
|
||||
(pt 272 288)
|
||||
(pt 256 288)
|
||||
)
|
||||
(connector
|
||||
(pt 272 192)
|
||||
(pt 256 192)
|
||||
)
|
||||
(connector
|
||||
(pt 232 112)
|
||||
(pt 240 112)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(text "Data[0]" (rect 253 96 289 108)(font "Arial" ))
|
||||
(pt 272 112)
|
||||
(pt 240 112)
|
||||
)
|
||||
(connector
|
||||
(text "Data[1]" (rect 246 192 282 204)(font "Arial" ))
|
||||
(pt 272 208)
|
||||
(pt 240 208)
|
||||
)
|
||||
(connector
|
||||
(text "Data[2]" (rect 248 288 284 300)(font "Arial" ))
|
||||
(pt 272 304)
|
||||
(pt 240 304)
|
||||
)
|
||||
(connector
|
||||
(text "Data[3]" (rect 250 384 286 396)(font "Arial" ))
|
||||
(pt 272 400)
|
||||
(pt 240 400)
|
||||
)
|
||||
(connector
|
||||
(text "Data[4]" (rect 250 480 286 492)(font "Arial" ))
|
||||
(pt 272 496)
|
||||
(pt 240 496)
|
||||
)
|
||||
(connector
|
||||
(text "Data[5]" (rect 246 576 282 588)(font "Arial" ))
|
||||
(pt 272 592)
|
||||
(pt 240 592)
|
||||
)
|
||||
(connector
|
||||
(text "Data[6]" (rect 251 672 287 684)(font "Arial" ))
|
||||
(pt 272 688)
|
||||
(pt 240 688)
|
||||
)
|
||||
(connector
|
||||
(text "Data[7]" (rect 256 768 292 780)(font "Arial" ))
|
||||
(pt 272 784)
|
||||
(pt 240 784)
|
||||
)
|
||||
(connector
|
||||
(text "savedData[0]" (rect 437 80 504 92)(font "Arial" ))
|
||||
(pt 456 96)
|
||||
(pt 424 96)
|
||||
)
|
||||
(connector
|
||||
(text "savedData[1]" (rect 437 176 504 188)(font "Arial" ))
|
||||
(pt 456 192)
|
||||
(pt 424 192)
|
||||
)
|
||||
(connector
|
||||
(text "savedData[2]" (rect 437 272 504 284)(font "Arial" ))
|
||||
(pt 456 288)
|
||||
(pt 424 288)
|
||||
)
|
||||
(connector
|
||||
(text "savedData[3]" (rect 437 368 504 380)(font "Arial" ))
|
||||
(pt 456 384)
|
||||
(pt 424 384)
|
||||
)
|
||||
(connector
|
||||
(text "savedData[4]" (rect 437 464 504 476)(font "Arial" ))
|
||||
(pt 456 480)
|
||||
(pt 424 480)
|
||||
)
|
||||
(connector
|
||||
(text "savedData[5]" (rect 437 560 504 572)(font "Arial" ))
|
||||
(pt 456 576)
|
||||
(pt 424 576)
|
||||
)
|
||||
(connector
|
||||
(text "savedData[6]" (rect 437 656 504 668)(font "Arial" ))
|
||||
(pt 456 672)
|
||||
(pt 424 672)
|
||||
)
|
||||
(connector
|
||||
(text "savedData[7]" (rect 437 752 504 764)(font "Arial" ))
|
||||
(pt 456 768)
|
||||
(pt 424 768)
|
||||
)
|
||||
(connector
|
||||
(pt 448 80)
|
||||
(pt 448 176)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 448 176)
|
||||
(pt 448 272)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 448 272)
|
||||
(pt 448 368)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 448 368)
|
||||
(pt 448 464)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 448 464)
|
||||
(pt 448 560)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 448 560)
|
||||
(pt 448 656)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(text "Out[7..0]" (rect 437 697 449 740)(font "Arial" )(vertical))
|
||||
(pt 448 656)
|
||||
(pt 448 752)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 264 656)
|
||||
(pt 264 752)
|
||||
)
|
||||
(connector
|
||||
(pt 264 560)
|
||||
(pt 264 656)
|
||||
)
|
||||
(connector
|
||||
(pt 264 464)
|
||||
(pt 264 560)
|
||||
)
|
||||
(connector
|
||||
(pt 264 80)
|
||||
(pt 264 176)
|
||||
)
|
||||
(connector
|
||||
(pt 264 176)
|
||||
(pt 264 272)
|
||||
)
|
||||
(connector
|
||||
(pt 264 272)
|
||||
(pt 264 368)
|
||||
)
|
||||
(connector
|
||||
(pt 264 368)
|
||||
(pt 264 464)
|
||||
)
|
||||
(connector
|
||||
(pt 232 80)
|
||||
(pt 264 80)
|
||||
)
|
||||
(connector
|
||||
(pt 264 80)
|
||||
(pt 272 80)
|
||||
)
|
||||
(connector
|
||||
(pt 256 672)
|
||||
(pt 256 768)
|
||||
)
|
||||
(connector
|
||||
(pt 256 576)
|
||||
(pt 256 672)
|
||||
)
|
||||
(connector
|
||||
(pt 256 480)
|
||||
(pt 256 576)
|
||||
)
|
||||
(connector
|
||||
(pt 256 96)
|
||||
(pt 256 192)
|
||||
)
|
||||
(connector
|
||||
(pt 256 192)
|
||||
(pt 256 288)
|
||||
)
|
||||
(connector
|
||||
(pt 256 288)
|
||||
(pt 256 384)
|
||||
)
|
||||
(connector
|
||||
(pt 256 384)
|
||||
(pt 256 480)
|
||||
)
|
||||
(connector
|
||||
(pt 232 96)
|
||||
(pt 256 96)
|
||||
)
|
||||
(connector
|
||||
(pt 256 96)
|
||||
(pt 272 96)
|
||||
)
|
||||
(connector
|
||||
(pt 240 112)
|
||||
(pt 240 208)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 240 208)
|
||||
(pt 240 304)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 240 304)
|
||||
(pt 240 400)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 240 400)
|
||||
(pt 240 496)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 240 496)
|
||||
(pt 240 592)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 240 592)
|
||||
(pt 240 688)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(text "Data[7..0]" (rect 225 725 237 774)(font "Arial" )(vertical))
|
||||
(pt 240 688)
|
||||
(pt 240 784)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 456 96)
|
||||
(pt 456 192)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 456 192)
|
||||
(pt 456 288)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 456 288)
|
||||
(pt 456 384)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 456 384)
|
||||
(pt 456 480)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 456 480)
|
||||
(pt 456 576)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 456 576)
|
||||
(pt 456 672)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 456 672)
|
||||
(pt 456 768)
|
||||
(bus)
|
||||
)
|
||||
(junction (pt 448 80))
|
||||
(junction (pt 448 176))
|
||||
(junction (pt 448 272))
|
||||
(junction (pt 448 368))
|
||||
(junction (pt 448 464))
|
||||
(junction (pt 448 560))
|
||||
(junction (pt 448 656))
|
||||
(junction (pt 264 656))
|
||||
(junction (pt 264 560))
|
||||
(junction (pt 264 464))
|
||||
(junction (pt 264 368))
|
||||
(junction (pt 264 176))
|
||||
(junction (pt 264 272))
|
||||
(junction (pt 264 80))
|
||||
(junction (pt 256 672))
|
||||
(junction (pt 256 576))
|
||||
(junction (pt 256 480))
|
||||
(junction (pt 256 384))
|
||||
(junction (pt 256 192))
|
||||
(junction (pt 256 288))
|
||||
(junction (pt 256 96))
|
||||
(junction (pt 240 112))
|
||||
(junction (pt 240 208))
|
||||
(junction (pt 240 304))
|
||||
(junction (pt 240 400))
|
||||
(junction (pt 240 496))
|
||||
(junction (pt 240 592))
|
||||
(junction (pt 240 688))
|
||||
(junction (pt 456 96))
|
||||
(junction (pt 456 192))
|
||||
(junction (pt 456 288))
|
||||
(junction (pt 456 384))
|
||||
(junction (pt 456 480))
|
||||
(junction (pt 456 576))
|
||||
(junction (pt 456 672))
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
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-2012 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.2"))
|
||||
(symbol
|
||||
(rect 16 16 216 112)
|
||||
(text "8bit_memory" (rect 5 0 76 14)(font "Arial" (font_size 8)))
|
||||
(text "inst" (rect 8 80 25 92)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "Enable" (rect 0 0 37 14)(font "Arial" (font_size 8)))
|
||||
(text "Enable" (rect 21 27 58 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 32)(pt 16 32))
|
||||
)
|
||||
(port
|
||||
(pt 0 48)
|
||||
(input)
|
||||
(text "Set" (rect 0 0 18 14)(font "Arial" (font_size 8)))
|
||||
(text "Set" (rect 21 43 39 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 48)(pt 16 48))
|
||||
)
|
||||
(port
|
||||
(pt 0 64)
|
||||
(input)
|
||||
(text "Data[7..0]" (rect 0 0 54 14)(font "Arial" (font_size 8)))
|
||||
(text "Data[7..0]" (rect 21 59 75 73)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 64)(pt 16 64)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 200 32)
|
||||
(output)
|
||||
(text "Out[7..0]" (rect 0 0 48 14)(font "Arial" (font_size 8)))
|
||||
(text "Out[7..0]" (rect 131 27 179 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 200 32)(pt 184 32)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 200 48)
|
||||
(output)
|
||||
(text "savedData[7..0]" (rect 0 0 89 14)(font "Arial" (font_size 8)))
|
||||
(text "savedData[7..0]" (rect 90 43 179 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 200 48)(pt 184 48)(line_width 3))
|
||||
)
|
||||
(drawing
|
||||
(rectangle (rect 16 16 184 80))
|
||||
)
|
||||
)
|
||||
@@ -0,0 +1,405 @@
|
||||
/*
|
||||
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-2012 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 "graphic" (version "1.4"))
|
||||
(pin
|
||||
(input)
|
||||
(rect 88 56 256 72)
|
||||
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
|
||||
(text "set" (rect 5 0 20 12)(font "Arial" ))
|
||||
(pt 168 8)
|
||||
(drawing
|
||||
(line (pt 84 12)(pt 109 12))
|
||||
(line (pt 84 4)(pt 109 4))
|
||||
(line (pt 113 8)(pt 168 8))
|
||||
(line (pt 84 12)(pt 84 4))
|
||||
(line (pt 109 4)(pt 113 8))
|
||||
(line (pt 109 12)(pt 113 8))
|
||||
)
|
||||
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
|
||||
(annotation_block (location)(rect 32 72 88 88))
|
||||
)
|
||||
(pin
|
||||
(input)
|
||||
(rect 88 96 256 112)
|
||||
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
|
||||
(text "data" (rect 5 0 26 12)(font "Arial" ))
|
||||
(pt 168 8)
|
||||
(drawing
|
||||
(line (pt 84 12)(pt 109 12))
|
||||
(line (pt 84 4)(pt 109 4))
|
||||
(line (pt 113 8)(pt 168 8))
|
||||
(line (pt 84 12)(pt 84 4))
|
||||
(line (pt 109 4)(pt 113 8))
|
||||
(line (pt 109 12)(pt 113 8))
|
||||
)
|
||||
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
|
||||
(annotation_block (location)(rect 32 112 88 128))
|
||||
)
|
||||
(pin
|
||||
(input)
|
||||
(rect 456 48 624 64)
|
||||
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
|
||||
(text "enable" (rect 5 0 36 12)(font "Arial" ))
|
||||
(pt 168 8)
|
||||
(drawing
|
||||
(line (pt 84 12)(pt 109 12))
|
||||
(line (pt 84 4)(pt 109 4))
|
||||
(line (pt 113 8)(pt 168 8))
|
||||
(line (pt 84 12)(pt 84 4))
|
||||
(line (pt 109 4)(pt 113 8))
|
||||
(line (pt 109 12)(pt 113 8))
|
||||
)
|
||||
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
|
||||
(annotation_block (location)(rect 392 64 456 80))
|
||||
)
|
||||
(pin
|
||||
(output)
|
||||
(rect 600 192 776 208)
|
||||
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
||||
(text "savedData" (rect 90 0 144 12)(font "Arial" ))
|
||||
(pt 0 8)
|
||||
(drawing
|
||||
(line (pt 0 8)(pt 52 8))
|
||||
(line (pt 52 4)(pt 78 4))
|
||||
(line (pt 52 12)(pt 78 12))
|
||||
(line (pt 52 12)(pt 52 4))
|
||||
(line (pt 78 4)(pt 82 8))
|
||||
(line (pt 82 8)(pt 78 12))
|
||||
(line (pt 78 12)(pt 82 8))
|
||||
)
|
||||
)
|
||||
(pin
|
||||
(output)
|
||||
(rect 728 144 904 160)
|
||||
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
||||
(text "out" (rect 90 0 105 12)(font "Arial" ))
|
||||
(pt 0 8)
|
||||
(drawing
|
||||
(line (pt 0 8)(pt 52 8))
|
||||
(line (pt 52 4)(pt 78 4))
|
||||
(line (pt 52 12)(pt 78 12))
|
||||
(line (pt 52 12)(pt 52 4))
|
||||
(line (pt 78 4)(pt 82 8))
|
||||
(line (pt 82 8)(pt 78 12))
|
||||
(line (pt 78 12)(pt 82 8))
|
||||
)
|
||||
(annotation_block (location)(rect 904 160 960 176))
|
||||
)
|
||||
(symbol
|
||||
(rect 288 88 352 136)
|
||||
(text "NAND2" (rect 1 0 32 10)(font "Arial" (font_size 6)))
|
||||
(text "inst" (rect 3 37 20 49)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 32)(pt 15 32))
|
||||
)
|
||||
(port
|
||||
(pt 0 16)
|
||||
(input)
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 16)(pt 15 16))
|
||||
)
|
||||
(port
|
||||
(pt 64 24)
|
||||
(output)
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 52 24)(pt 64 24))
|
||||
)
|
||||
(drawing
|
||||
(line (pt 15 37)(pt 32 37))
|
||||
(line (pt 15 12)(pt 32 12))
|
||||
(line (pt 15 36)(pt 15 12))
|
||||
(arc (pt 32 36)(pt 32 12)(rect 20 12 45 37))
|
||||
(circle (rect 44 20 52 28))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 376 168 440 216)
|
||||
(text "NAND2" (rect 1 0 32 10)(font "Arial" (font_size 6)))
|
||||
(text "inst1" (rect 3 37 26 49)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 32)(pt 15 32))
|
||||
)
|
||||
(port
|
||||
(pt 0 16)
|
||||
(input)
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 16)(pt 15 16))
|
||||
)
|
||||
(port
|
||||
(pt 64 24)
|
||||
(output)
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 52 24)(pt 64 24))
|
||||
)
|
||||
(drawing
|
||||
(line (pt 15 37)(pt 32 37))
|
||||
(line (pt 15 12)(pt 32 12))
|
||||
(line (pt 15 36)(pt 15 12))
|
||||
(arc (pt 32 36)(pt 32 12)(rect 20 12 45 37))
|
||||
(circle (rect 44 20 52 28))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 464 96 528 144)
|
||||
(text "NAND2" (rect 1 0 32 10)(font "Arial" (font_size 6)))
|
||||
(text "inst2" (rect 3 37 26 49)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 32)(pt 15 32))
|
||||
)
|
||||
(port
|
||||
(pt 0 16)
|
||||
(input)
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 16)(pt 15 16))
|
||||
)
|
||||
(port
|
||||
(pt 64 24)
|
||||
(output)
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 52 24)(pt 64 24))
|
||||
)
|
||||
(drawing
|
||||
(line (pt 15 37)(pt 32 37))
|
||||
(line (pt 15 12)(pt 32 12))
|
||||
(line (pt 15 36)(pt 15 12))
|
||||
(arc (pt 32 36)(pt 32 12)(rect 20 12 45 37))
|
||||
(circle (rect 44 20 52 28))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 464 168 528 216)
|
||||
(text "NAND2" (rect 1 0 32 10)(font "Arial" (font_size 6)))
|
||||
(text "inst3" (rect 3 37 26 49)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 32)(pt 15 32))
|
||||
)
|
||||
(port
|
||||
(pt 0 16)
|
||||
(input)
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 16)(pt 15 16))
|
||||
)
|
||||
(port
|
||||
(pt 64 24)
|
||||
(output)
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 52 24)(pt 64 24))
|
||||
)
|
||||
(drawing
|
||||
(line (pt 15 37)(pt 32 37))
|
||||
(line (pt 15 12)(pt 32 12))
|
||||
(line (pt 15 36)(pt 15 12))
|
||||
(arc (pt 32 36)(pt 32 12)(rect 20 12 45 37))
|
||||
(circle (rect 44 20 52 28))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 648 128 712 176)
|
||||
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
||||
(text "inst4" (rect 3 37 26 49)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 16)
|
||||
(input)
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 16)(pt 14 16))
|
||||
)
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 32)(pt 14 32))
|
||||
)
|
||||
(port
|
||||
(pt 64 24)
|
||||
(output)
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 42 24)(pt 64 24))
|
||||
)
|
||||
(drawing
|
||||
(line (pt 14 12)(pt 30 12))
|
||||
(line (pt 14 37)(pt 31 37))
|
||||
(line (pt 14 12)(pt 14 37))
|
||||
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37))
|
||||
)
|
||||
)
|
||||
(connector
|
||||
(pt 456 160)
|
||||
(pt 456 184)
|
||||
)
|
||||
(connector
|
||||
(pt 456 184)
|
||||
(pt 464 184)
|
||||
)
|
||||
(connector
|
||||
(pt 456 160)
|
||||
(pt 536 160)
|
||||
)
|
||||
(connector
|
||||
(pt 544 192)
|
||||
(pt 544 152)
|
||||
)
|
||||
(connector
|
||||
(pt 544 152)
|
||||
(pt 456 152)
|
||||
)
|
||||
(connector
|
||||
(pt 456 152)
|
||||
(pt 456 128)
|
||||
)
|
||||
(connector
|
||||
(pt 456 128)
|
||||
(pt 464 128)
|
||||
)
|
||||
(connector
|
||||
(pt 528 192)
|
||||
(pt 544 192)
|
||||
)
|
||||
(connector
|
||||
(pt 528 120)
|
||||
(pt 536 120)
|
||||
)
|
||||
(connector
|
||||
(pt 448 200)
|
||||
(pt 464 200)
|
||||
)
|
||||
(connector
|
||||
(pt 448 192)
|
||||
(pt 440 192)
|
||||
)
|
||||
(connector
|
||||
(pt 368 112)
|
||||
(pt 368 184)
|
||||
)
|
||||
(connector
|
||||
(pt 368 184)
|
||||
(pt 376 184)
|
||||
)
|
||||
(connector
|
||||
(pt 448 200)
|
||||
(pt 448 192)
|
||||
)
|
||||
(connector
|
||||
(pt 280 200)
|
||||
(pt 376 200)
|
||||
)
|
||||
(connector
|
||||
(pt 280 120)
|
||||
(pt 280 200)
|
||||
)
|
||||
(connector
|
||||
(pt 256 104)
|
||||
(pt 288 104)
|
||||
)
|
||||
(connector
|
||||
(pt 264 64)
|
||||
(pt 256 64)
|
||||
)
|
||||
(connector
|
||||
(pt 352 112)
|
||||
(pt 368 112)
|
||||
)
|
||||
(connector
|
||||
(pt 368 112)
|
||||
(pt 464 112)
|
||||
)
|
||||
(connector
|
||||
(pt 264 120)
|
||||
(pt 280 120)
|
||||
)
|
||||
(connector
|
||||
(pt 280 120)
|
||||
(pt 288 120)
|
||||
)
|
||||
(connector
|
||||
(pt 728 152)
|
||||
(pt 712 152)
|
||||
)
|
||||
(connector
|
||||
(pt 648 160)
|
||||
(pt 640 160)
|
||||
)
|
||||
(connector
|
||||
(pt 536 120)
|
||||
(pt 536 144)
|
||||
)
|
||||
(connector
|
||||
(pt 536 144)
|
||||
(pt 536 160)
|
||||
)
|
||||
(connector
|
||||
(pt 264 64)
|
||||
(pt 264 120)
|
||||
)
|
||||
(connector
|
||||
(pt 640 56)
|
||||
(pt 624 56)
|
||||
)
|
||||
(connector
|
||||
(pt 640 160)
|
||||
(pt 640 56)
|
||||
)
|
||||
(connector
|
||||
(pt 600 200)
|
||||
(pt 576 200)
|
||||
)
|
||||
(connector
|
||||
(pt 576 200)
|
||||
(pt 576 144)
|
||||
)
|
||||
(connector
|
||||
(pt 536 144)
|
||||
(pt 576 144)
|
||||
)
|
||||
(connector
|
||||
(pt 576 144)
|
||||
(pt 648 144)
|
||||
)
|
||||
(junction (pt 368 112))
|
||||
(junction (pt 536 144))
|
||||
(junction (pt 280 120))
|
||||
(junction (pt 576 144))
|
||||
@@ -0,0 +1,30 @@
|
||||
# -------------------------------------------------------------------------- #
|
||||
#
|
||||
# Copyright (C) 1991-2012 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.
|
||||
#
|
||||
# -------------------------------------------------------------------------- #
|
||||
#
|
||||
# Quartus II 64-Bit
|
||||
# Version 12.1 Build 177 11/07/2012 SJ Web Edition
|
||||
# Date created = 23:14:59 December 28, 2015
|
||||
#
|
||||
# -------------------------------------------------------------------------- #
|
||||
|
||||
QUARTUS_VERSION = "12.1"
|
||||
DATE = "23:14:59 December 28, 2015"
|
||||
|
||||
# Revisions
|
||||
|
||||
PROJECT_REVISION = "CPU"
|
||||
@@ -0,0 +1,89 @@
|
||||
# -------------------------------------------------------------------------- #
|
||||
#
|
||||
# Copyright (C) 1991-2012 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.
|
||||
#
|
||||
# -------------------------------------------------------------------------- #
|
||||
#
|
||||
# Quartus II 64-Bit
|
||||
# Version 12.1 Build 177 11/07/2012 SJ Web Edition
|
||||
# Date created = 23:14:59 December 28, 2015
|
||||
#
|
||||
# -------------------------------------------------------------------------- #
|
||||
#
|
||||
# Notes:
|
||||
#
|
||||
# 1) The default values for assignments are stored in the file:
|
||||
# CPU_assignment_defaults.qdf
|
||||
# If this file doesn't exist, see file:
|
||||
# assignment_defaults.qdf
|
||||
#
|
||||
# 2) Altera recommends that you do not modify this file. This
|
||||
# file is updated automatically by the Quartus II software
|
||||
# and any changes you make may be lost or overwritten.
|
||||
#
|
||||
# -------------------------------------------------------------------------- #
|
||||
|
||||
|
||||
set_global_assignment -name FAMILY "Cyclone II"
|
||||
set_global_assignment -name DEVICE EP2C20F484C7
|
||||
set_global_assignment -name TOP_LEVEL_ENTITY CPU_Main
|
||||
set_global_assignment -name ORIGINAL_QUARTUS_VERSION 12.1
|
||||
set_global_assignment -name PROJECT_CREATION_TIME_DATE "23:14:59 DECEMBER 28, 2015"
|
||||
set_global_assignment -name LAST_QUARTUS_VERSION 12.1
|
||||
set_global_assignment -name PROJECT_OUTPUT_DIRECTORY output_files
|
||||
set_global_assignment -name MIN_CORE_JUNCTION_TEMP 0
|
||||
set_global_assignment -name MAX_CORE_JUNCTION_TEMP 85
|
||||
set_global_assignment -name ERROR_CHECK_FREQUENCY_DIVISOR 1
|
||||
set_global_assignment -name STRATIX_DEVICE_IO_STANDARD "3.3-V LVTTL"
|
||||
set_global_assignment -name PARTITION_NETLIST_TYPE SOURCE -section_id Top
|
||||
set_global_assignment -name PARTITION_FITTER_PRESERVATION_LEVEL PLACEMENT_AND_ROUTING -section_id Top
|
||||
set_global_assignment -name PARTITION_COLOR 16764057 -section_id Top
|
||||
set_location_assignment PIN_L22 -to Data[0]
|
||||
set_location_assignment PIN_L21 -to Data[1]
|
||||
set_location_assignment PIN_M2 -to Data[7]
|
||||
set_location_assignment PIN_U11 -to Data[6]
|
||||
set_location_assignment PIN_U12 -to Data[5]
|
||||
set_location_assignment PIN_W12 -to Data[4]
|
||||
set_location_assignment PIN_V12 -to Data[3]
|
||||
set_location_assignment PIN_M22 -to Data[2]
|
||||
set_location_assignment PIN_R22 -to Set
|
||||
set_location_assignment PIN_Y21 -to SavedData[7]
|
||||
set_location_assignment PIN_Y22 -to SavedData[6]
|
||||
set_location_assignment PIN_W21 -to SavedData[5]
|
||||
set_location_assignment PIN_W22 -to SavedData[4]
|
||||
set_location_assignment PIN_V21 -to SavedData[3]
|
||||
set_location_assignment PIN_V22 -to SavedData[2]
|
||||
set_location_assignment PIN_U21 -to SavedData[1]
|
||||
set_location_assignment PIN_U22 -to SavedData[0]
|
||||
set_location_assignment PIN_R21 -to Enable
|
||||
set_global_assignment -name BDF_FILE Clk.bdf
|
||||
set_global_assignment -name BDF_FILE Enabler.bdf
|
||||
set_global_assignment -name BDF_FILE CPU.bdf
|
||||
set_global_assignment -name BDF_FILE CPU_Main.bdf
|
||||
set_global_assignment -name BDF_FILE 8bit_memory.bdf
|
||||
set_global_assignment -name QIP_FILE clockDevider.qip
|
||||
set_location_assignment PIN_L1 -to Clk_input
|
||||
set_location_assignment PIN_R20 -to pin_name1
|
||||
set_location_assignment PIN_R19 -to pin_name2
|
||||
set_location_assignment PIN_U19 -to pin_name3
|
||||
set_location_assignment PIN_Y19 -to pin_name4
|
||||
set_location_assignment PIN_T18 -to pin_name5
|
||||
set_location_assignment PIN_V19 -to pin_name6
|
||||
set_location_assignment PIN_Y18 -to pin_name7
|
||||
set_location_assignment PIN_U18 -to pin_name8
|
||||
set_global_assignment -name MIF_FILE ram1.mif
|
||||
set_global_assignment -name QIP_FILE ram1.qip
|
||||
set_global_assignment -name BDF_FILE "Memory Controller.bdf"
|
||||
set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top
|
||||
+735
@@ -0,0 +1,735 @@
|
||||
/*
|
||||
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-2012 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 "graphic" (version "1.4"))
|
||||
(pin
|
||||
(input)
|
||||
(rect 336 256 504 272)
|
||||
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
|
||||
(text "Set" (rect 5 0 21 12)(font "Arial" ))
|
||||
(pt 168 8)
|
||||
(drawing
|
||||
(line (pt 84 12)(pt 109 12))
|
||||
(line (pt 84 4)(pt 109 4))
|
||||
(line (pt 113 8)(pt 168 8))
|
||||
(line (pt 84 12)(pt 84 4))
|
||||
(line (pt 109 4)(pt 113 8))
|
||||
(line (pt 109 12)(pt 113 8))
|
||||
)
|
||||
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
|
||||
(annotation_block (location)(rect 280 272 336 288))
|
||||
)
|
||||
(pin
|
||||
(input)
|
||||
(rect 336 224 504 240)
|
||||
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
|
||||
(text "Enable" (rect 5 0 38 12)(font "Arial" ))
|
||||
(pt 168 8)
|
||||
(drawing
|
||||
(line (pt 84 12)(pt 109 12))
|
||||
(line (pt 84 4)(pt 109 4))
|
||||
(line (pt 113 8)(pt 168 8))
|
||||
(line (pt 84 12)(pt 84 4))
|
||||
(line (pt 109 4)(pt 113 8))
|
||||
(line (pt 109 12)(pt 113 8))
|
||||
)
|
||||
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
|
||||
(annotation_block (location)(rect 280 240 336 256))
|
||||
)
|
||||
(pin
|
||||
(input)
|
||||
(rect -152 256 16 272)
|
||||
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
|
||||
(text "Clk_input" (rect 5 0 51 12)(font "Arial" ))
|
||||
(pt 168 8)
|
||||
(drawing
|
||||
(line (pt 84 12)(pt 109 12))
|
||||
(line (pt 84 4)(pt 109 4))
|
||||
(line (pt 113 8)(pt 168 8))
|
||||
(line (pt 84 12)(pt 84 4))
|
||||
(line (pt 109 4)(pt 113 8))
|
||||
(line (pt 109 12)(pt 113 8))
|
||||
)
|
||||
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
|
||||
(annotation_block (location)(rect -208 272 -152 288))
|
||||
)
|
||||
(pin
|
||||
(input)
|
||||
(rect 1008 192 1176 208)
|
||||
(text "INPUT" (rect 15 0 43 10)(font "Arial" (font_size 6)))
|
||||
(text "Data[7..0]" (rect 114 0 163 12)(font "Arial" ))
|
||||
(pt 0 8)
|
||||
(drawing
|
||||
(line (pt 84 12)(pt 59 12))
|
||||
(line (pt 84 4)(pt 59 4))
|
||||
(line (pt 55 8)(pt 0 8))
|
||||
(line (pt 84 12)(pt 84 4))
|
||||
(line (pt 59 4)(pt 55 8))
|
||||
(line (pt 59 12)(pt 55 8))
|
||||
)
|
||||
(flipy)
|
||||
(text "VCC" (rect 20 7 40 17)(font "Arial" (font_size 6)))
|
||||
(annotation_block (location)(rect 1143 216 1199 232))
|
||||
)
|
||||
(pin
|
||||
(output)
|
||||
(rect 1008 264 1185 280)
|
||||
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
||||
(text "SavedData[7..0]" (rect 90 0 171 12)(font "Arial" ))
|
||||
(pt 0 8)
|
||||
(drawing
|
||||
(line (pt 0 8)(pt 52 8))
|
||||
(line (pt 52 4)(pt 78 4))
|
||||
(line (pt 52 12)(pt 78 12))
|
||||
(line (pt 52 12)(pt 52 4))
|
||||
(line (pt 78 4)(pt 82 8))
|
||||
(line (pt 82 8)(pt 78 12))
|
||||
(line (pt 78 12)(pt 82 8))
|
||||
)
|
||||
(annotation_block (location)(rect 1136 280 1192 296))
|
||||
)
|
||||
(pin
|
||||
(output)
|
||||
(rect 192 472 368 488)
|
||||
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
||||
(text "pin_name1" (rect 90 0 143 12)(font "Arial" ))
|
||||
(pt 0 8)
|
||||
(drawing
|
||||
(line (pt 0 8)(pt 52 8))
|
||||
(line (pt 52 4)(pt 78 4))
|
||||
(line (pt 52 12)(pt 78 12))
|
||||
(line (pt 52 12)(pt 52 4))
|
||||
(line (pt 78 4)(pt 82 8))
|
||||
(line (pt 82 8)(pt 78 12))
|
||||
(line (pt 78 12)(pt 82 8))
|
||||
)
|
||||
(annotation_block (location)(rect 368 488 424 504))
|
||||
)
|
||||
(pin
|
||||
(output)
|
||||
(rect 192 488 368 504)
|
||||
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
||||
(text "pin_name2" (rect 90 0 143 12)(font "Arial" ))
|
||||
(pt 0 8)
|
||||
(drawing
|
||||
(line (pt 0 8)(pt 52 8))
|
||||
(line (pt 52 4)(pt 78 4))
|
||||
(line (pt 52 12)(pt 78 12))
|
||||
(line (pt 52 12)(pt 52 4))
|
||||
(line (pt 78 4)(pt 82 8))
|
||||
(line (pt 82 8)(pt 78 12))
|
||||
(line (pt 78 12)(pt 82 8))
|
||||
)
|
||||
(annotation_block (location)(rect 368 504 424 520))
|
||||
)
|
||||
(pin
|
||||
(output)
|
||||
(rect 192 504 368 520)
|
||||
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
||||
(text "pin_name3" (rect 90 0 143 12)(font "Arial" ))
|
||||
(pt 0 8)
|
||||
(drawing
|
||||
(line (pt 0 8)(pt 52 8))
|
||||
(line (pt 52 4)(pt 78 4))
|
||||
(line (pt 52 12)(pt 78 12))
|
||||
(line (pt 52 12)(pt 52 4))
|
||||
(line (pt 78 4)(pt 82 8))
|
||||
(line (pt 82 8)(pt 78 12))
|
||||
(line (pt 78 12)(pt 82 8))
|
||||
)
|
||||
(annotation_block (location)(rect 368 520 424 536))
|
||||
)
|
||||
(pin
|
||||
(output)
|
||||
(rect 192 520 368 536)
|
||||
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
||||
(text "pin_name4" (rect 90 0 143 12)(font "Arial" ))
|
||||
(pt 0 8)
|
||||
(drawing
|
||||
(line (pt 0 8)(pt 52 8))
|
||||
(line (pt 52 4)(pt 78 4))
|
||||
(line (pt 52 12)(pt 78 12))
|
||||
(line (pt 52 12)(pt 52 4))
|
||||
(line (pt 78 4)(pt 82 8))
|
||||
(line (pt 82 8)(pt 78 12))
|
||||
(line (pt 78 12)(pt 82 8))
|
||||
)
|
||||
(annotation_block (location)(rect 368 536 424 552))
|
||||
)
|
||||
(pin
|
||||
(output)
|
||||
(rect 192 536 368 552)
|
||||
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
||||
(text "pin_name5" (rect 90 0 143 12)(font "Arial" ))
|
||||
(pt 0 8)
|
||||
(drawing
|
||||
(line (pt 0 8)(pt 52 8))
|
||||
(line (pt 52 4)(pt 78 4))
|
||||
(line (pt 52 12)(pt 78 12))
|
||||
(line (pt 52 12)(pt 52 4))
|
||||
(line (pt 78 4)(pt 82 8))
|
||||
(line (pt 82 8)(pt 78 12))
|
||||
(line (pt 78 12)(pt 82 8))
|
||||
)
|
||||
(annotation_block (location)(rect 368 552 424 568))
|
||||
)
|
||||
(pin
|
||||
(output)
|
||||
(rect 192 552 368 568)
|
||||
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
||||
(text "pin_name6" (rect 90 0 143 12)(font "Arial" ))
|
||||
(pt 0 8)
|
||||
(drawing
|
||||
(line (pt 0 8)(pt 52 8))
|
||||
(line (pt 52 4)(pt 78 4))
|
||||
(line (pt 52 12)(pt 78 12))
|
||||
(line (pt 52 12)(pt 52 4))
|
||||
(line (pt 78 4)(pt 82 8))
|
||||
(line (pt 82 8)(pt 78 12))
|
||||
(line (pt 78 12)(pt 82 8))
|
||||
)
|
||||
(annotation_block (location)(rect 368 568 424 584))
|
||||
)
|
||||
(pin
|
||||
(output)
|
||||
(rect 192 568 368 584)
|
||||
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
||||
(text "pin_name7" (rect 90 0 143 12)(font "Arial" ))
|
||||
(pt 0 8)
|
||||
(drawing
|
||||
(line (pt 0 8)(pt 52 8))
|
||||
(line (pt 52 4)(pt 78 4))
|
||||
(line (pt 52 12)(pt 78 12))
|
||||
(line (pt 52 12)(pt 52 4))
|
||||
(line (pt 78 4)(pt 82 8))
|
||||
(line (pt 82 8)(pt 78 12))
|
||||
(line (pt 78 12)(pt 82 8))
|
||||
)
|
||||
(annotation_block (location)(rect 368 584 424 600))
|
||||
)
|
||||
(pin
|
||||
(output)
|
||||
(rect 192 584 368 600)
|
||||
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
||||
(text "pin_name8" (rect 90 0 143 12)(font "Arial" ))
|
||||
(pt 0 8)
|
||||
(drawing
|
||||
(line (pt 0 8)(pt 52 8))
|
||||
(line (pt 52 4)(pt 78 4))
|
||||
(line (pt 52 12)(pt 78 12))
|
||||
(line (pt 52 12)(pt 52 4))
|
||||
(line (pt 78 4)(pt 82 8))
|
||||
(line (pt 82 8)(pt 78 12))
|
||||
(line (pt 78 12)(pt 82 8))
|
||||
)
|
||||
(annotation_block (location)(rect 368 600 424 616))
|
||||
)
|
||||
(symbol
|
||||
(rect 528 248 576 280)
|
||||
(text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6)))
|
||||
(text "inst1" (rect 3 21 26 33)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 16)
|
||||
(input)
|
||||
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
||||
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 16)(pt 13 16))
|
||||
)
|
||||
(port
|
||||
(pt 48 16)
|
||||
(output)
|
||||
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
|
||||
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 39 16)(pt 48 16))
|
||||
)
|
||||
(drawing
|
||||
(line (pt 13 25)(pt 13 7))
|
||||
(line (pt 13 7)(pt 31 16))
|
||||
(line (pt 13 25)(pt 31 16))
|
||||
(circle (rect 31 12 39 20))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 528 216 576 248)
|
||||
(text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6)))
|
||||
(text "inst3" (rect 3 21 26 33)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 16)
|
||||
(input)
|
||||
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
||||
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 16)(pt 13 16))
|
||||
)
|
||||
(port
|
||||
(pt 48 16)
|
||||
(output)
|
||||
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
|
||||
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 39 16)(pt 48 16))
|
||||
)
|
||||
(drawing
|
||||
(line (pt 13 25)(pt 13 7))
|
||||
(line (pt 13 7)(pt 31 16))
|
||||
(line (pt 13 25)(pt 31 16))
|
||||
(circle (rect 31 12 39 20))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 32 232 168 328)
|
||||
(text "Clk" (rect 5 0 21 14)(font "Arial" (font_size 8)))
|
||||
(text "inst4" (rect 8 80 31 92)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "Clk_input" (rect 0 0 50 14)(font "Arial" (font_size 8)))
|
||||
(text "Clk_input" (rect 21 27 71 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 32)(pt 16 32))
|
||||
)
|
||||
(port
|
||||
(pt 136 32)
|
||||
(output)
|
||||
(text "Clk_e" (rect 0 0 30 14)(font "Arial" (font_size 8)))
|
||||
(text "Clk_e" (rect 85 27 115 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 136 32)(pt 120 32))
|
||||
)
|
||||
(port
|
||||
(pt 136 48)
|
||||
(output)
|
||||
(text "Clk_s" (rect 0 0 30 14)(font "Arial" (font_size 8)))
|
||||
(text "Clk_s" (rect 85 43 115 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 136 48)(pt 120 48))
|
||||
)
|
||||
(drawing
|
||||
(rectangle (rect 16 16 120 80))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect -160 456 -40 632)
|
||||
(text "74164" (rect 43 0 84 16)(font "Arial" (font_size 10)))
|
||||
(text "inst7" (rect 3 165 26 177)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 136)
|
||||
(input)
|
||||
(text "CLRN" (rect 22 128 53 142)(font "Arial" (font_size 8)))
|
||||
(text "CLRN" (rect 22 128 53 142)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 136)(pt 8 136))
|
||||
)
|
||||
(port
|
||||
(pt 0 152)
|
||||
(input)
|
||||
(text "CLK" (rect 22 144 45 158)(font "Arial" (font_size 8)))
|
||||
(text "CLK" (rect 22 144 45 158)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 152)(pt 16 152))
|
||||
)
|
||||
(port
|
||||
(pt 0 72)
|
||||
(input)
|
||||
(text "B" (rect 21 65 29 79)(font "Arial" (font_size 8)))
|
||||
(text "B" (rect 21 65 29 79)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 72)(pt 16 72))
|
||||
)
|
||||
(port
|
||||
(pt 0 56)
|
||||
(input)
|
||||
(text "A" (rect 21 49 30 63)(font "Arial" (font_size 8)))
|
||||
(text "A" (rect 21 49 30 63)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 56)(pt 16 56))
|
||||
)
|
||||
(port
|
||||
(pt 120 72)
|
||||
(output)
|
||||
(text "QD" (rect 85 64 102 78)(font "Arial" (font_size 8)))
|
||||
(text "QD" (rect 85 64 102 78)(font "Arial" (font_size 8)))
|
||||
(line (pt 104 72)(pt 120 72))
|
||||
)
|
||||
(port
|
||||
(pt 120 56)
|
||||
(output)
|
||||
(text "QC" (rect 85 48 102 62)(font "Arial" (font_size 8)))
|
||||
(text "QC" (rect 85 48 102 62)(font "Arial" (font_size 8)))
|
||||
(line (pt 104 56)(pt 120 56))
|
||||
)
|
||||
(port
|
||||
(pt 120 24)
|
||||
(output)
|
||||
(text "QA" (rect 85 17 103 31)(font "Arial" (font_size 8)))
|
||||
(text "QA" (rect 84 17 102 31)(font "Arial" (font_size 8)))
|
||||
(line (pt 104 24)(pt 120 24))
|
||||
)
|
||||
(port
|
||||
(pt 120 104)
|
||||
(output)
|
||||
(text "QF" (rect 86 97 102 111)(font "Arial" (font_size 8)))
|
||||
(text "QF" (rect 86 97 102 111)(font "Arial" (font_size 8)))
|
||||
(line (pt 104 104)(pt 120 104))
|
||||
)
|
||||
(port
|
||||
(pt 120 136)
|
||||
(output)
|
||||
(text "QH" (rect 85 129 102 143)(font "Arial" (font_size 8)))
|
||||
(text "QH" (rect 85 129 102 143)(font "Arial" (font_size 8)))
|
||||
(line (pt 104 136)(pt 120 136))
|
||||
)
|
||||
(port
|
||||
(pt 120 120)
|
||||
(output)
|
||||
(text "QG" (rect 85 113 103 127)(font "Arial" (font_size 8)))
|
||||
(text "QG" (rect 84 113 102 127)(font "Arial" (font_size 8)))
|
||||
(line (pt 104 120)(pt 120 120))
|
||||
)
|
||||
(port
|
||||
(pt 120 88)
|
||||
(output)
|
||||
(text "QE" (rect 85 80 101 94)(font "Arial" (font_size 8)))
|
||||
(text "QE" (rect 86 80 102 94)(font "Arial" (font_size 8)))
|
||||
(line (pt 104 88)(pt 120 88))
|
||||
)
|
||||
(port
|
||||
(pt 120 40)
|
||||
(output)
|
||||
(text "QB" (rect 85 32 102 46)(font "Arial" (font_size 8)))
|
||||
(text "QB" (rect 85 32 102 46)(font "Arial" (font_size 8)))
|
||||
(line (pt 104 40)(pt 120 40))
|
||||
)
|
||||
(drawing
|
||||
(text "SHIFT REG." (rect 35 161 99 175)(font "Arial" (font_size 8)))
|
||||
(line (pt 16 16)(pt 104 16))
|
||||
(line (pt 16 160)(pt 16 16))
|
||||
(line (pt 16 160)(pt 104 160))
|
||||
(line (pt 104 160)(pt 104 16))
|
||||
(circle (rect 8 132 16 140))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect -120 384 -72 416)
|
||||
(text "NOT" (rect 27 0 47 10)(font "Arial" (font_size 6)))
|
||||
(text "inst8" (rect 22 21 45 33)(font "Arial" ))
|
||||
(port
|
||||
(pt 48 16)
|
||||
(input)
|
||||
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
||||
(text "IN" (rect 35 7 46 19)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 48 16)(pt 35 16))
|
||||
)
|
||||
(port
|
||||
(pt 0 16)
|
||||
(output)
|
||||
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
|
||||
(text "OUT" (rect -1 7 16 19)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 9 16)(pt 0 16))
|
||||
)
|
||||
(drawing
|
||||
(line (pt 35 25)(pt 35 7))
|
||||
(line (pt 35 7)(pt 17 16))
|
||||
(line (pt 35 25)(pt 17 16))
|
||||
(circle (rect 9 12 17 20))
|
||||
)
|
||||
(flipy)
|
||||
)
|
||||
(symbol
|
||||
(rect -192 568 -160 584)
|
||||
(text "VCC" (rect 7 0 27 10)(font "Arial" (font_size 6)))
|
||||
(text "inst9" (rect 3 5 26 17)(font "Arial" )(invisible))
|
||||
(port
|
||||
(pt 16 16)
|
||||
(output)
|
||||
(text "1" (rect 19 7 24 19)(font "Courier New" (bold))(invisible))
|
||||
(text "1" (rect 19 7 24 19)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 16 16)(pt 16 8))
|
||||
)
|
||||
(drawing
|
||||
(line (pt 8 8)(pt 24 8))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 56 328 120 472)
|
||||
(text "OR8" (rect 45 0 63 10)(font "Arial" (font_size 6)))
|
||||
(text "inst10" (rect 44 133 73 145)(font "Arial" ))
|
||||
(port
|
||||
(pt 64 16)
|
||||
(input)
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(text "IN1" (rect 45 7 62 19)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 64 16)(pt 50 16))
|
||||
)
|
||||
(port
|
||||
(pt 64 48)
|
||||
(input)
|
||||
(text "IN3" (rect 2 39 19 51)(font "Courier New" (bold))(invisible))
|
||||
(text "IN3" (rect 45 39 62 51)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 64 48)(pt 50 48))
|
||||
)
|
||||
(port
|
||||
(pt 64 32)
|
||||
(input)
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(text "IN2" (rect 45 23 62 35)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 64 32)(pt 50 32))
|
||||
)
|
||||
(port
|
||||
(pt 64 64)
|
||||
(input)
|
||||
(text "IN4" (rect 2 55 19 67)(font "Courier New" (bold))(invisible))
|
||||
(text "IN4" (rect 45 55 62 67)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 64 64)(pt 48 64))
|
||||
)
|
||||
(port
|
||||
(pt 64 96)
|
||||
(input)
|
||||
(text "IN6" (rect 2 87 19 99)(font "Courier New" (bold))(invisible))
|
||||
(text "IN6" (rect 45 87 62 99)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 64 96)(pt 50 96))
|
||||
)
|
||||
(port
|
||||
(pt 64 80)
|
||||
(input)
|
||||
(text "IN5" (rect 2 71 19 83)(font "Courier New" (bold))(invisible))
|
||||
(text "IN5" (rect 45 71 62 83)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 64 80)(pt 48 80))
|
||||
)
|
||||
(port
|
||||
(pt 64 112)
|
||||
(input)
|
||||
(text "IN7" (rect 2 103 19 115)(font "Courier New" (bold))(invisible))
|
||||
(text "IN7" (rect 45 103 62 115)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 64 112)(pt 50 112))
|
||||
)
|
||||
(port
|
||||
(pt 64 128)
|
||||
(input)
|
||||
(text "IN8" (rect 2 119 19 131)(font "Courier New" (bold))(invisible))
|
||||
(text "IN8" (rect 45 119 62 131)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 64 128)(pt 50 128))
|
||||
)
|
||||
(port
|
||||
(pt 0 72)
|
||||
(output)
|
||||
(text "OUT" (rect 48 63 65 75)(font "Courier New" (bold))(invisible))
|
||||
(text "OUT" (rect -1 63 16 75)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 16 72)(pt 0 72))
|
||||
)
|
||||
(drawing
|
||||
(line (pt 50 131)(pt 50 83))
|
||||
(line (pt 50 84)(pt 39 84))
|
||||
(line (pt 50 61)(pt 39 61))
|
||||
(line (pt 50 61)(pt 50 13))
|
||||
(arc (pt 15 72)(pt 39 83)(rect 7 21 70 84))
|
||||
(arc (pt 39 61)(pt 15 72)(rect 7 61 70 124))
|
||||
(arc (pt 57 67)(pt 57 77)(rect 45 56 78 89))
|
||||
)
|
||||
(flipy)
|
||||
)
|
||||
(connector
|
||||
(pt -160 528)
|
||||
(pt -192 528)
|
||||
)
|
||||
(connector
|
||||
(pt -160 512)
|
||||
(pt -192 512)
|
||||
)
|
||||
(connector
|
||||
(pt -160 608)
|
||||
(pt -192 608)
|
||||
)
|
||||
(connector
|
||||
(pt -192 608)
|
||||
(pt -192 648)
|
||||
)
|
||||
(connector
|
||||
(pt -176 592)
|
||||
(pt -176 584)
|
||||
)
|
||||
(connector
|
||||
(pt -160 592)
|
||||
(pt -176 592)
|
||||
)
|
||||
(connector
|
||||
(pt 184 480)
|
||||
(pt 184 344)
|
||||
)
|
||||
(connector
|
||||
(pt 176 496)
|
||||
(pt 176 360)
|
||||
)
|
||||
(connector
|
||||
(pt 168 512)
|
||||
(pt 168 376)
|
||||
)
|
||||
(connector
|
||||
(pt 160 528)
|
||||
(pt 160 392)
|
||||
)
|
||||
(connector
|
||||
(pt 152 544)
|
||||
(pt 152 408)
|
||||
)
|
||||
(connector
|
||||
(pt 144 560)
|
||||
(pt 144 424)
|
||||
)
|
||||
(connector
|
||||
(pt -192 400)
|
||||
(pt -120 400)
|
||||
)
|
||||
(connector
|
||||
(pt -192 400)
|
||||
(pt -192 512)
|
||||
)
|
||||
(connector
|
||||
(pt -192 512)
|
||||
(pt -192 528)
|
||||
)
|
||||
(connector
|
||||
(pt 160 528)
|
||||
(pt 192 528)
|
||||
)
|
||||
(connector
|
||||
(pt 168 512)
|
||||
(pt 192 512)
|
||||
)
|
||||
(connector
|
||||
(pt 184 480)
|
||||
(pt 192 480)
|
||||
)
|
||||
(connector
|
||||
(pt 144 560)
|
||||
(pt 192 560)
|
||||
)
|
||||
(connector
|
||||
(pt 136 576)
|
||||
(pt 192 576)
|
||||
)
|
||||
(connector
|
||||
(pt 152 544)
|
||||
(pt 192 544)
|
||||
)
|
||||
(connector
|
||||
(pt 176 496)
|
||||
(pt 192 496)
|
||||
)
|
||||
(connector
|
||||
(pt 136 440)
|
||||
(pt 136 456)
|
||||
)
|
||||
(connector
|
||||
(pt 136 456)
|
||||
(pt 136 576)
|
||||
)
|
||||
(connector
|
||||
(pt -40 528)
|
||||
(pt 160 528)
|
||||
)
|
||||
(connector
|
||||
(pt -40 512)
|
||||
(pt 168 512)
|
||||
)
|
||||
(connector
|
||||
(pt -40 480)
|
||||
(pt 184 480)
|
||||
)
|
||||
(connector
|
||||
(pt -40 560)
|
||||
(pt 144 560)
|
||||
)
|
||||
(connector
|
||||
(pt -40 592)
|
||||
(pt 192 592)
|
||||
)
|
||||
(connector
|
||||
(pt -40 576)
|
||||
(pt 136 576)
|
||||
)
|
||||
(connector
|
||||
(pt -40 544)
|
||||
(pt 152 544)
|
||||
)
|
||||
(connector
|
||||
(pt -40 496)
|
||||
(pt 176 496)
|
||||
)
|
||||
(connector
|
||||
(pt -72 400)
|
||||
(pt 56 400)
|
||||
)
|
||||
(connector
|
||||
(pt 120 344)
|
||||
(pt 184 344)
|
||||
)
|
||||
(connector
|
||||
(pt 120 376)
|
||||
(pt 168 376)
|
||||
)
|
||||
(connector
|
||||
(pt 120 360)
|
||||
(pt 176 360)
|
||||
)
|
||||
(connector
|
||||
(pt 120 392)
|
||||
(pt 160 392)
|
||||
)
|
||||
(connector
|
||||
(pt 120 424)
|
||||
(pt 144 424)
|
||||
)
|
||||
(connector
|
||||
(pt 120 408)
|
||||
(pt 152 408)
|
||||
)
|
||||
(connector
|
||||
(pt 120 440)
|
||||
(pt 136 440)
|
||||
)
|
||||
(connector
|
||||
(pt 120 456)
|
||||
(pt 136 456)
|
||||
)
|
||||
(connector
|
||||
(pt 16 264)
|
||||
(pt 32 264)
|
||||
)
|
||||
(connector
|
||||
(pt -192 648)
|
||||
(pt 232 648)
|
||||
)
|
||||
(connector
|
||||
(pt 168 280)
|
||||
(pt 232 280)
|
||||
)
|
||||
(connector
|
||||
(pt 232 648)
|
||||
(pt 232 280)
|
||||
)
|
||||
(connector
|
||||
(pt 504 232)
|
||||
(pt 528 232)
|
||||
)
|
||||
(connector
|
||||
(pt 504 264)
|
||||
(pt 528 264)
|
||||
)
|
||||
(junction (pt -192 512))
|
||||
(junction (pt 160 528))
|
||||
(junction (pt 168 512))
|
||||
(junction (pt 184 480))
|
||||
(junction (pt 144 560))
|
||||
(junction (pt 152 544))
|
||||
(junction (pt 176 496))
|
||||
(junction (pt 136 576))
|
||||
(junction (pt 136 456))
|
||||
@@ -0,0 +1,265 @@
|
||||
/*
|
||||
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-2012 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 "graphic" (version "1.4"))
|
||||
(pin
|
||||
(input)
|
||||
(rect 64 176 232 192)
|
||||
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
|
||||
(text "Clk_input" (rect 5 0 51 12)(font "Arial" ))
|
||||
(pt 168 8)
|
||||
(drawing
|
||||
(line (pt 84 12)(pt 109 12))
|
||||
(line (pt 84 4)(pt 109 4))
|
||||
(line (pt 113 8)(pt 168 8))
|
||||
(line (pt 84 12)(pt 84 4))
|
||||
(line (pt 109 4)(pt 113 8))
|
||||
(line (pt 109 12)(pt 113 8))
|
||||
)
|
||||
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
|
||||
)
|
||||
(pin
|
||||
(output)
|
||||
(rect 584 160 760 176)
|
||||
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
||||
(text "Clk_e" (rect 90 0 118 12)(font "Arial" ))
|
||||
(pt 0 8)
|
||||
(drawing
|
||||
(line (pt 0 8)(pt 52 8))
|
||||
(line (pt 52 4)(pt 78 4))
|
||||
(line (pt 52 12)(pt 78 12))
|
||||
(line (pt 52 12)(pt 52 4))
|
||||
(line (pt 78 4)(pt 82 8))
|
||||
(line (pt 82 8)(pt 78 12))
|
||||
(line (pt 78 12)(pt 82 8))
|
||||
)
|
||||
)
|
||||
(pin
|
||||
(output)
|
||||
(rect 584 232 760 248)
|
||||
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
||||
(text "Clk_s" (rect 90 0 118 12)(font "Arial" ))
|
||||
(pt 0 8)
|
||||
(drawing
|
||||
(line (pt 0 8)(pt 52 8))
|
||||
(line (pt 52 4)(pt 78 4))
|
||||
(line (pt 52 12)(pt 78 12))
|
||||
(line (pt 52 12)(pt 52 4))
|
||||
(line (pt 78 4)(pt 82 8))
|
||||
(line (pt 82 8)(pt 78 12))
|
||||
(line (pt 78 12)(pt 82 8))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 240 152 384 216)
|
||||
(text "clockDevider" (rect 37 0 123 16)(font "Arial" (font_size 10)))
|
||||
(text "inst" (rect 8 48 25 60)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8)))
|
||||
(text "clock" (rect 26 25 55 39)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 32)(pt 16 32))
|
||||
)
|
||||
(port
|
||||
(pt 144 40)
|
||||
(output)
|
||||
(text "q[25..0]" (rect 0 0 42 14)(font "Arial" (font_size 8)))
|
||||
(text "q[25..0]" (rect 89 33 131 47)(font "Arial" (font_size 8)))
|
||||
(line (pt 144 40)(pt 128 40)(line_width 3))
|
||||
)
|
||||
(drawing
|
||||
(text "up counter" (rect 84 22 135 34)(font "Arial" ))
|
||||
(line (pt 16 16)(pt 16 48))
|
||||
(line (pt 16 16)(pt 128 16))
|
||||
(line (pt 16 48)(pt 128 48))
|
||||
(line (pt 128 16)(pt 128 48))
|
||||
(line (pt 0 0)(pt 146 0))
|
||||
(line (pt 146 0)(pt 146 66))
|
||||
(line (pt 0 66)(pt 146 66))
|
||||
(line (pt 0 0)(pt 0 66))
|
||||
(line (pt 16 26)(pt 22 32))
|
||||
(line (pt 22 32)(pt 16 38))
|
||||
(line (pt 0 0)(pt 0 0))
|
||||
(line (pt 0 0)(pt 0 0))
|
||||
(line (pt 0 0)(pt 0 0))
|
||||
(line (pt 0 0)(pt 0 0))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 504 160 568 208)
|
||||
(text "OR2" (rect 1 0 19 10)(font "Arial" (font_size 6)))
|
||||
(text "inst1" (rect 3 37 26 49)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 32)(pt 15 32))
|
||||
)
|
||||
(port
|
||||
(pt 0 16)
|
||||
(input)
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 16)(pt 15 16))
|
||||
)
|
||||
(port
|
||||
(pt 64 24)
|
||||
(output)
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 48 24)(pt 64 24))
|
||||
)
|
||||
(drawing
|
||||
(line (pt 14 36)(pt 25 36))
|
||||
(line (pt 14 13)(pt 25 13))
|
||||
(arc (pt 7 29)(pt 7 19)(rect -14 8 19 41))
|
||||
(arc (pt 49 24)(pt 25 13)(rect -6 13 57 76))
|
||||
(arc (pt 25 35)(pt 49 24)(rect -6 -27 57 36))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 504 224 568 272)
|
||||
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
||||
(text "inst2" (rect 3 37 26 49)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 16)
|
||||
(input)
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 16)(pt 14 16))
|
||||
)
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 32)(pt 14 32))
|
||||
)
|
||||
(port
|
||||
(pt 64 24)
|
||||
(output)
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 42 24)(pt 64 24))
|
||||
)
|
||||
(drawing
|
||||
(line (pt 14 12)(pt 30 12))
|
||||
(line (pt 14 37)(pt 31 37))
|
||||
(line (pt 14 12)(pt 14 37))
|
||||
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 440 240 488 272)
|
||||
(text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6)))
|
||||
(text "inst3" (rect 3 21 26 33)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 16)
|
||||
(input)
|
||||
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
||||
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 16)(pt 13 16))
|
||||
)
|
||||
(port
|
||||
(pt 48 16)
|
||||
(output)
|
||||
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
|
||||
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 39 16)(pt 48 16))
|
||||
)
|
||||
(drawing
|
||||
(line (pt 13 25)(pt 13 7))
|
||||
(line (pt 13 7)(pt 31 16))
|
||||
(line (pt 13 25)(pt 31 16))
|
||||
(circle (rect 31 12 39 20))
|
||||
)
|
||||
)
|
||||
(connector
|
||||
(pt 384 192)
|
||||
(pt 400 192)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 240 184)
|
||||
(pt 232 184)
|
||||
)
|
||||
(connector
|
||||
(pt 568 240)
|
||||
(pt 568 248)
|
||||
)
|
||||
(connector
|
||||
(pt 584 168)
|
||||
(pt 576 168)
|
||||
)
|
||||
(connector
|
||||
(pt 576 168)
|
||||
(pt 576 184)
|
||||
)
|
||||
(connector
|
||||
(pt 576 184)
|
||||
(pt 568 184)
|
||||
)
|
||||
(connector
|
||||
(pt 400 192)
|
||||
(pt 400 176)
|
||||
)
|
||||
(connector
|
||||
(pt 568 240)
|
||||
(pt 584 240)
|
||||
)
|
||||
(connector
|
||||
(text "clk[23]" (rect 464 160 497 172)(font "Arial" ))
|
||||
(pt 400 176)
|
||||
(pt 504 176)
|
||||
)
|
||||
(connector
|
||||
(text "clk[24]" (rect 462 176 495 188)(font "Arial" ))
|
||||
(pt 400 192)
|
||||
(pt 504 192)
|
||||
)
|
||||
(connector
|
||||
(text "clk[24]" (rect 458 224 491 236)(font "Arial" ))
|
||||
(pt 400 240)
|
||||
(pt 504 240)
|
||||
)
|
||||
(connector
|
||||
(pt 504 256)
|
||||
(pt 488 256)
|
||||
)
|
||||
(connector
|
||||
(text "Clk[25..0]" (rect 376 207 388 255)(font "Arial" )(vertical))
|
||||
(pt 400 192)
|
||||
(pt 400 240)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 400 240)
|
||||
(pt 400 256)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(text "clk[23]" (rect 400 264 433 276)(font "Arial" ))
|
||||
(pt 400 256)
|
||||
(pt 440 256)
|
||||
)
|
||||
(junction (pt 400 192))
|
||||
(junction (pt 400 240))
|
||||
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
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-2012 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.2"))
|
||||
(symbol
|
||||
(rect 16 16 152 112)
|
||||
(text "Clk" (rect 5 0 21 14)(font "Arial" (font_size 8)))
|
||||
(text "inst" (rect 8 80 25 92)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "Clk_input" (rect 0 0 50 14)(font "Arial" (font_size 8)))
|
||||
(text "Clk_input" (rect 21 27 71 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 32)(pt 16 32))
|
||||
)
|
||||
(port
|
||||
(pt 136 32)
|
||||
(output)
|
||||
(text "Clk_e" (rect 0 0 30 14)(font "Arial" (font_size 8)))
|
||||
(text "Clk_e" (rect 85 27 115 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 136 32)(pt 120 32))
|
||||
)
|
||||
(port
|
||||
(pt 136 48)
|
||||
(output)
|
||||
(text "Clk_s" (rect 0 0 30 14)(font "Arial" (font_size 8)))
|
||||
(text "Clk_s" (rect 85 43 115 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 136 48)(pt 120 48))
|
||||
)
|
||||
(drawing
|
||||
(rectangle (rect 16 16 120 80))
|
||||
)
|
||||
)
|
||||
+581
@@ -0,0 +1,581 @@
|
||||
/*
|
||||
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-2012 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 "graphic" (version "1.4"))
|
||||
(pin
|
||||
(input)
|
||||
(rect 8 72 176 88)
|
||||
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
|
||||
(text "Enable" (rect 5 0 38 12)(font "Arial" ))
|
||||
(pt 168 8)
|
||||
(drawing
|
||||
(line (pt 84 12)(pt 109 12))
|
||||
(line (pt 84 4)(pt 109 4))
|
||||
(line (pt 113 8)(pt 168 8))
|
||||
(line (pt 84 12)(pt 84 4))
|
||||
(line (pt 109 4)(pt 113 8))
|
||||
(line (pt 109 12)(pt 113 8))
|
||||
)
|
||||
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
|
||||
(annotation_block (location)(rect -48 88 8 104))
|
||||
)
|
||||
(pin
|
||||
(bidir)
|
||||
(rect -8 104 168 120)
|
||||
(text "BIDIR" (rect 151 0 175 10)(font "Arial" (font_size 6)))
|
||||
(text "Data[7..0]" (rect 5 0 55 12)(font "Arial" ))
|
||||
(pt 176 8)
|
||||
(drawing
|
||||
(line (pt 120 4)(pt 98 4))
|
||||
(line (pt 176 8)(pt 124 8))
|
||||
(line (pt 120 12)(pt 98 12))
|
||||
(line (pt 98 4)(pt 94 8))
|
||||
(line (pt 98 12)(pt 94 8))
|
||||
(line (pt 120 4)(pt 124 8))
|
||||
(line (pt 124 8)(pt 120 12))
|
||||
)
|
||||
(flipy)
|
||||
(text "VCC" (rect 152 7 172 17)(font "Arial" (font_size 6)))
|
||||
(annotation_block (location)(rect 168 120 224 136))
|
||||
)
|
||||
(pin
|
||||
(bidir)
|
||||
(rect 416 96 592 112)
|
||||
(text "BIDIR" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
||||
(text "Out[7..0]" (rect 90 0 133 12)(font "Arial" ))
|
||||
(pt 0 8)
|
||||
(drawing
|
||||
(line (pt 56 4)(pt 78 4))
|
||||
(line (pt 0 8)(pt 52 8))
|
||||
(line (pt 56 12)(pt 78 12))
|
||||
(line (pt 78 4)(pt 82 8))
|
||||
(line (pt 78 12)(pt 82 8))
|
||||
(line (pt 56 4)(pt 52 8))
|
||||
(line (pt 52 8)(pt 56 12))
|
||||
)
|
||||
(text "VCC" (rect 4 7 24 17)(font "Arial" (font_size 6)))
|
||||
)
|
||||
(symbol
|
||||
(rect 216 80 280 128)
|
||||
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
||||
(text "inst" (rect 3 37 20 49)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 16)
|
||||
(input)
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 16)(pt 14 16))
|
||||
)
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 32)(pt 14 32))
|
||||
)
|
||||
(port
|
||||
(pt 64 24)
|
||||
(output)
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 42 24)(pt 64 24))
|
||||
)
|
||||
(drawing
|
||||
(line (pt 14 12)(pt 30 12))
|
||||
(line (pt 14 37)(pt 31 37))
|
||||
(line (pt 14 12)(pt 14 37))
|
||||
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 216 176 280 224)
|
||||
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
||||
(text "inst1" (rect 3 37 26 49)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 16)
|
||||
(input)
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 16)(pt 14 16))
|
||||
)
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 32)(pt 14 32))
|
||||
)
|
||||
(port
|
||||
(pt 64 24)
|
||||
(output)
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 42 24)(pt 64 24))
|
||||
)
|
||||
(drawing
|
||||
(line (pt 14 12)(pt 30 12))
|
||||
(line (pt 14 37)(pt 31 37))
|
||||
(line (pt 14 12)(pt 14 37))
|
||||
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 216 272 280 320)
|
||||
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
||||
(text "inst2" (rect 3 37 26 49)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 16)
|
||||
(input)
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 16)(pt 14 16))
|
||||
)
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 32)(pt 14 32))
|
||||
)
|
||||
(port
|
||||
(pt 64 24)
|
||||
(output)
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 42 24)(pt 64 24))
|
||||
)
|
||||
(drawing
|
||||
(line (pt 14 12)(pt 30 12))
|
||||
(line (pt 14 37)(pt 31 37))
|
||||
(line (pt 14 12)(pt 14 37))
|
||||
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 216 368 280 416)
|
||||
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
||||
(text "inst3" (rect 3 37 26 49)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 16)
|
||||
(input)
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 16)(pt 14 16))
|
||||
)
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 32)(pt 14 32))
|
||||
)
|
||||
(port
|
||||
(pt 64 24)
|
||||
(output)
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 42 24)(pt 64 24))
|
||||
)
|
||||
(drawing
|
||||
(line (pt 14 12)(pt 30 12))
|
||||
(line (pt 14 37)(pt 31 37))
|
||||
(line (pt 14 12)(pt 14 37))
|
||||
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 216 464 280 512)
|
||||
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
||||
(text "inst4" (rect 3 37 26 49)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 16)
|
||||
(input)
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 16)(pt 14 16))
|
||||
)
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 32)(pt 14 32))
|
||||
)
|
||||
(port
|
||||
(pt 64 24)
|
||||
(output)
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 42 24)(pt 64 24))
|
||||
)
|
||||
(drawing
|
||||
(line (pt 14 12)(pt 30 12))
|
||||
(line (pt 14 37)(pt 31 37))
|
||||
(line (pt 14 12)(pt 14 37))
|
||||
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 216 560 280 608)
|
||||
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
||||
(text "inst5" (rect 3 37 26 49)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 16)
|
||||
(input)
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 16)(pt 14 16))
|
||||
)
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 32)(pt 14 32))
|
||||
)
|
||||
(port
|
||||
(pt 64 24)
|
||||
(output)
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 42 24)(pt 64 24))
|
||||
)
|
||||
(drawing
|
||||
(line (pt 14 12)(pt 30 12))
|
||||
(line (pt 14 37)(pt 31 37))
|
||||
(line (pt 14 12)(pt 14 37))
|
||||
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 216 656 280 704)
|
||||
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
||||
(text "inst6" (rect 3 37 26 49)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 16)
|
||||
(input)
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 16)(pt 14 16))
|
||||
)
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 32)(pt 14 32))
|
||||
)
|
||||
(port
|
||||
(pt 64 24)
|
||||
(output)
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 42 24)(pt 64 24))
|
||||
)
|
||||
(drawing
|
||||
(line (pt 14 12)(pt 30 12))
|
||||
(line (pt 14 37)(pt 31 37))
|
||||
(line (pt 14 12)(pt 14 37))
|
||||
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 216 752 280 800)
|
||||
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
||||
(text "inst7" (rect 3 37 26 49)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 16)
|
||||
(input)
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 16)(pt 14 16))
|
||||
)
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 0 32)(pt 14 32))
|
||||
)
|
||||
(port
|
||||
(pt 64 24)
|
||||
(output)
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
||||
(line (pt 42 24)(pt 64 24))
|
||||
)
|
||||
(drawing
|
||||
(line (pt 14 12)(pt 30 12))
|
||||
(line (pt 14 37)(pt 31 37))
|
||||
(line (pt 14 12)(pt 14 37))
|
||||
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37))
|
||||
)
|
||||
)
|
||||
(connector
|
||||
(text "Data[0]" (rect 197 96 233 108)(font "Arial" ))
|
||||
(pt 216 112)
|
||||
(pt 184 112)
|
||||
)
|
||||
(connector
|
||||
(text "Data[1]" (rect 190 192 226 204)(font "Arial" ))
|
||||
(pt 216 208)
|
||||
(pt 184 208)
|
||||
)
|
||||
(connector
|
||||
(text "Data[2]" (rect 192 288 228 300)(font "Arial" ))
|
||||
(pt 216 304)
|
||||
(pt 184 304)
|
||||
)
|
||||
(connector
|
||||
(text "Data[3]" (rect 194 384 230 396)(font "Arial" ))
|
||||
(pt 216 400)
|
||||
(pt 184 400)
|
||||
)
|
||||
(connector
|
||||
(text "Data[4]" (rect 194 480 230 492)(font "Arial" ))
|
||||
(pt 216 496)
|
||||
(pt 184 496)
|
||||
)
|
||||
(connector
|
||||
(text "Data[5]" (rect 190 576 226 588)(font "Arial" ))
|
||||
(pt 216 592)
|
||||
(pt 184 592)
|
||||
)
|
||||
(connector
|
||||
(text "Data[6]" (rect 195 672 231 684)(font "Arial" ))
|
||||
(pt 216 688)
|
||||
(pt 184 688)
|
||||
)
|
||||
(connector
|
||||
(text "Data[7]" (rect 200 768 236 780)(font "Arial" ))
|
||||
(pt 216 784)
|
||||
(pt 184 784)
|
||||
)
|
||||
(connector
|
||||
(pt 176 80)
|
||||
(pt 208 80)
|
||||
)
|
||||
(connector
|
||||
(pt 184 208)
|
||||
(pt 184 304)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 184 304)
|
||||
(pt 184 400)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 184 400)
|
||||
(pt 184 496)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 184 496)
|
||||
(pt 184 592)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 184 592)
|
||||
(pt 184 688)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(text "Data[7..0]" (rect 169 725 181 774)(font "Arial" )(vertical))
|
||||
(pt 184 688)
|
||||
(pt 184 784)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 208 768)
|
||||
(pt 216 768)
|
||||
)
|
||||
(connector
|
||||
(pt 208 96)
|
||||
(pt 216 96)
|
||||
)
|
||||
(connector
|
||||
(pt 208 192)
|
||||
(pt 216 192)
|
||||
)
|
||||
(connector
|
||||
(pt 208 288)
|
||||
(pt 216 288)
|
||||
)
|
||||
(connector
|
||||
(pt 208 384)
|
||||
(pt 216 384)
|
||||
)
|
||||
(connector
|
||||
(pt 208 480)
|
||||
(pt 216 480)
|
||||
)
|
||||
(connector
|
||||
(pt 208 576)
|
||||
(pt 216 576)
|
||||
)
|
||||
(connector
|
||||
(pt 208 672)
|
||||
(pt 216 672)
|
||||
)
|
||||
(connector
|
||||
(pt 304 104)
|
||||
(pt 416 104)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(text "Out[1]" (rect 284 184 314 196)(font "Arial" ))
|
||||
(pt 280 200)
|
||||
(pt 304 200)
|
||||
)
|
||||
(connector
|
||||
(text "Out[0]" (rect 294 88 324 100)(font "Arial" ))
|
||||
(pt 280 104)
|
||||
(pt 304 104)
|
||||
)
|
||||
(connector
|
||||
(text "Out[2]" (rect 287 280 317 292)(font "Arial" ))
|
||||
(pt 280 296)
|
||||
(pt 304 296)
|
||||
)
|
||||
(connector
|
||||
(text "Out[3]" (rect 289 376 319 388)(font "Arial" ))
|
||||
(pt 280 392)
|
||||
(pt 304 392)
|
||||
)
|
||||
(connector
|
||||
(text "Out[4]" (rect 292 472 322 484)(font "Arial" ))
|
||||
(pt 280 488)
|
||||
(pt 304 488)
|
||||
)
|
||||
(connector
|
||||
(text "Out[5]" (rect 290 568 320 580)(font "Arial" ))
|
||||
(pt 280 584)
|
||||
(pt 304 584)
|
||||
)
|
||||
(connector
|
||||
(text "Out[6]" (rect 282 664 312 676)(font "Arial" ))
|
||||
(pt 280 680)
|
||||
(pt 304 680)
|
||||
)
|
||||
(connector
|
||||
(text "Out[7]" (rect 292 760 322 772)(font "Arial" ))
|
||||
(pt 280 776)
|
||||
(pt 304 776)
|
||||
)
|
||||
(connector
|
||||
(pt 208 80)
|
||||
(pt 208 96)
|
||||
)
|
||||
(connector
|
||||
(pt 208 96)
|
||||
(pt 208 192)
|
||||
)
|
||||
(connector
|
||||
(pt 208 192)
|
||||
(pt 208 288)
|
||||
)
|
||||
(connector
|
||||
(pt 208 288)
|
||||
(pt 208 384)
|
||||
)
|
||||
(connector
|
||||
(pt 208 384)
|
||||
(pt 208 480)
|
||||
)
|
||||
(connector
|
||||
(pt 208 480)
|
||||
(pt 208 576)
|
||||
)
|
||||
(connector
|
||||
(pt 208 576)
|
||||
(pt 208 672)
|
||||
)
|
||||
(connector
|
||||
(pt 208 672)
|
||||
(pt 208 768)
|
||||
)
|
||||
(connector
|
||||
(pt 304 104)
|
||||
(pt 304 200)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 304 200)
|
||||
(pt 304 296)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 304 296)
|
||||
(pt 304 392)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 304 392)
|
||||
(pt 304 488)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 304 488)
|
||||
(pt 304 584)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 304 584)
|
||||
(pt 304 680)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(text "Out[7..0]" (rect 293 721 305 764)(font "Arial" )(vertical))
|
||||
(pt 304 680)
|
||||
(pt 304 776)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 184 112)
|
||||
(pt 184 208)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 168 112)
|
||||
(pt 184 112)
|
||||
(bus)
|
||||
)
|
||||
(junction (pt 184 208))
|
||||
(junction (pt 184 304))
|
||||
(junction (pt 184 400))
|
||||
(junction (pt 184 496))
|
||||
(junction (pt 184 592))
|
||||
(junction (pt 184 688))
|
||||
(junction (pt 208 96))
|
||||
(junction (pt 208 192))
|
||||
(junction (pt 208 288))
|
||||
(junction (pt 208 384))
|
||||
(junction (pt 208 480))
|
||||
(junction (pt 208 576))
|
||||
(junction (pt 208 672))
|
||||
(junction (pt 304 104))
|
||||
(junction (pt 304 200))
|
||||
(junction (pt 304 296))
|
||||
(junction (pt 304 392))
|
||||
(junction (pt 304 488))
|
||||
(junction (pt 304 584))
|
||||
(junction (pt 304 680))
|
||||
(junction (pt 184 112))
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
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-2012 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.2"))
|
||||
(symbol
|
||||
(rect 16 16 160 112)
|
||||
(text "Enabler" (rect 5 0 47 14)(font "Arial" (font_size 8)))
|
||||
(text "inst" (rect 8 80 25 92)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "Enable" (rect 0 0 37 14)(font "Arial" (font_size 8)))
|
||||
(text "Enable" (rect 21 27 58 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 32)(pt 16 32))
|
||||
)
|
||||
(port
|
||||
(pt 144 32)
|
||||
(output)
|
||||
(text "Out[7..0]" (rect 0 0 48 14)(font "Arial" (font_size 8)))
|
||||
(text "Out[7..0]" (rect 75 27 123 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 144 32)(pt 128 32)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 144 48)
|
||||
(bidir)
|
||||
(text "Data[7..0]" (rect 0 0 54 14)(font "Arial" (font_size 8)))
|
||||
(text "Data[7..0]" (rect 69 43 123 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 144 48)(pt 128 48)(line_width 3))
|
||||
)
|
||||
(drawing
|
||||
(rectangle (rect 16 16 128 80))
|
||||
)
|
||||
)
|
||||
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
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-2012 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.2"))
|
||||
(symbol
|
||||
(rect 16 16 160 112)
|
||||
(text "Enabler" (rect 5 0 47 14)(font "Arial" (font_size 8)))
|
||||
(text "inst" (rect 8 80 25 92)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "Enable" (rect 0 0 37 14)(font "Arial" (font_size 8)))
|
||||
(text "Enable" (rect 21 27 58 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 32)(pt 16 32))
|
||||
)
|
||||
(port
|
||||
(pt 144 32)
|
||||
(bidir)
|
||||
(text "Out[7..0]" (rect 0 0 48 14)(font "Arial" (font_size 8)))
|
||||
(text "Out[7..0]" (rect 75 27 123 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 144 32)(pt 128 32)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 144 48)
|
||||
(bidir)
|
||||
(text "Data[7..0]" (rect 0 0 54 14)(font "Arial" (font_size 8)))
|
||||
(text "Data[7..0]" (rect 69 43 123 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 144 48)(pt 128 48)(line_width 3))
|
||||
)
|
||||
(drawing
|
||||
(rectangle (rect 16 16 128 80))
|
||||
)
|
||||
)
|
||||
@@ -0,0 +1,455 @@
|
||||
/*
|
||||
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-2012 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 "graphic" (version "1.4"))
|
||||
(pin
|
||||
(input)
|
||||
(rect 56 256 224 272)
|
||||
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
|
||||
(text "Get Data Clk e" (rect 5 0 80 12)(font "Arial" ))
|
||||
(pt 168 8)
|
||||
(drawing
|
||||
(line (pt 84 12)(pt 109 12))
|
||||
(line (pt 84 4)(pt 109 4))
|
||||
(line (pt 113 8)(pt 168 8))
|
||||
(line (pt 84 12)(pt 84 4))
|
||||
(line (pt 109 4)(pt 113 8))
|
||||
(line (pt 109 12)(pt 113 8))
|
||||
)
|
||||
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
|
||||
)
|
||||
(pin
|
||||
(input)
|
||||
(rect 48 208 224 224)
|
||||
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
||||
(text "Set_Data Clk e" (rect 5 0 81 12)(font "Arial" ))
|
||||
(pt 176 8)
|
||||
(drawing
|
||||
(line (pt 92 12)(pt 117 12))
|
||||
(line (pt 92 4)(pt 117 4))
|
||||
(line (pt 121 8)(pt 176 8))
|
||||
(line (pt 92 12)(pt 92 4))
|
||||
(line (pt 117 4)(pt 121 8))
|
||||
(line (pt 117 12)(pt 121 8))
|
||||
)
|
||||
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
|
||||
)
|
||||
(pin
|
||||
(input)
|
||||
(rect 32 288 224 304)
|
||||
(text "INPUT" (rect 149 0 177 10)(font "Arial" (font_size 6)))
|
||||
(text "Get-Set Data Clk s" (rect 5 0 100 12)(font "Arial" ))
|
||||
(pt 192 8)
|
||||
(drawing
|
||||
(line (pt 108 12)(pt 133 12))
|
||||
(line (pt 108 4)(pt 133 4))
|
||||
(line (pt 137 8)(pt 192 8))
|
||||
(line (pt 108 12)(pt 108 4))
|
||||
(line (pt 133 4)(pt 137 8))
|
||||
(line (pt 133 12)(pt 137 8))
|
||||
)
|
||||
(text "VCC" (rect 152 7 172 17)(font "Arial" (font_size 6)))
|
||||
)
|
||||
(pin
|
||||
(input)
|
||||
(rect 40 160 224 176)
|
||||
(text "INPUT" (rect 141 0 169 10)(font "Arial" (font_size 6)))
|
||||
(text "Set Address Clk s" (rect 5 0 95 12)(font "Arial" ))
|
||||
(pt 184 8)
|
||||
(drawing
|
||||
(line (pt 100 12)(pt 125 12))
|
||||
(line (pt 100 4)(pt 125 4))
|
||||
(line (pt 129 8)(pt 184 8))
|
||||
(line (pt 100 12)(pt 100 4))
|
||||
(line (pt 125 4)(pt 129 8))
|
||||
(line (pt 125 12)(pt 129 8))
|
||||
)
|
||||
(text "VCC" (rect 144 7 164 17)(font "Arial" (font_size 6)))
|
||||
)
|
||||
(pin
|
||||
(bidir)
|
||||
(rect 48 320 224 336)
|
||||
(text "BIDIR" (rect 151 0 175 10)(font "Arial" (font_size 6)))
|
||||
(text "Data[7..0]" (rect 37 0 86 12)(font "Arial" ))
|
||||
(pt 176 8)
|
||||
(drawing
|
||||
(line (pt 120 4)(pt 98 4))
|
||||
(line (pt 176 8)(pt 124 8))
|
||||
(line (pt 120 12)(pt 98 12))
|
||||
(line (pt 98 4)(pt 94 8))
|
||||
(line (pt 98 12)(pt 94 8))
|
||||
(line (pt 120 4)(pt 124 8))
|
||||
(line (pt 124 8)(pt 120 12))
|
||||
)
|
||||
(flipy)
|
||||
(text "VCC" (rect 152 7 172 17)(font "Arial" (font_size 6)))
|
||||
(annotation_block (location)(rect 224 336 280 352))
|
||||
)
|
||||
(symbol
|
||||
(rect 528 248 744 376)
|
||||
(text "ram1" (rect 94 0 128 16)(font "Arial" (font_size 10)))
|
||||
(text "inst5" (rect 8 112 31 124)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "data[7..0]" (rect 0 0 53 14)(font "Arial" (font_size 8)))
|
||||
(text "data[7..0]" (rect 4 18 57 32)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 32)(pt 88 32)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 48)
|
||||
(input)
|
||||
(text "wren" (rect 0 0 30 14)(font "Arial" (font_size 8)))
|
||||
(text "wren" (rect 4 34 34 48)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 48)(pt 88 48))
|
||||
)
|
||||
(port
|
||||
(pt 0 64)
|
||||
(input)
|
||||
(text "address[7..0]" (rect 0 0 75 14)(font "Arial" (font_size 8)))
|
||||
(text "address[7..0]" (rect 4 50 79 64)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 64)(pt 88 64)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 112)
|
||||
(input)
|
||||
(text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8)))
|
||||
(text "clock" (rect 4 98 33 112)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 112)(pt 80 112))
|
||||
)
|
||||
(port
|
||||
(pt 216 32)
|
||||
(output)
|
||||
(text "q[7..0]" (rect 0 0 35 14)(font "Arial" (font_size 8)))
|
||||
(text "q[7..0]" (rect 183 18 218 32)(font "Arial" (font_size 8)))
|
||||
(line (pt 216 32)(pt 136 32)(line_width 3))
|
||||
)
|
||||
(drawing
|
||||
(text "8 bits" (rect 109 23 121 50)(font "Arial" )(vertical))
|
||||
(text "256 words" (rect 120 13 132 62)(font "Arial" )(vertical))
|
||||
(text "Block type: AUTO" (rect 48 114 137 126)(font "Arial" ))
|
||||
(line (pt 104 24)(pt 136 24))
|
||||
(line (pt 136 24)(pt 136 96))
|
||||
(line (pt 136 96)(pt 104 96))
|
||||
(line (pt 104 96)(pt 104 24))
|
||||
(line (pt 118 58)(pt 123 63))
|
||||
(line (pt 118 62)(pt 123 57))
|
||||
(line (pt 88 27)(pt 96 27))
|
||||
(line (pt 96 27)(pt 96 39))
|
||||
(line (pt 96 39)(pt 88 39))
|
||||
(line (pt 88 39)(pt 88 27))
|
||||
(line (pt 88 34)(pt 90 36))
|
||||
(line (pt 90 36)(pt 88 38))
|
||||
(line (pt 80 36)(pt 88 36))
|
||||
(line (pt 96 32)(pt 104 32)(line_width 3))
|
||||
(line (pt 88 43)(pt 96 43))
|
||||
(line (pt 96 43)(pt 96 55))
|
||||
(line (pt 96 55)(pt 88 55))
|
||||
(line (pt 88 55)(pt 88 43))
|
||||
(line (pt 88 50)(pt 90 52))
|
||||
(line (pt 90 52)(pt 88 54))
|
||||
(line (pt 80 52)(pt 88 52))
|
||||
(line (pt 96 48)(pt 104 48))
|
||||
(line (pt 88 59)(pt 96 59))
|
||||
(line (pt 96 59)(pt 96 71))
|
||||
(line (pt 96 71)(pt 88 71))
|
||||
(line (pt 88 71)(pt 88 59))
|
||||
(line (pt 88 66)(pt 90 68))
|
||||
(line (pt 90 68)(pt 88 70))
|
||||
(line (pt 80 68)(pt 88 68))
|
||||
(line (pt 96 64)(pt 104 64)(line_width 3))
|
||||
(line (pt 80 112)(pt 80 36))
|
||||
(line (pt 0 0)(pt 217 0))
|
||||
(line (pt 217 0)(pt 217 130))
|
||||
(line (pt 0 130)(pt 217 130))
|
||||
(line (pt 0 0)(pt 0 130))
|
||||
(line (pt 0 0)(pt 0 0))
|
||||
(line (pt 0 0)(pt 0 0))
|
||||
(line (pt 0 0)(pt 0 0))
|
||||
(line (pt 0 0)(pt 0 0))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 296 264 496 360)
|
||||
(text "8bit_memory" (rect 5 0 76 14)(font "Arial" (font_size 8)))
|
||||
(text "mar_reg" (rect 8 80 48 92)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "Enable" (rect 0 0 37 14)(font "Arial" (font_size 8)))
|
||||
(text "Enable" (rect 21 27 58 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 32)(pt 16 32))
|
||||
)
|
||||
(port
|
||||
(pt 0 48)
|
||||
(input)
|
||||
(text "Set" (rect 0 0 18 14)(font "Arial" (font_size 8)))
|
||||
(text "Set" (rect 21 43 39 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 48)(pt 16 48))
|
||||
)
|
||||
(port
|
||||
(pt 0 64)
|
||||
(input)
|
||||
(text "Data[7..0]" (rect 0 0 54 14)(font "Arial" (font_size 8)))
|
||||
(text "Data[7..0]" (rect 21 59 75 73)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 64)(pt 16 64)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 200 32)
|
||||
(output)
|
||||
(text "Out[7..0]" (rect 0 0 48 14)(font "Arial" (font_size 8)))
|
||||
(text "Out[7..0]" (rect 131 27 179 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 200 32)(pt 184 32)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 200 48)
|
||||
(output)
|
||||
(text "savedData[7..0]" (rect 0 0 89 14)(font "Arial" (font_size 8)))
|
||||
(text "savedData[7..0]" (rect 90 43 179 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 200 48)(pt 184 48)(line_width 3))
|
||||
)
|
||||
(drawing
|
||||
(rectangle (rect 16 16 184 80))
|
||||
)
|
||||
)
|
||||
(symbol
|
||||
(rect 520 128 664 224)
|
||||
(text "Enabler" (rect 97 0 139 14)(font "Arial" (font_size 8)))
|
||||
(text "inst14" (rect 107 80 136 92)(font "Arial" ))
|
||||
(port
|
||||
(pt 144 32)
|
||||
(input)
|
||||
(text "Enable" (rect 0 0 37 14)(font "Arial" (font_size 8)))
|
||||
(text "Enable" (rect 86 27 123 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 144 32)(pt 128 32))
|
||||
)
|
||||
(port
|
||||
(pt 0 32)
|
||||
(bidir)
|
||||
(text "Out[7..0]" (rect 0 0 48 14)(font "Arial" (font_size 8)))
|
||||
(text "Out[7..0]" (rect 21 27 69 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 32)(pt 16 32)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 48)
|
||||
(bidir)
|
||||
(text "Data[7..0]" (rect 0 0 54 14)(font "Arial" (font_size 8)))
|
||||
(text "Data[7..0]" (rect 21 43 75 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 48)(pt 16 48)(line_width 3))
|
||||
)
|
||||
(drawing
|
||||
(rectangle (rect 16 16 128 80))
|
||||
)
|
||||
(flipy)
|
||||
)
|
||||
(connector
|
||||
(pt 528 360)
|
||||
(pt 520 360)
|
||||
)
|
||||
(connector
|
||||
(pt 504 280)
|
||||
(pt 528 280)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 504 296)
|
||||
(pt 528 296)
|
||||
)
|
||||
(connector
|
||||
(pt 496 312)
|
||||
(pt 528 312)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 744 280)
|
||||
(pt 752 280)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 504 248)
|
||||
(pt 264 248)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 752 280)
|
||||
(pt 752 232)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 512 232)
|
||||
(pt 752 232)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 512 232)
|
||||
(pt 512 176)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 520 176)
|
||||
(pt 512 176)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 520 160)
|
||||
(pt 504 160)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 504 160)
|
||||
(pt 504 248)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 504 248)
|
||||
(pt 504 280)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 264 248)
|
||||
(pt 264 328)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 72 496)
|
||||
(pt 120 496)
|
||||
)
|
||||
(connector
|
||||
(pt 120 496)
|
||||
(pt 120 464)
|
||||
)
|
||||
(connector
|
||||
(pt 120 464)
|
||||
(pt 168 464)
|
||||
)
|
||||
(connector
|
||||
(pt 168 464)
|
||||
(pt 168 496)
|
||||
)
|
||||
(connector
|
||||
(pt 168 496)
|
||||
(pt 224 496)
|
||||
)
|
||||
(connector
|
||||
(pt 72 544)
|
||||
(pt 136 544)
|
||||
)
|
||||
(connector
|
||||
(pt 136 544)
|
||||
(pt 136 512)
|
||||
)
|
||||
(connector
|
||||
(pt 136 512)
|
||||
(pt 152 512)
|
||||
)
|
||||
(connector
|
||||
(pt 152 512)
|
||||
(pt 152 544)
|
||||
)
|
||||
(connector
|
||||
(pt 152 544)
|
||||
(pt 216 544)
|
||||
)
|
||||
(connector
|
||||
(pt 512 240)
|
||||
(pt 512 376)
|
||||
)
|
||||
(connector
|
||||
(pt 512 376)
|
||||
(pt 240 376)
|
||||
)
|
||||
(connector
|
||||
(pt 224 296)
|
||||
(pt 232 296)
|
||||
)
|
||||
(connector
|
||||
(pt 248 216)
|
||||
(pt 224 216)
|
||||
)
|
||||
(connector
|
||||
(pt 240 264)
|
||||
(pt 224 264)
|
||||
)
|
||||
(connector
|
||||
(pt 240 376)
|
||||
(pt 240 264)
|
||||
)
|
||||
(connector
|
||||
(pt 504 296)
|
||||
(pt 504 368)
|
||||
)
|
||||
(connector
|
||||
(pt 504 368)
|
||||
(pt 248 368)
|
||||
)
|
||||
(connector
|
||||
(pt 248 216)
|
||||
(pt 248 368)
|
||||
)
|
||||
(connector
|
||||
(pt 520 360)
|
||||
(pt 520 384)
|
||||
)
|
||||
(connector
|
||||
(pt 520 384)
|
||||
(pt 232 384)
|
||||
)
|
||||
(connector
|
||||
(pt 232 296)
|
||||
(pt 232 384)
|
||||
)
|
||||
(connector
|
||||
(pt 296 312)
|
||||
(pt 256 312)
|
||||
)
|
||||
(connector
|
||||
(pt 224 168)
|
||||
(pt 256 168)
|
||||
)
|
||||
(connector
|
||||
(pt 256 312)
|
||||
(pt 256 168)
|
||||
)
|
||||
(connector
|
||||
(pt 224 328)
|
||||
(pt 264 328)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 264 328)
|
||||
(pt 296 328)
|
||||
(bus)
|
||||
)
|
||||
(connector
|
||||
(pt 512 240)
|
||||
(pt 672 240)
|
||||
)
|
||||
(connector
|
||||
(pt 672 240)
|
||||
(pt 672 160)
|
||||
)
|
||||
(connector
|
||||
(pt 664 160)
|
||||
(pt 672 160)
|
||||
)
|
||||
(junction (pt 504 248))
|
||||
(junction (pt 264 328))
|
||||
(text "Clk e" (rect 56 472 83 486)(font "Arial" (font_size 8)))
|
||||
(text "Clk s" (rect 56 528 83 542)(font "Arial" (font_size 8)))
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
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-2012 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.2"))
|
||||
(symbol
|
||||
(rect 16 16 224 144)
|
||||
(text "Memory Controller" (rect 5 0 107 14)(font "Arial" (font_size 8)))
|
||||
(text "inst" (rect 8 112 25 124)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "Set Address" (rect 0 0 71 14)(font "Arial" (font_size 8)))
|
||||
(text "Set Address" (rect 21 27 92 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 32)(pt 16 32))
|
||||
)
|
||||
(port
|
||||
(pt 0 48)
|
||||
(input)
|
||||
(text "Set_Data Clk e" (rect 0 0 82 14)(font "Arial" (font_size 8)))
|
||||
(text "Set_Data Clk e" (rect 21 43 103 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 48)(pt 16 48))
|
||||
)
|
||||
(port
|
||||
(pt 0 64)
|
||||
(input)
|
||||
(text "Get Data Clk e" (rect 0 0 80 14)(font "Arial" (font_size 8)))
|
||||
(text "Get Data Clk e" (rect 21 59 101 73)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 64)(pt 16 64))
|
||||
)
|
||||
(port
|
||||
(pt 0 80)
|
||||
(input)
|
||||
(text "Get-Set Data Clk s" (rect 0 0 103 14)(font "Arial" (font_size 8)))
|
||||
(text "Get-Set Data Clk s" (rect 21 75 124 89)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 80)(pt 16 80))
|
||||
)
|
||||
(port
|
||||
(pt 208 32)
|
||||
(bidir)
|
||||
(text "Data[7..0]" (rect 0 0 54 14)(font "Arial" (font_size 8)))
|
||||
(text "Data[7..0]" (rect 133 27 187 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 208 32)(pt 192 32)(line_width 3))
|
||||
)
|
||||
(drawing
|
||||
(rectangle (rect 16 16 192 112))
|
||||
)
|
||||
)
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
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-2012 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.2"))
|
||||
(symbol
|
||||
(rect 16 16 168 112)
|
||||
(text "CPU" (rect 5 0 28 14)(font "Arial" (font_size 8)))
|
||||
(text "inst" (rect 8 80 25 92)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "enable" (rect 0 0 37 14)(font "Arial" (font_size 8)))
|
||||
(text "enable" (rect 21 27 58 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 32)(pt 16 32))
|
||||
)
|
||||
(port
|
||||
(pt 0 48)
|
||||
(input)
|
||||
(text "set" (rect 0 0 17 14)(font "Arial" (font_size 8)))
|
||||
(text "set" (rect 21 43 38 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 48)(pt 16 48))
|
||||
)
|
||||
(port
|
||||
(pt 0 64)
|
||||
(input)
|
||||
(text "data" (rect 0 0 24 14)(font "Arial" (font_size 8)))
|
||||
(text "data" (rect 21 59 45 73)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 64)(pt 16 64))
|
||||
)
|
||||
(port
|
||||
(pt 152 32)
|
||||
(output)
|
||||
(text "out" (rect 0 0 17 14)(font "Arial" (font_size 8)))
|
||||
(text "out" (rect 114 27 131 41)(font "Arial" (font_size 8)))
|
||||
(line (pt 152 32)(pt 136 32))
|
||||
)
|
||||
(port
|
||||
(pt 152 48)
|
||||
(output)
|
||||
(text "savedData" (rect 0 0 61 14)(font "Arial" (font_size 8)))
|
||||
(text "savedData" (rect 70 43 131 57)(font "Arial" (font_size 8)))
|
||||
(line (pt 152 48)(pt 136 48))
|
||||
)
|
||||
(drawing
|
||||
(rectangle (rect 16 16 136 80))
|
||||
)
|
||||
)
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
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-2012 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.2"))
|
||||
(symbol
|
||||
(rect 0 0 144 64)
|
||||
(text "clockDevider" (rect 37 0 123 16)(font "Arial" (font_size 10)))
|
||||
(text "inst" (rect 8 48 25 60)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8)))
|
||||
(text "clock" (rect 26 25 49 38)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 32)(pt 16 32))
|
||||
)
|
||||
(port
|
||||
(pt 144 40)
|
||||
(output)
|
||||
(text "q[25..0]" (rect 0 0 42 14)(font "Arial" (font_size 8)))
|
||||
(text "q[25..0]" (rect 89 33 123 46)(font "Arial" (font_size 8)))
|
||||
(line (pt 144 40)(pt 128 40)(line_width 3))
|
||||
)
|
||||
(drawing
|
||||
(text "up counter" (rect 84 22 211 55)(font "Arial" ))
|
||||
(line (pt 16 16)(pt 16 48))
|
||||
(line (pt 16 16)(pt 128 16))
|
||||
(line (pt 16 48)(pt 128 48))
|
||||
(line (pt 128 16)(pt 128 48))
|
||||
(line (pt 0 0)(pt 146 0))
|
||||
(line (pt 146 0)(pt 146 66))
|
||||
(line (pt 0 66)(pt 146 66))
|
||||
(line (pt 0 0)(pt 0 66))
|
||||
(line (pt 16 26)(pt 22 32))
|
||||
(line (pt 22 32)(pt 16 38))
|
||||
(line (pt 0 0)(pt 0 0))
|
||||
(line (pt 0 0)(pt 0 0))
|
||||
(line (pt 0 0)(pt 0 0))
|
||||
(line (pt 0 0)(pt 0 0))
|
||||
)
|
||||
)
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
// megafunction wizard: %LPM_COUNTER%
|
||||
// GENERATION: STANDARD
|
||||
// VERSION: WM1.0
|
||||
// MODULE: LPM_COUNTER
|
||||
|
||||
// ============================================================
|
||||
// File Name: clockDevider.v
|
||||
// Megafunction Name(s):
|
||||
// LPM_COUNTER
|
||||
//
|
||||
// Simulation Library Files(s):
|
||||
// lpm
|
||||
// ============================================================
|
||||
// ************************************************************
|
||||
// THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE!
|
||||
//
|
||||
// 12.1 Build 177 11/07/2012 SJ Web Edition
|
||||
// ************************************************************
|
||||
|
||||
|
||||
//Copyright (C) 1991-2012 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.
|
||||
|
||||
|
||||
// synopsys translate_off
|
||||
`timescale 1 ps / 1 ps
|
||||
// synopsys translate_on
|
||||
module clockDevider (
|
||||
clock,
|
||||
q);
|
||||
|
||||
input clock;
|
||||
output [25:0] q;
|
||||
|
||||
wire [25:0] sub_wire0;
|
||||
wire [25:0] q = sub_wire0[25:0];
|
||||
|
||||
lpm_counter LPM_COUNTER_component (
|
||||
.clock (clock),
|
||||
.q (sub_wire0),
|
||||
.aclr (1'b0),
|
||||
.aload (1'b0),
|
||||
.aset (1'b0),
|
||||
.cin (1'b1),
|
||||
.clk_en (1'b1),
|
||||
.cnt_en (1'b1),
|
||||
.cout (),
|
||||
.data ({26{1'b0}}),
|
||||
.eq (),
|
||||
.sclr (1'b0),
|
||||
.sload (1'b0),
|
||||
.sset (1'b0),
|
||||
.updown (1'b1));
|
||||
defparam
|
||||
LPM_COUNTER_component.lpm_direction = "UP",
|
||||
LPM_COUNTER_component.lpm_port_updown = "PORT_UNUSED",
|
||||
LPM_COUNTER_component.lpm_type = "LPM_COUNTER",
|
||||
LPM_COUNTER_component.lpm_width = 26;
|
||||
|
||||
|
||||
endmodule
|
||||
|
||||
// ============================================================
|
||||
// CNX file retrieval info
|
||||
// ============================================================
|
||||
// Retrieval info: PRIVATE: ACLR NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: ALOAD NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: ASET NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: ASET_ALL1 NUMERIC "1"
|
||||
// Retrieval info: PRIVATE: CLK_EN NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: CNT_EN NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: CarryIn NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: CarryOut NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: Direction NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: INTENDED_DEVICE_FAMILY STRING "Cyclone II"
|
||||
// Retrieval info: PRIVATE: ModulusCounter NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: ModulusValue NUMERIC "50000000"
|
||||
// Retrieval info: PRIVATE: SCLR NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: SLOAD NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: SSET NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: SSET_ALL1 NUMERIC "1"
|
||||
// Retrieval info: PRIVATE: SYNTH_WRAPPER_GEN_POSTFIX STRING "0"
|
||||
// Retrieval info: PRIVATE: nBit NUMERIC "26"
|
||||
// Retrieval info: PRIVATE: new_diagram STRING "1"
|
||||
// Retrieval info: LIBRARY: lpm lpm.lpm_components.all
|
||||
// Retrieval info: CONSTANT: LPM_DIRECTION STRING "UP"
|
||||
// Retrieval info: CONSTANT: LPM_PORT_UPDOWN STRING "PORT_UNUSED"
|
||||
// Retrieval info: CONSTANT: LPM_TYPE STRING "LPM_COUNTER"
|
||||
// Retrieval info: CONSTANT: LPM_WIDTH NUMERIC "26"
|
||||
// Retrieval info: USED_PORT: clock 0 0 0 0 INPUT NODEFVAL "clock"
|
||||
// Retrieval info: USED_PORT: q 0 0 26 0 OUTPUT NODEFVAL "q[25..0]"
|
||||
// Retrieval info: CONNECT: @clock 0 0 0 0 clock 0 0 0 0
|
||||
// Retrieval info: CONNECT: q 0 0 26 0 @q 0 0 26 0
|
||||
// Retrieval info: GEN_FILE: TYPE_NORMAL clockDevider.v TRUE
|
||||
// Retrieval info: GEN_FILE: TYPE_NORMAL clockDevider.inc FALSE
|
||||
// Retrieval info: GEN_FILE: TYPE_NORMAL clockDevider.cmp FALSE
|
||||
// Retrieval info: GEN_FILE: TYPE_NORMAL clockDevider.bsf TRUE FALSE
|
||||
// Retrieval info: GEN_FILE: TYPE_NORMAL clockDevider_inst.v FALSE
|
||||
// Retrieval info: GEN_FILE: TYPE_NORMAL clockDevider_bb.v FALSE
|
||||
// Retrieval info: LIB_FILE: lpm
|
||||
+1321
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
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-2012 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.2"))
|
||||
(symbol
|
||||
(rect 0 0 216 128)
|
||||
(text "ram1" (rect 94 0 128 16)(font "Arial" (font_size 10)))
|
||||
(text "inst" (rect 8 112 25 124)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 32)
|
||||
(input)
|
||||
(text "data[7..0]" (rect 0 0 53 14)(font "Arial" (font_size 8)))
|
||||
(text "data[7..0]" (rect 4 18 47 31)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 32)(pt 88 32)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 48)
|
||||
(input)
|
||||
(text "wren" (rect 0 0 30 14)(font "Arial" (font_size 8)))
|
||||
(text "wren" (rect 4 34 28 47)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 48)(pt 88 48))
|
||||
)
|
||||
(port
|
||||
(pt 0 64)
|
||||
(input)
|
||||
(text "address[7..0]" (rect 0 0 75 14)(font "Arial" (font_size 8)))
|
||||
(text "address[7..0]" (rect 4 50 66 63)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 64)(pt 88 64)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 112)
|
||||
(input)
|
||||
(text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8)))
|
||||
(text "clock" (rect 4 98 27 111)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 112)(pt 80 112))
|
||||
)
|
||||
(port
|
||||
(pt 216 32)
|
||||
(output)
|
||||
(text "q[7..0]" (rect 0 0 35 14)(font "Arial" (font_size 8)))
|
||||
(text "q[7..0]" (rect 183 18 211 31)(font "Arial" (font_size 8)))
|
||||
(line (pt 216 32)(pt 136 32)(line_width 3))
|
||||
)
|
||||
(drawing
|
||||
(text "8 bits" (rect 109 23 191 153)(font "Arial" )(vertical))
|
||||
(text "256 words" (rect 120 13 212 173)(font "Arial" )(vertical))
|
||||
(text "Block type: AUTO" (rect 48 114 170 239)(font "Arial" ))
|
||||
(line (pt 104 24)(pt 136 24))
|
||||
(line (pt 136 24)(pt 136 96))
|
||||
(line (pt 136 96)(pt 104 96))
|
||||
(line (pt 104 96)(pt 104 24))
|
||||
(line (pt 118 58)(pt 123 63))
|
||||
(line (pt 118 62)(pt 123 57))
|
||||
(line (pt 88 27)(pt 96 27))
|
||||
(line (pt 96 27)(pt 96 39))
|
||||
(line (pt 96 39)(pt 88 39))
|
||||
(line (pt 88 39)(pt 88 27))
|
||||
(line (pt 88 34)(pt 90 36))
|
||||
(line (pt 90 36)(pt 88 38))
|
||||
(line (pt 80 36)(pt 88 36))
|
||||
(line (pt 96 32)(pt 104 32)(line_width 3))
|
||||
(line (pt 88 43)(pt 96 43))
|
||||
(line (pt 96 43)(pt 96 55))
|
||||
(line (pt 96 55)(pt 88 55))
|
||||
(line (pt 88 55)(pt 88 43))
|
||||
(line (pt 88 50)(pt 90 52))
|
||||
(line (pt 90 52)(pt 88 54))
|
||||
(line (pt 80 52)(pt 88 52))
|
||||
(line (pt 96 48)(pt 104 48))
|
||||
(line (pt 88 59)(pt 96 59))
|
||||
(line (pt 96 59)(pt 96 71))
|
||||
(line (pt 96 71)(pt 88 71))
|
||||
(line (pt 88 71)(pt 88 59))
|
||||
(line (pt 88 66)(pt 90 68))
|
||||
(line (pt 90 68)(pt 88 70))
|
||||
(line (pt 80 68)(pt 88 68))
|
||||
(line (pt 96 64)(pt 104 64)(line_width 3))
|
||||
(line (pt 80 112)(pt 80 36))
|
||||
(line (pt 0 0)(pt 217 0))
|
||||
(line (pt 217 0)(pt 217 130))
|
||||
(line (pt 0 130)(pt 217 130))
|
||||
(line (pt 0 0)(pt 0 130))
|
||||
(line (pt 0 0)(pt 0 0))
|
||||
(line (pt 0 0)(pt 0 0))
|
||||
(line (pt 0 0)(pt 0 0))
|
||||
(line (pt 0 0)(pt 0 0))
|
||||
)
|
||||
)
|
||||
@@ -0,0 +1,172 @@
|
||||
// megafunction wizard: %RAM: 1-PORT%
|
||||
// GENERATION: STANDARD
|
||||
// VERSION: WM1.0
|
||||
// MODULE: altsyncram
|
||||
|
||||
// ============================================================
|
||||
// File Name: ram1.v
|
||||
// Megafunction Name(s):
|
||||
// altsyncram
|
||||
//
|
||||
// Simulation Library Files(s):
|
||||
// altera_mf
|
||||
// ============================================================
|
||||
// ************************************************************
|
||||
// THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE!
|
||||
//
|
||||
// 12.1 Build 177 11/07/2012 SJ Web Edition
|
||||
// ************************************************************
|
||||
|
||||
|
||||
//Copyright (C) 1991-2012 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.
|
||||
|
||||
|
||||
// synopsys translate_off
|
||||
`timescale 1 ps / 1 ps
|
||||
// synopsys translate_on
|
||||
module ram1 (
|
||||
address,
|
||||
clock,
|
||||
data,
|
||||
wren,
|
||||
q);
|
||||
|
||||
input [7:0] address;
|
||||
input clock;
|
||||
input [7:0] data;
|
||||
input wren;
|
||||
output [7:0] q;
|
||||
`ifndef ALTERA_RESERVED_QIS
|
||||
// synopsys translate_off
|
||||
`endif
|
||||
tri1 clock;
|
||||
`ifndef ALTERA_RESERVED_QIS
|
||||
// synopsys translate_on
|
||||
`endif
|
||||
|
||||
wire [7:0] sub_wire0;
|
||||
wire [7:0] q = sub_wire0[7:0];
|
||||
|
||||
altsyncram altsyncram_component (
|
||||
.address_a (address),
|
||||
.clock0 (clock),
|
||||
.data_a (data),
|
||||
.wren_a (wren),
|
||||
.q_a (sub_wire0),
|
||||
.aclr0 (1'b0),
|
||||
.aclr1 (1'b0),
|
||||
.address_b (1'b1),
|
||||
.addressstall_a (1'b0),
|
||||
.addressstall_b (1'b0),
|
||||
.byteena_a (1'b1),
|
||||
.byteena_b (1'b1),
|
||||
.clock1 (1'b1),
|
||||
.clocken0 (1'b1),
|
||||
.clocken1 (1'b1),
|
||||
.clocken2 (1'b1),
|
||||
.clocken3 (1'b1),
|
||||
.data_b (1'b1),
|
||||
.eccstatus (),
|
||||
.q_b (),
|
||||
.rden_a (1'b1),
|
||||
.rden_b (1'b1),
|
||||
.wren_b (1'b0));
|
||||
defparam
|
||||
altsyncram_component.clock_enable_input_a = "BYPASS",
|
||||
altsyncram_component.clock_enable_output_a = "BYPASS",
|
||||
altsyncram_component.init_file = "ram1.mif",
|
||||
altsyncram_component.intended_device_family = "Cyclone II",
|
||||
altsyncram_component.lpm_hint = "ENABLE_RUNTIME_MOD=NO",
|
||||
altsyncram_component.lpm_type = "altsyncram",
|
||||
altsyncram_component.numwords_a = 256,
|
||||
altsyncram_component.operation_mode = "SINGLE_PORT",
|
||||
altsyncram_component.outdata_aclr_a = "NONE",
|
||||
altsyncram_component.outdata_reg_a = "UNREGISTERED",
|
||||
altsyncram_component.power_up_uninitialized = "FALSE",
|
||||
altsyncram_component.widthad_a = 8,
|
||||
altsyncram_component.width_a = 8,
|
||||
altsyncram_component.width_byteena_a = 1;
|
||||
|
||||
|
||||
endmodule
|
||||
|
||||
// ============================================================
|
||||
// CNX file retrieval info
|
||||
// ============================================================
|
||||
// Retrieval info: PRIVATE: ADDRESSSTALL_A NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: AclrAddr NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: AclrByte NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: AclrData NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: AclrOutput NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: BYTE_ENABLE NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: BYTE_SIZE NUMERIC "8"
|
||||
// Retrieval info: PRIVATE: BlankMemory NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: CLOCK_ENABLE_INPUT_A NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: CLOCK_ENABLE_OUTPUT_A NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: Clken NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: DataBusSeparated NUMERIC "1"
|
||||
// Retrieval info: PRIVATE: IMPLEMENT_IN_LES NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: INIT_FILE_LAYOUT STRING "PORT_A"
|
||||
// Retrieval info: PRIVATE: INIT_TO_SIM_X NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: INTENDED_DEVICE_FAMILY STRING "Cyclone II"
|
||||
// Retrieval info: PRIVATE: JTAG_ENABLED NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: JTAG_ID STRING "NONE"
|
||||
// Retrieval info: PRIVATE: MAXIMUM_DEPTH NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: MIFfilename STRING "ram1.mif"
|
||||
// Retrieval info: PRIVATE: NUMWORDS_A NUMERIC "256"
|
||||
// Retrieval info: PRIVATE: RAM_BLOCK_TYPE NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: READ_DURING_WRITE_MODE_PORT_A NUMERIC "3"
|
||||
// Retrieval info: PRIVATE: RegAddr NUMERIC "1"
|
||||
// Retrieval info: PRIVATE: RegData NUMERIC "1"
|
||||
// Retrieval info: PRIVATE: RegOutput NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: SYNTH_WRAPPER_GEN_POSTFIX STRING "0"
|
||||
// Retrieval info: PRIVATE: SingleClock NUMERIC "1"
|
||||
// Retrieval info: PRIVATE: UseDQRAM NUMERIC "1"
|
||||
// Retrieval info: PRIVATE: WRCONTROL_ACLR_A NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: WidthAddr NUMERIC "8"
|
||||
// Retrieval info: PRIVATE: WidthData NUMERIC "8"
|
||||
// Retrieval info: PRIVATE: rden NUMERIC "0"
|
||||
// Retrieval info: LIBRARY: altera_mf altera_mf.altera_mf_components.all
|
||||
// Retrieval info: CONSTANT: CLOCK_ENABLE_INPUT_A STRING "BYPASS"
|
||||
// Retrieval info: CONSTANT: CLOCK_ENABLE_OUTPUT_A STRING "BYPASS"
|
||||
// Retrieval info: CONSTANT: INIT_FILE STRING "ram1.mif"
|
||||
// Retrieval info: CONSTANT: INTENDED_DEVICE_FAMILY STRING "Cyclone II"
|
||||
// Retrieval info: CONSTANT: LPM_HINT STRING "ENABLE_RUNTIME_MOD=NO"
|
||||
// Retrieval info: CONSTANT: LPM_TYPE STRING "altsyncram"
|
||||
// Retrieval info: CONSTANT: NUMWORDS_A NUMERIC "256"
|
||||
// Retrieval info: CONSTANT: OPERATION_MODE STRING "SINGLE_PORT"
|
||||
// Retrieval info: CONSTANT: OUTDATA_ACLR_A STRING "NONE"
|
||||
// Retrieval info: CONSTANT: OUTDATA_REG_A STRING "UNREGISTERED"
|
||||
// Retrieval info: CONSTANT: POWER_UP_UNINITIALIZED STRING "FALSE"
|
||||
// Retrieval info: CONSTANT: WIDTHAD_A NUMERIC "8"
|
||||
// Retrieval info: CONSTANT: WIDTH_A NUMERIC "8"
|
||||
// Retrieval info: CONSTANT: WIDTH_BYTEENA_A NUMERIC "1"
|
||||
// Retrieval info: USED_PORT: address 0 0 8 0 INPUT NODEFVAL "address[7..0]"
|
||||
// Retrieval info: USED_PORT: clock 0 0 0 0 INPUT VCC "clock"
|
||||
// Retrieval info: USED_PORT: data 0 0 8 0 INPUT NODEFVAL "data[7..0]"
|
||||
// Retrieval info: USED_PORT: q 0 0 8 0 OUTPUT NODEFVAL "q[7..0]"
|
||||
// Retrieval info: USED_PORT: wren 0 0 0 0 INPUT NODEFVAL "wren"
|
||||
// Retrieval info: CONNECT: @address_a 0 0 8 0 address 0 0 8 0
|
||||
// Retrieval info: CONNECT: @clock0 0 0 0 0 clock 0 0 0 0
|
||||
// Retrieval info: CONNECT: @data_a 0 0 8 0 data 0 0 8 0
|
||||
// Retrieval info: CONNECT: @wren_a 0 0 0 0 wren 0 0 0 0
|
||||
// Retrieval info: CONNECT: q 0 0 8 0 @q_a 0 0 8 0
|
||||
// Retrieval info: GEN_FILE: TYPE_NORMAL ram1.v TRUE
|
||||
// Retrieval info: GEN_FILE: TYPE_NORMAL ram1.inc FALSE
|
||||
// Retrieval info: GEN_FILE: TYPE_NORMAL ram1.cmp FALSE
|
||||
// Retrieval info: GEN_FILE: TYPE_NORMAL ram1.bsf TRUE FALSE
|
||||
// Retrieval info: GEN_FILE: TYPE_NORMAL ram1_inst.v FALSE
|
||||
// Retrieval info: GEN_FILE: TYPE_NORMAL ram1_bb.v FALSE
|
||||
// Retrieval info: LIB_FILE: altera_mf
|
||||
Reference in New Issue
Block a user