Line 42... |
Line 42... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.1 2002/01/03 08:16:15 lampret
|
|
// New prefixes for RTL files, prefixed module names. Updated cache controllers and MMUs.
|
|
//
|
// Revision 1.9 2001/10/21 17:57:16 lampret
|
// Revision 1.9 2001/10/21 17:57:16 lampret
|
// Removed params from generic_XX.v. Added translate_off/on in sprs.v and id.v. Removed spr_addr from dc.v and ic.v. Fixed CR+LF.
|
// Removed params from generic_XX.v. Added translate_off/on in sprs.v and id.v. Removed spr_addr from dc.v and ic.v. Fixed CR+LF.
|
//
|
//
|
// Revision 1.8 2001/10/19 23:28:46 lampret
|
// Revision 1.8 2001/10/19 23:28:46 lampret
|
// Fixed some synthesis warnings. Configured with caches and MMUs.
|
// Fixed some synthesis warnings. Configured with caches and MMUs.
|
Line 93... |
Line 96... |
|
|
//
|
//
|
// Mux to memdata[31:24]
|
// Mux to memdata[31:24]
|
//
|
//
|
always @(lsu_op or addr or regdata) begin
|
always @(lsu_op or addr or regdata) begin
|
casex({lsu_op, addr[1:0]}) // synopsys full_case parallel_case
|
casex({lsu_op, addr[1:0]}) // synopsys parallel_case
|
{`OR1200_LSUOP_SB, 2'b00} : memdata_hh = regdata[7:0];
|
{`OR1200_LSUOP_SB, 2'b00} : memdata_hh = regdata[7:0];
|
{`OR1200_LSUOP_SH, 2'b00} : memdata_hh = regdata[15:8];
|
{`OR1200_LSUOP_SH, 2'b00} : memdata_hh = regdata[15:8];
|
default : memdata_hh = regdata[31:24];
|
default : memdata_hh = regdata[31:24];
|
endcase
|
endcase
|
end
|
end
|
|
|
//
|
//
|
// Mux to memdata[23:16]
|
// Mux to memdata[23:16]
|
//
|
//
|
always @(lsu_op or addr or regdata) begin
|
always @(lsu_op or addr or regdata) begin
|
casex({lsu_op, addr[1:0]}) // synopsys full_case parallel_case
|
casex({lsu_op, addr[1:0]}) // synopsys parallel_case
|
{`OR1200_LSUOP_SW, 2'b00} : memdata_hl = regdata[23:16];
|
{`OR1200_LSUOP_SW, 2'b00} : memdata_hl = regdata[23:16];
|
default : memdata_hl = regdata[7:0];
|
default : memdata_hl = regdata[7:0];
|
endcase
|
endcase
|
end
|
end
|
|
|
//
|
//
|
// Mux to memdata[15:8]
|
// Mux to memdata[15:8]
|
//
|
//
|
always @(lsu_op or addr or regdata) begin
|
always @(lsu_op or addr or regdata) begin
|
casex({lsu_op, addr[1:0]}) // synopsys full_case parallel_case
|
casex({lsu_op, addr[1:0]}) // synopsys parallel_case
|
{`OR1200_LSUOP_SB, 2'b10} : memdata_lh = regdata[7:0];
|
{`OR1200_LSUOP_SB, 2'b10} : memdata_lh = regdata[7:0];
|
default : memdata_lh = regdata[15:8];
|
default : memdata_lh = regdata[15:8];
|
endcase
|
endcase
|
end
|
end
|
|
|