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

Subversion Repositories s80186

[/] [s80186/] [trunk/] [rtl/] [CMakeLists.txt] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 jamieiles
# Copyright Jamie Iles, 2017
2
#
3
# This file is part of s80x86.
4
#
5
# s80x86 is free software: you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation, either version 3 of the License, or
8
# (at your option) any later version.
9
#
10
# s80x86 is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
# GNU General Public License for more details.
14
#
15
# You should have received a copy of the GNU General Public License
16
# along with s80x86.  If not, see .
17
 
18
include(Verilator)
19
 
20
add_subdirectory(microcode)
21
set_source_files_properties(${VERILATED_DPI_CPP} PROPERTIES COMPILE_FLAGS "-Wno-unused-parameter -Wno-error")
22
set_source_files_properties(${VERILATED_CPP} PROPERTIES COMPILE_FLAGS "-Wno-unused-parameter -Wno-error")
23
add_library(verilator SHARED ${VERILATOR_LIB_SOURCES})
24
 
25
set(ALU_SOURCES
26
    ${CMAKE_CURRENT_SOURCE_DIR}/alu/aaa.sv
27
    ${CMAKE_CURRENT_SOURCE_DIR}/alu/aas.sv
28
    ${CMAKE_CURRENT_SOURCE_DIR}/alu/adc.sv
29
    ${CMAKE_CURRENT_SOURCE_DIR}/alu/add.sv
30
    ${CMAKE_CURRENT_SOURCE_DIR}/alu/and.sv
31
    ${CMAKE_CURRENT_SOURCE_DIR}/alu/bound.sv
32
    ${CMAKE_CURRENT_SOURCE_DIR}/alu/daa.sv
33
    ${CMAKE_CURRENT_SOURCE_DIR}/alu/das.sv
34
    ${CMAKE_CURRENT_SOURCE_DIR}/alu/enter.sv
35
    ${CMAKE_CURRENT_SOURCE_DIR}/alu/extend.sv
36
    ${CMAKE_CURRENT_SOURCE_DIR}/alu/flags.sv
37
    ${CMAKE_CURRENT_SOURCE_DIR}/alu/mul.sv
38
    ${CMAKE_CURRENT_SOURCE_DIR}/alu/or.sv
39
    ${CMAKE_CURRENT_SOURCE_DIR}/alu/not.sv
40
    ${CMAKE_CURRENT_SOURCE_DIR}/alu/rcl.sv
41
    ${CMAKE_CURRENT_SOURCE_DIR}/alu/rcr.sv
42
    ${CMAKE_CURRENT_SOURCE_DIR}/alu/rol.sv
43
    ${CMAKE_CURRENT_SOURCE_DIR}/alu/ror.sv
44
    ${CMAKE_CURRENT_SOURCE_DIR}/alu/sar.sv
45
    ${CMAKE_CURRENT_SOURCE_DIR}/alu/shift_flags.sv
46
    ${CMAKE_CURRENT_SOURCE_DIR}/alu/shl.sv
47
    ${CMAKE_CURRENT_SOURCE_DIR}/alu/shr.sv
48
    ${CMAKE_CURRENT_SOURCE_DIR}/alu/sub.sv
49
    ${CMAKE_CURRENT_SOURCE_DIR}/alu/xor.sv
50
    ${CMAKE_CURRENT_SOURCE_DIR}/alu/ALU.sv)
51
 
52
set(CORE_SOURCES
53
    ${CMAKE_CURRENT_BINARY_DIR}/microcode/MicrocodeTypes.sv
54
    ${ALU_SOURCES}
55
    ${CMAKE_CURRENT_BINARY_DIR}/microcode/Microcode.sv
56
    ${CMAKE_CURRENT_SOURCE_DIR}/RegisterEnum.sv
57
    ${CMAKE_CURRENT_SOURCE_DIR}/FlagsEnum.sv
58
    ${CMAKE_CURRENT_SOURCE_DIR}/Core.sv
59
    ${CMAKE_CURRENT_SOURCE_DIR}/CSIPSync.sv
60
    ${CMAKE_CURRENT_SOURCE_DIR}/Divider.sv
61
    ${CMAKE_CURRENT_SOURCE_DIR}/Fifo.sv
62
    ${CMAKE_CURRENT_SOURCE_DIR}/Flags.sv
63
    ${CMAKE_CURRENT_SOURCE_DIR}/ImmediateReader.sv
64
    ${CMAKE_CURRENT_SOURCE_DIR}/IP.sv
65
    ${CMAKE_CURRENT_SOURCE_DIR}/JumpTest.sv
66
    ${CMAKE_CURRENT_SOURCE_DIR}/LoadStore.sv
67
    ${CMAKE_CURRENT_SOURCE_DIR}/LoopCounter.sv
68
    ${CMAKE_CURRENT_SOURCE_DIR}/ModRMDecode.sv
69
    ${CMAKE_CURRENT_SOURCE_DIR}/PosedgeToPulse.sv
70
    ${CMAKE_CURRENT_SOURCE_DIR}/Prefetch.sv
71
    ${CMAKE_CURRENT_SOURCE_DIR}/RegisterFile.sv
72
    ${CMAKE_CURRENT_SOURCE_DIR}/SegmentOverride.sv
73
    ${CMAKE_CURRENT_SOURCE_DIR}/SegmentRegisterFile.sv
74
    ${CMAKE_CURRENT_SOURCE_DIR}/TempReg.sv)
75
 
76
set_property(GLOBAL PROPERTY G_ALU_SOURCES "${ALU_SOURCES}")
77
set_property(GLOBAL PROPERTY G_CORE_SOURCES "${CORE_SOURCES}")
78
 
79
install(TARGETS verilator
80
        LIBRARY DESTINATION lib
81
        COMPONENT simulator)

powered by: WebSVN 2.1.0

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