forked from 61c-teach/fa20-lab-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15f3381
commit 37f721c
Showing
2 changed files
with
297 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
v2.0 raw | ||
3 2 fc 1 2 fb 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,295 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<project source="2.14.6" version="1.0"> | ||
This file is intended to be loaded by Logisim-evolution (https://github.com/reds-heig/logisim-evolution). | ||
|
||
<lib desc="#Wiring" name="0"> | ||
<tool name="Splitter"> | ||
<a name="fanout" val="4"/> | ||
<a name="incoming" val="4"/> | ||
<a name="appear" val="center"/> | ||
</tool> | ||
<tool name="Pin"> | ||
<a name="facing" val="north"/> | ||
</tool> | ||
<tool name="Probe"> | ||
<a name="radix" val="16"/> | ||
</tool> | ||
<tool name="Tunnel"> | ||
<a name="width" val="2"/> | ||
</tool> | ||
<tool name="Pull Resistor"> | ||
<a name="facing" val="north"/> | ||
</tool> | ||
<tool name="Clock"> | ||
<a name="facing" val="north"/> | ||
</tool> | ||
<tool name="Constant"> | ||
<a name="width" val="8"/> | ||
<a name="value" val="0xff"/> | ||
</tool> | ||
</lib> | ||
<lib desc="#Gates" name="1"/> | ||
<lib desc="#Plexers" name="2"> | ||
<tool name="Multiplexer"> | ||
<a name="enable" val="false"/> | ||
</tool> | ||
<tool name="Demultiplexer"> | ||
<a name="enable" val="false"/> | ||
</tool> | ||
</lib> | ||
<lib desc="#Arithmetic" name="3"/> | ||
<lib desc="#Memory" name="4"> | ||
<tool name="ROM"> | ||
<a name="contents">addr/data: 8 8 | ||
0 | ||
</a> | ||
</tool> | ||
</lib> | ||
<lib desc="#I/O" name="5"/> | ||
<lib desc="#HDL-IP" name="6"> | ||
<tool name="VHDL Entity"> | ||
<a name="content">-------------------------------------------------------------------------------- | ||
-- HEIG-VD, institute REDS, 1400 Yverdon-les-Bains | ||
-- Project : | ||
-- File : | ||
-- Autor : | ||
-- Date : | ||
-- | ||
-------------------------------------------------------------------------------- | ||
-- Description : | ||
-- | ||
-------------------------------------------------------------------------------- | ||
|
||
library ieee; | ||
use ieee.std_logic_1164.all; | ||
--use ieee.numeric_std.all; | ||
|
||
entity VHDL_Component is | ||
port( | ||
------------------------------------------------------------------------------ | ||
--Insert input ports below | ||
horloge_i : in std_logic; -- input bit example | ||
val_i : in std_logic_vector(3 downto 0); -- input vector example | ||
------------------------------------------------------------------------------ | ||
--Insert output ports below | ||
max_o : out std_logic; -- output bit example | ||
cpt_o : out std_logic_Vector(3 downto 0) -- output vector example | ||
); | ||
end VHDL_Component; | ||
|
||
-------------------------------------------------------------------------------- | ||
--Complete your VHDL description below | ||
architecture type_architecture of VHDL_Component is | ||
|
||
|
||
begin | ||
|
||
|
||
end type_architecture; | ||
</a> | ||
</tool> | ||
</lib> | ||
<lib desc="#TCL" name="7"> | ||
<tool name="TclGeneric"> | ||
<a name="content">library ieee; | ||
use ieee.std_logic_1164.all; | ||
|
||
entity TCL_Generic is | ||
port( | ||
--Insert input ports below | ||
horloge_i : in std_logic; -- input bit example | ||
val_i : in std_logic_vector(3 downto 0); -- input vector example | ||
|
||
--Insert output ports below | ||
max_o : out std_logic; -- output bit example | ||
cpt_o : out std_logic_Vector(3 downto 0) -- output vector example | ||
); | ||
end TCL_Generic; | ||
</a> | ||
</tool> | ||
</lib> | ||
<lib desc="#Base" name="8"> | ||
<tool name="Text Tool"> | ||
<a name="text" val=""/> | ||
<a name="font" val="SansSerif plain 12"/> | ||
<a name="halign" val="center"/> | ||
<a name="valign" val="base"/> | ||
</tool> | ||
</lib> | ||
<lib desc="#BFH-Praktika" name="9"/> | ||
<main name="main"/> | ||
<options> | ||
<a name="gateUndefined" val="ignore"/> | ||
<a name="simlimit" val="1000"/> | ||
<a name="simrand" val="0"/> | ||
<a name="tickmain" val="half_period"/> | ||
</options> | ||
<mappings> | ||
<tool lib="8" map="Button2" name="Menu Tool"/> | ||
<tool lib="8" map="Button3" name="Menu Tool"/> | ||
<tool lib="8" map="Ctrl Button1" name="Menu Tool"/> | ||
</mappings> | ||
<toolbar> | ||
<tool lib="8" name="Poke Tool"/> | ||
<tool lib="8" name="Edit Tool"/> | ||
<tool lib="8" name="Text Tool"> | ||
<a name="text" val=""/> | ||
<a name="font" val="SansSerif plain 12"/> | ||
<a name="halign" val="center"/> | ||
<a name="valign" val="base"/> | ||
</tool> | ||
<sep/> | ||
<tool lib="0" name="Pin"/> | ||
<tool lib="0" name="Pin"> | ||
<a name="facing" val="west"/> | ||
<a name="output" val="true"/> | ||
<a name="labelloc" val="east"/> | ||
</tool> | ||
<tool lib="1" name="NOT Gate"/> | ||
<tool lib="1" name="AND Gate"/> | ||
<tool lib="1" name="OR Gate"/> | ||
</toolbar> | ||
<circuit name="main"> | ||
<a name="circuit" val="main"/> | ||
<a name="clabel" val=""/> | ||
<a name="clabelup" val="east"/> | ||
<a name="clabelfont" val="SansSerif bold 16"/> | ||
<a name="circuitnamedbox" val="true"/> | ||
<a name="circuitvhdlpath" val=""/> | ||
<wire from="(580,100)" to="(630,100)"/> | ||
<wire from="(580,230)" to="(630,230)"/> | ||
<wire from="(580,100)" to="(580,230)"/> | ||
<wire from="(600,120)" to="(600,250)"/> | ||
<wire from="(620,140)" to="(620,270)"/> | ||
<wire from="(30,340)" to="(80,340)"/> | ||
<wire from="(620,270)" to="(620,340)"/> | ||
<wire from="(540,50)" to="(580,50)"/> | ||
<wire from="(270,70)" to="(270,150)"/> | ||
<wire from="(30,120)" to="(30,340)"/> | ||
<wire from="(750,210)" to="(750,230)"/> | ||
<wire from="(760,80)" to="(760,100)"/> | ||
<wire from="(30,120)" to="(60,120)"/> | ||
<wire from="(80,340)" to="(620,340)"/> | ||
<wire from="(750,230)" to="(770,230)"/> | ||
<wire from="(270,70)" to="(290,70)"/> | ||
<wire from="(600,250)" to="(630,250)"/> | ||
<wire from="(600,120)" to="(630,120)"/> | ||
<wire from="(60,400)" to="(80,400)"/> | ||
<wire from="(250,150)" to="(270,150)"/> | ||
<wire from="(530,120)" to="(600,120)"/> | ||
<wire from="(580,50)" to="(580,100)"/> | ||
<wire from="(80,340)" to="(80,400)"/> | ||
<wire from="(760,100)" to="(770,100)"/> | ||
<wire from="(740,230)" to="(750,230)"/> | ||
<wire from="(620,270)" to="(630,270)"/> | ||
<wire from="(620,140)" to="(630,140)"/> | ||
<comp lib="4" loc="(60,40)" name="Counter"> | ||
<a name="label" val="Address_Counter"/> | ||
</comp> | ||
<comp lib="4" loc="(290,60)" name="ROM"> | ||
<a name="contents">addr/data: 8 8 | ||
3 2 fc 1 2 fb 1 | ||
</a> | ||
</comp> | ||
<comp lib="0" loc="(540,50)" name="Constant"> | ||
<a name="width" val="8"/> | ||
</comp> | ||
<comp loc="(760,100)" name="non_pipelined"/> | ||
<comp loc="(740,230)" name="pipelined"/> | ||
<comp lib="0" loc="(60,400)" name="Clock"> | ||
<a name="label" val="CLK"/> | ||
</comp> | ||
<comp lib="0" loc="(770,100)" name="Pin"> | ||
<a name="facing" val="west"/> | ||
<a name="output" val="true"/> | ||
<a name="width" val="8"/> | ||
<a name="label" val="non_pipe_out"/> | ||
<a name="labelloc" val="east"/> | ||
</comp> | ||
<comp lib="0" loc="(770,230)" name="Pin"> | ||
<a name="facing" val="west"/> | ||
<a name="output" val="true"/> | ||
<a name="width" val="8"/> | ||
<a name="label" val="pipe_out"/> | ||
<a name="labelloc" val="east"/> | ||
</comp> | ||
<comp lib="0" loc="(750,210)" name="Probe"> | ||
<a name="facing" val="south"/> | ||
</comp> | ||
<comp lib="0" loc="(760,80)" name="Probe"> | ||
<a name="facing" val="south"/> | ||
</comp> | ||
</circuit> | ||
<circuit name="non_pipelined"> | ||
<a name="circuit" val="non_pipelined"/> | ||
<a name="clabel" val=""/> | ||
<a name="clabelup" val="east"/> | ||
<a name="clabelfont" val="SansSerif bold 16"/> | ||
<a name="circuitnamedbox" val="true"/> | ||
<a name="circuitvhdlpath" val=""/> | ||
<wire from="(520,130)" to="(520,230)"/> | ||
<wire from="(190,110)" to="(250,110)"/> | ||
<wire from="(190,130)" to="(250,130)"/> | ||
<wire from="(330,230)" to="(520,230)"/> | ||
<wire from="(290,120)" to="(340,120)"/> | ||
<wire from="(170,90)" to="(190,90)"/> | ||
<wire from="(170,150)" to="(190,150)"/> | ||
<wire from="(410,170)" to="(410,210)"/> | ||
<wire from="(410,170)" to="(420,170)"/> | ||
<wire from="(170,210)" to="(410,210)"/> | ||
<wire from="(330,140)" to="(340,140)"/> | ||
<wire from="(190,90)" to="(190,110)"/> | ||
<wire from="(190,130)" to="(190,150)"/> | ||
<wire from="(380,130)" to="(420,130)"/> | ||
<wire from="(330,140)" to="(330,230)"/> | ||
<wire from="(480,130)" to="(520,130)"/> | ||
<wire from="(520,130)" to="(560,130)"/> | ||
<comp lib="3" loc="(290,120)" name="Multiplier"/> | ||
<comp lib="0" loc="(170,150)" name="Pin"> | ||
<a name="width" val="8"/> | ||
<a name="label" val="in2"/> | ||
</comp> | ||
<comp lib="0" loc="(560,130)" name="Pin"> | ||
<a name="facing" val="west"/> | ||
<a name="output" val="true"/> | ||
<a name="width" val="8"/> | ||
<a name="label" val="out1"/> | ||
<a name="labelloc" val="east"/> | ||
</comp> | ||
<comp lib="0" loc="(170,90)" name="Pin"> | ||
<a name="width" val="8"/> | ||
<a name="label" val="in1"/> | ||
</comp> | ||
<comp lib="4" loc="(420,100)" name="Register"/> | ||
<comp lib="3" loc="(380,130)" name="Adder"/> | ||
<comp lib="0" loc="(170,210)" name="Pin"> | ||
<a name="label" val="CLK"/> | ||
</comp> | ||
</circuit> | ||
<circuit name="pipelined"> | ||
<a name="circuit" val="pipelined"/> | ||
<a name="clabel" val=""/> | ||
<a name="clabelup" val="east"/> | ||
<a name="clabelfont" val="SansSerif bold 16"/> | ||
<a name="circuitnamedbox" val="true"/> | ||
<a name="circuitvhdlpath" val=""/> | ||
<comp lib="0" loc="(170,90)" name="Pin"> | ||
<a name="width" val="8"/> | ||
<a name="label" val="in1"/> | ||
</comp> | ||
<comp lib="0" loc="(170,150)" name="Pin"> | ||
<a name="width" val="8"/> | ||
<a name="label" val="in2"/> | ||
</comp> | ||
<comp lib="0" loc="(170,210)" name="Pin"> | ||
<a name="label" val="CLK"/> | ||
</comp> | ||
<comp lib="0" loc="(560,130)" name="Pin"> | ||
<a name="facing" val="west"/> | ||
<a name="output" val="true"/> | ||
<a name="width" val="8"/> | ||
<a name="label" val="out1"/> | ||
<a name="labelloc" val="east"/> | ||
</comp> | ||
</circuit> | ||
</project> |