[Modified] Fix louduse
This commit is contained in:
@@ -29,20 +29,20 @@
|
||||
<Option Name="IPUserFilesDir" Val="$PIPUSERFILESDIR"/>
|
||||
<Option Name="IPStaticSourceDir" Val="$PIPUSERFILESDIR/ipstatic"/>
|
||||
<Option Name="EnableBDX" Val="FALSE"/>
|
||||
<Option Name="WTXSimLaunchSim" Val="1"/>
|
||||
<Option Name="WTXSimLaunchSim" Val="22"/>
|
||||
<Option Name="WTModelSimLaunchSim" Val="0"/>
|
||||
<Option Name="WTQuestaLaunchSim" Val="0"/>
|
||||
<Option Name="WTIesLaunchSim" Val="0"/>
|
||||
<Option Name="WTVcsLaunchSim" Val="0"/>
|
||||
<Option Name="WTRivieraLaunchSim" Val="0"/>
|
||||
<Option Name="WTActivehdlLaunchSim" Val="0"/>
|
||||
<Option Name="WTXSimExportSim" Val="8"/>
|
||||
<Option Name="WTModelSimExportSim" Val="8"/>
|
||||
<Option Name="WTQuestaExportSim" Val="8"/>
|
||||
<Option Name="WTIesExportSim" Val="8"/>
|
||||
<Option Name="WTVcsExportSim" Val="8"/>
|
||||
<Option Name="WTRivieraExportSim" Val="8"/>
|
||||
<Option Name="WTActivehdlExportSim" Val="8"/>
|
||||
<Option Name="WTXSimExportSim" Val="12"/>
|
||||
<Option Name="WTModelSimExportSim" Val="12"/>
|
||||
<Option Name="WTQuestaExportSim" Val="12"/>
|
||||
<Option Name="WTIesExportSim" Val="12"/>
|
||||
<Option Name="WTVcsExportSim" Val="12"/>
|
||||
<Option Name="WTRivieraExportSim" Val="12"/>
|
||||
<Option Name="WTActivehdlExportSim" Val="12"/>
|
||||
<Option Name="GenerateIPUpgradeLog" Val="TRUE"/>
|
||||
<Option Name="XSimRadix" Val="hex"/>
|
||||
<Option Name="XSimTimeUnit" Val="ns"/>
|
||||
@@ -96,13 +96,6 @@
|
||||
<Attr Name="UsedIn" Val="simulation"/>
|
||||
</FileInfo>
|
||||
</File>
|
||||
<File Path="$PPRDIR/../../rtl/cpu/loaduse.v">
|
||||
<FileInfo>
|
||||
<Attr Name="UsedIn" Val="synthesis"/>
|
||||
<Attr Name="UsedIn" Val="implementation"/>
|
||||
<Attr Name="UsedIn" Val="simulation"/>
|
||||
</FileInfo>
|
||||
</File>
|
||||
<File Path="$PPRDIR/../../rtl/cpu/mem_stage.v">
|
||||
<FileInfo>
|
||||
<Attr Name="UsedIn" Val="synthesis"/>
|
||||
@@ -145,6 +138,26 @@
|
||||
<Attr Name="UsedIn" Val="simulation"/>
|
||||
</FileInfo>
|
||||
</File>
|
||||
<File Path="$PPRDIR/../../rtl/cpu/loaduse.v">
|
||||
<FileInfo>
|
||||
<Attr Name="AutoDisabled" Val="1"/>
|
||||
<Attr Name="UsedIn" Val="synthesis"/>
|
||||
<Attr Name="UsedIn" Val="implementation"/>
|
||||
<Attr Name="UsedIn" Val="simulation"/>
|
||||
</FileInfo>
|
||||
</File>
|
||||
<File Path="$PPRDIR/../../rtl/xilinx_ip/inst_ram/inst_ram.coe">
|
||||
<FileInfo>
|
||||
<Attr Name="UsedIn" Val="synthesis"/>
|
||||
<Attr Name="UsedIn" Val="simulation"/>
|
||||
</FileInfo>
|
||||
</File>
|
||||
<File Path="$PPRDIR/../../rtl/xilinx_ip/data_ram/data_ram.coe">
|
||||
<FileInfo>
|
||||
<Attr Name="UsedIn" Val="synthesis"/>
|
||||
<Attr Name="UsedIn" Val="simulation"/>
|
||||
</FileInfo>
|
||||
</File>
|
||||
<Config>
|
||||
<Option Name="DesignMode" Val="RTL"/>
|
||||
<Option Name="TopModule" Val="soc_lite_top"/>
|
||||
@@ -165,15 +178,30 @@
|
||||
</FileSet>
|
||||
<FileSet Name="sim_1" Type="SimulationSrcs" RelSrcDir="$PSRCDIR/sim_1">
|
||||
<Filter Type="Srcs"/>
|
||||
<File Path="$PPRDIR/sim/soc_tb.v">
|
||||
<FileInfo>
|
||||
<Attr Name="UsedIn" Val="synthesis"/>
|
||||
<Attr Name="UsedIn" Val="implementation"/>
|
||||
<Attr Name="UsedIn" Val="simulation"/>
|
||||
</FileInfo>
|
||||
</File>
|
||||
<File Path="$PPRDIR/sim/cpu_tb_behav.wcfg">
|
||||
<FileInfo>
|
||||
<Attr Name="UsedIn" Val="simulation"/>
|
||||
</FileInfo>
|
||||
</File>
|
||||
<Config>
|
||||
<Option Name="DesignMode" Val="RTL"/>
|
||||
<Option Name="TopModule" Val="soc_lite_top"/>
|
||||
<Option Name="TopModule" Val="cpu_tb"/>
|
||||
<Option Name="TopLib" Val="xil_defaultlib"/>
|
||||
<Option Name="TopAutoSet" Val="TRUE"/>
|
||||
<Option Name="TransportPathDelay" Val="0"/>
|
||||
<Option Name="TransportIntDelay" Val="0"/>
|
||||
<Option Name="SelectedSimModel" Val="rtl"/>
|
||||
<Option Name="SrcSet" Val="sources_1"/>
|
||||
<Option Name="XSimWcfgFile" Val="$PPRDIR/sim/cpu_tb_behav.wcfg"/>
|
||||
<Option Name="xsim.simulate.log_all_signals" Val="true"/>
|
||||
<Option Name="xsim.simulate.saif_all_signals" Val="true"/>
|
||||
</Config>
|
||||
</FileSet>
|
||||
<FileSet Name="utils_1" Type="Utils" RelSrcDir="$PSRCDIR/utils_1">
|
||||
@@ -230,7 +258,9 @@
|
||||
<Runs Version="1" Minor="11">
|
||||
<Run Id="synth_1" Type="Ft3:Synth" SrcSet="sources_1" Part="xc7a100tcsg324-1" ConstrsSet="constrs_1" Description="Vivado Synthesis Defaults" AutoIncrementalCheckpoint="false" WriteIncrSynthDcp="false" State="current" Dir="$PRUNDIR/synth_1" IncludeInArchive="true">
|
||||
<Strategy Version="1" Minor="2">
|
||||
<StratHandle Name="Vivado Synthesis Defaults" Flow="Vivado Synthesis 2019"/>
|
||||
<StratHandle Name="Vivado Synthesis Defaults" Flow="Vivado Synthesis 2019">
|
||||
<Desc>Vivado Synthesis Defaults</Desc>
|
||||
</StratHandle>
|
||||
<Step Id="synth_design"/>
|
||||
</Strategy>
|
||||
<GeneratedRun Dir="$PRUNDIR" File="gen_run.xml"/>
|
||||
@@ -260,7 +290,9 @@
|
||||
</Run>
|
||||
<Run Id="impl_1" Type="Ft2:EntireDesign" Part="xc7a100tcsg324-1" ConstrsSet="constrs_1" Description="Default settings for Implementation." AutoIncrementalCheckpoint="false" WriteIncrSynthDcp="false" State="current" Dir="$PRUNDIR/impl_1" SynthRun="synth_1" IncludeInArchive="true" GenFullBitstream="true">
|
||||
<Strategy Version="1" Minor="2">
|
||||
<StratHandle Name="Vivado Implementation Defaults" Flow="Vivado Implementation 2019"/>
|
||||
<StratHandle Name="Vivado Implementation Defaults" Flow="Vivado Implementation 2019">
|
||||
<Desc>Default settings for Implementation.</Desc>
|
||||
</StratHandle>
|
||||
<Step Id="init_design"/>
|
||||
<Step Id="opt_design"/>
|
||||
<Step Id="power_opt_design"/>
|
||||
|
||||
1236
lacpu/run_vivado/la32r/sim/cpu_tb_behav.wcfg
Normal file
1236
lacpu/run_vivado/la32r/sim/cpu_tb_behav.wcfg
Normal file
File diff suppressed because it is too large
Load Diff
43
lacpu/run_vivado/la32r/sim/soc_tb.v
Normal file
43
lacpu/run_vivado/la32r/sim/soc_tb.v
Normal file
@@ -0,0 +1,43 @@
|
||||
`timescale 1ns / 1ps
|
||||
|
||||
module cpu_tb(
|
||||
|
||||
);
|
||||
reg resetn;
|
||||
reg clk;
|
||||
wire [31:0] debug_wb_pc;
|
||||
wire [ 3:0] debug_wb_rf_wen;
|
||||
wire [ 4:0] debug_wb_rf_wnum;
|
||||
wire [31:0] debug_wb_rf_wdata;
|
||||
|
||||
initial
|
||||
begin
|
||||
clk = 1'b0;
|
||||
resetn = 1'b0;
|
||||
#20;
|
||||
resetn = 1'b1;
|
||||
#2000;
|
||||
$finish;
|
||||
end
|
||||
always #5 clk=~clk;
|
||||
|
||||
soc_lite_top u_soc_top(
|
||||
.resetn (resetn ),
|
||||
.clk (clk ),
|
||||
|
||||
.pc ()
|
||||
);
|
||||
|
||||
//debug signals
|
||||
assign debug_wb_pc = u_soc_top.debug_wb_pc;
|
||||
assign debug_wb_rf_wen = u_soc_top.debug_wb_rf_wen;
|
||||
assign debug_wb_rf_wnum = u_soc_top.debug_wb_rf_wnum;
|
||||
assign debug_wb_rf_wdata = u_soc_top.debug_wb_rf_wdata;
|
||||
|
||||
always @(posedge clk) begin
|
||||
$display("PC = 0x%8h, wb_rf_wnum = 0x%2h, wb_rf_wdata = 0x%8h",
|
||||
debug_wb_pc, debug_wb_rf_wnum, debug_wb_rf_wdata);
|
||||
end
|
||||
|
||||
|
||||
endmodule
|
||||
Reference in New Issue
Block a user