URL
https://opencores.org/ocsvn/t6507lp/t6507lp/trunk
[/] [t6507lp/] [trunk/] [fv/] [alu_bfm.e] - Diff between revs 134 and 143
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 134 |
Rev 143 |
Line 5... |
Line 5... |
reset_n: out simple_port of bool;
|
reset_n: out simple_port of bool;
|
alu_enable: out simple_port of bool;
|
alu_enable: out simple_port of bool;
|
alu_opcode: out simple_port of byte;
|
alu_opcode: out simple_port of byte;
|
alu_a: out simple_port of byte;
|
alu_a: out simple_port of byte;
|
|
|
|
reset_needed : bool;
|
|
keep reset_needed == TRUE;
|
|
|
event done;
|
event done;
|
event main_clk;
|
event main_clk;
|
|
|
on main_clk {
|
on main_clk {
|
//Send in packet using the DUT protocol
|
//Send in packet using the DUT protocol
|
var data : alu_input_s;
|
var data : alu_input_s;
|
gen data;
|
gen data;
|
|
|
|
while (reset_needed) {
|
|
gen data;
|
|
|
|
if (data.input_kind == RESET) {
|
|
reset_needed = FALSE;
|
|
};
|
|
};
|
|
|
emit data.T1_cover_event;
|
emit data.T1_cover_event;
|
|
|
reset_n$ = data.reset_n;
|
reset_n$ = data.reset_n;
|
alu_enable$ = data.alu_enable;
|
alu_enable$ = data.alu_enable;
|
alu_opcode$ = data.alu_opcode.as_a(byte);
|
alu_opcode$ = data.alu_opcode.as_a(byte);
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.